Back to index

scribus-ng  1.3.4.dfsg+svn20071115
tfdia.h
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 #ifndef TFDIA_H
00008 #define TFDIA_H
00009 
00010 #include <vector>
00011 #include <qdialog.h>
00012 #include <qcombobox.h>
00013 #include <qpushbutton.h>
00014 #include <qlineedit.h>
00015 #include <qlayout.h>
00016 #include <qscrollview.h>
00017 #include <qvbox.h>
00018 #include <qevent.h>
00019 #include <prefscontext.h>
00020 #include "tffilter.h"
00021 
00022 class tfDia : public QDialog
00023 {
00024        Q_OBJECT
00025 private:
00026        PrefsContext* prefs;
00027        QBoxLayout* layout;
00028        QBoxLayout* alayout;
00029        QComboBox* filtersCombo;
00030        QLineEdit* saveEdit;
00031        QPushButton* clearButton;
00032        QPushButton* deleteButton;
00033        QPushButton* okButton;
00034        QPushButton* cancelButton;
00035        QString currentFilter;
00036        QScrollView* qsv;
00037        QFrame* vbox;
00038        int currentIndex;
00039        void clear();
00040        void createLayout();
00041        void createFilter(PrefsTable* table);
00042        void writeFilterRow(PrefsTable* table, int row, tfFilter* filter);
00043        void storeLastFilter();
00044 private slots:
00045        void saveTextChanged(const QString& text);
00046        void createFilterRow(tfFilter* after);
00047        void removeRow(tfFilter* tff);
00048        void clearClicked();
00049        void okClicked();
00050        void cancelClicked();
00051        void deleteClicked();
00052        void loadFilter(const QString& name);
00053        void resizeEvent(QResizeEvent* e);
00054 public:
00055        std::vector<tfFilter*> filters;
00056        tfDia();
00057        ~tfDia();
00058 };
00059 
00060 #endif // TFDIA_H