Subversion Repositories Scribus

Rev

Rev 924 | Rev 1414 | 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
3 paul 15
{
16
    Q_OBJECT
17
 
18
public:
923 cbradney 19
    MusterPages( QWidget* parent, ScribusDoc *pCurrentDoc, ScribusView *pCurrentView, QString temp);
20
    ~MusterPages() {};
21
    void closeEvent(QCloseEvent *closeEvent);
1268 fschmid 22
    void updateTemplateList(QString templateName);
3 paul 23
 
1268 fschmid 24
public slots:
25
        void selectTemplate(QString name);
26
 
3 paul 27
private:
923 cbradney 28
    QListBox* templateData;
29
        QPushButton* appendButton;
30
    QPushButton* newButton;
31
    QPushButton* duplicateButton;
32
    QPushButton* deleteButton;
33
    QPushButton* closeButton;
34
    ScribusDoc *currentDoc;
35
    ScribusView *currentView;
3 paul 36
    QString sMuster;
923 cbradney 37
    QHBoxLayout* musterPagesLayout;
38
    QVBoxLayout* buttonLayout;
3 paul 39
 
40
private slots:
923 cbradney 41
        void exitEditor();
42
        void duplicateTemplate();
43
        void deleteTemplate();
44
        void newTemplate();
45
        void appendPage();
46
        void selectTemplate(QListBoxItem *item);
168 Franz 47
 
3 paul 48
signals:
923 cbradney 49
        void createNew(int);
50
        void loadPage(QString, int, bool);
51
        void finished();
3 paul 52
 
53
};
54
 
924 cbradney 55
#endif // MUSTERPAGES_H