Subversion Repositories Scribus

Rev

Rev 2439 | Rev 2969 | 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;
2439 cbradney 7
class QToolButton;
923 cbradney 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;
2439 cbradney 32
        QToolButton* importButton;
33
        QToolButton* newButton;
34
        QToolButton* duplicateButton;
35
        QToolButton* deleteButton;
36
        QToolButton* closeButton;
1414 fschmid 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);
2776 fschmid 54
        void removePage(int);
923 cbradney 55
        void loadPage(QString, int, bool);
56
        void finished();
2055 craig 57
        void docAltered(ScribusDoc *);
1414 fschmid 58
 
3 paul 59
};
60
 
924 cbradney 61
#endif // MUSTERPAGES_H