Subversion Repositories Scribus

Rev

Rev 3893 | Rev 5623 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4430 cbradney 1
/*
2
For general Scribus (>=1.3.2) copyright and licensing information please refer
3
to the COPYING file provided with the program. Following this notice may exist
4
a copyright and/or license notice that predates the release of Scribus 1.3.2
5
for which a new license (GPL+exception) is in place.
6
*/
924 cbradney 7
#ifndef MUSTERPAGES_H
8
#define MUSTERPAGES_H
3 paul 9
 
10
#include <qdialog.h>
923 cbradney 11
class QListBox;
12
class QListBoxItem;
2439 cbradney 13
class QToolButton;
923 cbradney 14
class QHBoxLayout;
15
class QVBoxLayout;
16
 
2969 craig 17
#include "scribusapi.h"
838 cbradney 18
class ScribusDoc;
923 cbradney 19
class ScribusView;
3 paul 20
 
2969 craig 21
class SCRIBUS_API MasterPagesPalette : public QDialog
1414 fschmid 22
{
23
        Q_OBJECT
3 paul 24
 
25
public:
2093 cbradney 26
        MasterPagesPalette( QWidget* parent, ScribusDoc *pCurrentDoc, ScribusView *pCurrentView, QString masterPageName);
27
        ~MasterPagesPalette() {};
1414 fschmid 28
        void closeEvent(QCloseEvent *closeEvent);
2093 cbradney 29
        void updateMasterPageList(QString MasterPageName);
3 paul 30
 
1268 fschmid 31
public slots:
2093 cbradney 32
        void selectMasterPage(QString name);
1268 fschmid 33
 
1830 fschmid 34
protected slots:
35
        void reject();
36
 
3 paul 37
private:
2093 cbradney 38
        QListBox* masterPageData;
2439 cbradney 39
        QToolButton* importButton;
40
        QToolButton* newButton;
41
        QToolButton* duplicateButton;
42
        QToolButton* deleteButton;
43
        QToolButton* closeButton;
1414 fschmid 44
        ScribusDoc *currentDoc;
45
        ScribusView *currentView;
46
        QString sMuster;
3 paul 47
 
1414 fschmid 48
protected:
2093 cbradney 49
        QVBoxLayout* masterPagesLayout;
1414 fschmid 50
        QHBoxLayout* buttonLayout;
51
 
3 paul 52
private slots:
2093 cbradney 53
        void duplicateMasterPage();
54
        void deleteMasterPage();
55
        void newMasterPage();
923 cbradney 56
        void appendPage();
2093 cbradney 57
        void selectMasterPage(QListBoxItem *item);
1414 fschmid 58
 
3 paul 59
signals:
3893 cbradney 60
        //void createNew(int);
2776 fschmid 61
        void removePage(int);
923 cbradney 62
        void loadPage(QString, int, bool);
63
        void finished();
3691 cbradney 64
        void docAltered();
1414 fschmid 65
 
3 paul 66
};
67
 
924 cbradney 68
#endif // MUSTERPAGES_H