Subversion Repositories Scribus

Rev

Rev 1830 | Rev 2093 | 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
 
1830 fschmid 27
protected slots:
28
        void reject();
29
 
3 paul 30
private:
1414 fschmid 31
        QListBox* templateData;
923 cbradney 32
        QPushButton* appendButton;
1414 fschmid 33
        QPushButton* newButton;
34
        QPushButton* duplicateButton;
35
        QPushButton* deleteButton;
36
        QPushButton* closeButton;
37
        ScribusDoc *currentDoc;
38
        ScribusView *currentView;
39
        QString sMuster;
3 paul 40
 
1414 fschmid 41
protected:
42
        QVBoxLayout* musterPagesLayout;
43
        QHBoxLayout* buttonLayout;
44
 
3 paul 45
private slots:
923 cbradney 46
        void duplicateTemplate();
47
        void deleteTemplate();
48
        void newTemplate();
49
        void appendPage();
50
        void selectTemplate(QListBoxItem *item);
1414 fschmid 51
 
3 paul 52
signals:
923 cbradney 53
        void createNew(int);
54
        void loadPage(QString, int, bool);
55
        void finished();
2055 craig 56
        void docAltered(ScribusDoc *);
1414 fschmid 57
 
3 paul 58
};
59
 
924 cbradney 60
#endif // MUSTERPAGES_H