kwave  18.07.70
SaveBlocksWidget.h
Go to the documentation of this file.
1 /***************************************************************************
2  SaveBlocksWidget.h - widget for extra options in the file open dialog
3  -------------------
4  begin : Fri Mar 02 2007
5  copyright : (C) 2007 by Thomas Eschenbacher
6  email : Thomas.Eschenbacher@gmx.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef SAVE_BLOCKS_WIDGET_H
19 #define SAVE_BLOCKS_WIDGET_H
20 
21 #include <QWidget>
22 
23 #include "SaveBlocksPlugin.h"
24 #include "ui_SaveBlocksWidgetBase.h"
25 
26 namespace Kwave
27 {
28  class SaveBlocksWidget: public QWidget,
29  public Ui::SaveBlocksWidgetBase
30  {
31  Q_OBJECT
32  public:
33 
42  SaveBlocksWidget(QWidget *widget,
43  QString filename_pattern,
45  bool selection_only,
46  bool have_selection
47  );
48 
50  virtual ~SaveBlocksWidget();
51 
53  virtual void showPreview(const QUrl &url)
54  {
55  Q_UNUSED(url);
56  }
57 
59  virtual void clearPreview()
60  {
61  }
62 
64  QString pattern();
65 
68 
70  bool selectionOnly();
71 
72  signals:
73 
75  void somethingChanged();
76 
77  public slots:
78 
83  void setNewExample(const QString &example);
84 
85  };
86 }
87 
88 #endif /* SAVE_BLOCKS_WIDGET_H */
89 
90 //***************************************************************************
91 //***************************************************************************
Definition: App.h:33
SaveBlocksWidget(QWidget *widget, QString filename_pattern, Kwave::SaveBlocksPlugin::numbering_mode_t numbering_mode, bool selection_only, bool have_selection)
virtual void showPreview(const QUrl &url)
Kwave::SaveBlocksPlugin::numbering_mode_t numberingMode()
void setNewExample(const QString &example)
virtual void clearPreview()