Rev 1268 | Rev 1507 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
924 | cbradney | 1 | #ifndef MUSTERPAGES_H |
2 | #define MUSTERPAGES_H |
||
3 | paul | 3 | |
4 | #include <qdialog.h> |
||
923 | cbradney | 5 | class QListBox; |
6 | class QListBoxItem; |
||
7 | class QPushButton; |
||
8 | class QHBoxLayout; |
||
9 | class QVBoxLayout; |
||
10 | |||
838 | cbradney | 11 | class ScribusDoc; |
923 | cbradney | 12 | class ScribusView; |
3 | paul | 13 | |
923 | cbradney | 14 | class MusterPages : public QDialog |
1414 | fschmid | 15 | { |
16 | Q_OBJECT |
||
3 | paul | 17 | |
18 | public: |
||
1414 | fschmid | 19 | MusterPages( QWidget* parent, ScribusDoc *pCurrentDoc, ScribusView *pCurrentView, QString temp); |
20 | ~MusterPages() {}; |
||
21 | void closeEvent(QCloseEvent *closeEvent); |
||
22 | void updateTemplateList(QString templateName); |
||
3 | paul | 23 | |
1268 | fschmid | 24 | public slots: |
25 | void selectTemplate(QString name); |
||
26 | |||
3 | paul | 27 | private: |
1414 | fschmid | 28 | QListBox* templateData; |
923 | cbradney | 29 | QPushButton* appendButton; |
1414 | fschmid | 30 | QPushButton* newButton; |
31 | QPushButton* duplicateButton; |
||
32 | QPushButton* deleteButton; |
||
33 | QPushButton* closeButton; |
||
34 | ScribusDoc *currentDoc; |
||
35 | ScribusView *currentView; |
||
36 | QString sMuster; |
||
3 | paul | 37 | |
1414 | fschmid | 38 | protected: |
39 | QVBoxLayout* musterPagesLayout; |
||
40 | QHBoxLayout* buttonLayout; |
||
41 | |||
3 | paul | 42 | private slots: |
923 | cbradney | 43 | void duplicateTemplate(); |
44 | void deleteTemplate(); |
||
45 | void newTemplate(); |
||
46 | void appendPage(); |
||
47 | void selectTemplate(QListBoxItem *item); |
||
1414 | fschmid | 48 | |
3 | paul | 49 | signals: |
923 | cbradney | 50 | void createNew(int); |
51 | void loadPage(QString, int, bool); |
||
52 | void finished(); |
||
1414 | fschmid | 53 | |
3 | paul | 54 | }; |
55 | |||
924 | cbradney | 56 | #endif // MUSTERPAGES_H |