Subversion Repositories Scribus

Rev

Rev 2055 | Rev 2439 | 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
 
2093 cbradney 14
class MasterPagesPalette : public QDialog
1414 fschmid 15
{
16
        Q_OBJECT
3 paul 17
 
18
public:
2093 cbradney 19
        MasterPagesPalette( QWidget* parent, ScribusDoc *pCurrentDoc, ScribusView *pCurrentView, QString masterPageName);
20
        ~MasterPagesPalette() {};
1414 fschmid 21
        void closeEvent(QCloseEvent *closeEvent);
2093 cbradney 22
        void updateMasterPageList(QString MasterPageName);
3 paul 23
 
1268 fschmid 24
public slots:
2093 cbradney 25
        void selectMasterPage(QString name);
1268 fschmid 26
 
1830 fschmid 27
protected slots:
28
        void reject();
29
 
3 paul 30
private:
2093 cbradney 31
        QListBox* masterPageData;
32
        QPushButton* importButton;
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:
2093 cbradney 42
        QVBoxLayout* masterPagesLayout;
1414 fschmid 43
        QHBoxLayout* buttonLayout;
44
 
3 paul 45
private slots:
2093 cbradney 46
        void duplicateMasterPage();
47
        void deleteMasterPage();
48
        void newMasterPage();
923 cbradney 49
        void appendPage();
2093 cbradney 50
        void selectMasterPage(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