Subversion Repositories Scribus

Rev

Rev 3691 | Rev 4430 | 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
 
2969 craig 11
#include "scribusapi.h"
838 cbradney 12
class ScribusDoc;
923 cbradney 13
class ScribusView;
3 paul 14
 
2969 craig 15
class SCRIBUS_API MasterPagesPalette : public QDialog
1414 fschmid 16
{
17
        Q_OBJECT
3 paul 18
 
19
public:
2093 cbradney 20
        MasterPagesPalette( QWidget* parent, ScribusDoc *pCurrentDoc, ScribusView *pCurrentView, QString masterPageName);
21
        ~MasterPagesPalette() {};
1414 fschmid 22
        void closeEvent(QCloseEvent *closeEvent);
2093 cbradney 23
        void updateMasterPageList(QString MasterPageName);
3 paul 24
 
1268 fschmid 25
public slots:
2093 cbradney 26
        void selectMasterPage(QString name);
1268 fschmid 27
 
1830 fschmid 28
protected slots:
29
        void reject();
30
 
3 paul 31
private:
2093 cbradney 32
        QListBox* masterPageData;
2439 cbradney 33
        QToolButton* importButton;
34
        QToolButton* newButton;
35
        QToolButton* duplicateButton;
36
        QToolButton* deleteButton;
37
        QToolButton* closeButton;
1414 fschmid 38
        ScribusDoc *currentDoc;
39
        ScribusView *currentView;
40
        QString sMuster;
3 paul 41
 
1414 fschmid 42
protected:
2093 cbradney 43
        QVBoxLayout* masterPagesLayout;
1414 fschmid 44
        QHBoxLayout* buttonLayout;
45
 
3 paul 46
private slots:
2093 cbradney 47
        void duplicateMasterPage();
48
        void deleteMasterPage();
49
        void newMasterPage();
923 cbradney 50
        void appendPage();
2093 cbradney 51
        void selectMasterPage(QListBoxItem *item);
1414 fschmid 52
 
3 paul 53
signals:
3893 cbradney 54
        //void createNew(int);
2776 fschmid 55
        void removePage(int);
923 cbradney 56
        void loadPage(QString, int, bool);
57
        void finished();
3691 cbradney 58
        void docAltered();
1414 fschmid 59
 
3 paul 60
};
61
 
924 cbradney 62
#endif // MUSTERPAGES_H