blob: 131e8a880dd297f1c228e79d04792e4512302e30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
/*
For general Scribus (>=1.3.2) copyright and licensing information please refer
to the COPYING file provided with the program. Following this notice may exist
a copyright and/or license notice that predates the release of Scribus 1.3.2
for which a new license (GPL+exception) is in place.
*/
#ifndef MUSTERPAGES_H
#define MUSTERPAGES_H
#include <QDialog>
class QCloseEvent;
class QHBoxLayout;
class QListWidget;
class QListWidgetItem;
class QToolButton;
class QVBoxLayout;
#include "scribusapi.h"
class ScribusDoc;
class ScribusView;
/*! \brief A dialog to manage/edit Master Pages
*/
class SCRIBUS_API MasterPagesPalette : public QDialog
{
Q_OBJECT
public:
MasterPagesPalette( QWidget* parent, ScribusDoc *pCurrentDoc,
ScribusView *pCurrentView, QString masterPageName);
~MasterPagesPalette() {};
void closeEvent(QCloseEvent *closeEvent);
void updateMasterPageList(void);
void updateMasterPageList(QString MasterPageName);
public slots:
void languageChange();
void selectMasterPage(QString name);
virtual void changeEvent(QEvent *e);
protected slots:
void reject();
private:
QListWidget* masterPageListBox;
QString sMuster;
QToolButton* closeButton;
QToolButton* deleteButton;
QToolButton* duplicateButton;
QToolButton* importButton;
QToolButton* newButton;
ScribusDoc *currentDoc;
ScribusView *currentView;
protected:
QVBoxLayout* masterPagesLayout;
QHBoxLayout* buttonLayout;
private slots:
void duplicateMasterPage();
void deleteMasterPage();
void newMasterPage();
void renameMasterPage(QListWidgetItem * item);
void importPage();
void selectMasterPage(QListWidgetItem *item);
signals:
void removePage(int);
void finished();
};
#endif // MUSTERPAGES_H
|