Scribus
Open source desktop publishing at your fingertips
tfdia.h
1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 #ifndef TFDIA_H
8 #define TFDIA_H
9 
10 #include <vector>
11 #include <QDialog>
12 #include <QResizeEvent>
13 class QFrame;
14 class QComboBox;
15 class QLineEdit;
16 class QPushButton;
17 class QScrollArea;
18 class QBoxLayout;
19 class QHBoxLayout;
20 class QVBoxLayout;
21 #include <prefscontext.h>
22 #include "tffilter.h"
23 
24 class tfDia : public QDialog
25 {
26  Q_OBJECT
27 private:
28  PrefsContext* prefs;
29  QBoxLayout* layout;
30  QBoxLayout* alayout;
31  QComboBox* filtersCombo;
32  QLineEdit* saveEdit;
33  QPushButton* clearButton;
34  QPushButton* deleteButton;
35  QPushButton* okButton;
36  QPushButton* cancelButton;
37  QString currentFilter;
38  QScrollArea* qsv;
39  QFrame* vbox;
40  int currentIndex;
41  void clear();
42  void createLayout();
43  void createFilter(PrefsTable* table);
44  void writeFilterRow(PrefsTable* table, int row, tfFilter* filter);
45  void storeLastFilter();
46 private slots:
47  void saveTextChanged(const QString& text);
48  void createFilterRow(tfFilter* after);
49  void removeRow(tfFilter* tff);
50  void clearClicked();
51  void okClicked();
52  void cancelClicked();
53  void deleteClicked();
54  void loadFilter(const QString& name);
55  void resizeEvent(QResizeEvent* e);
56 public:
57  std::vector<tfFilter*> filters;
58  tfDia();
59  ~tfDia();
60 };
61 
62 #endif // TFDIA_H
Definition: tfdia.h:24
Definition: prefscontext.h:40
Definition: tffilter.h:39
Definition: prefstable.h:40