Back to index

scribus-ng  1.3.4.dfsg+svn20071115
muster.h
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 #ifndef MUSTERPAGES_H
00008 #define MUSTERPAGES_H
00009 
00010 #include <qdialog.h>
00011 class QListBox;
00012 class QListBoxItem;
00013 class QToolButton;
00014 class QHBoxLayout;
00015 class QVBoxLayout;
00016 
00017 #include "scribusapi.h"
00018 class ScribusDoc;
00019 class ScribusView;
00020 
00021 class SCRIBUS_API MasterPagesPalette : public QDialog
00022 {
00023        Q_OBJECT
00024 
00025 public:
00026        MasterPagesPalette( QWidget* parent, ScribusDoc *pCurrentDoc, ScribusView *pCurrentView, QString masterPageName);
00027        ~MasterPagesPalette() {};
00028        void closeEvent(QCloseEvent *closeEvent);
00029        void updateMasterPageList(QString MasterPageName);
00030 
00031 public slots:
00032        void selectMasterPage(QString name);
00033 
00034 protected slots:
00035        void reject();
00036 
00037 private:
00038        QListBox* masterPageListBox;
00039        QToolButton* importButton;
00040        QToolButton* newButton;
00041        QToolButton* duplicateButton;
00042        QToolButton* deleteButton;
00043        QToolButton* closeButton;
00044        ScribusDoc *currentDoc;
00045        ScribusView *currentView;
00046        QString sMuster;
00047 
00048 protected:
00049        QVBoxLayout* masterPagesLayout;
00050        QHBoxLayout* buttonLayout;
00051 
00052 private slots:
00053        void duplicateMasterPage();
00054        void deleteMasterPage();
00055        void newMasterPage();
00056        void renameMasterPage(QListBoxItem * item);
00057        void appendPage();
00058        void selectMasterPage(QListBoxItem *item);
00059 
00060 signals:
00061        void removePage(int);
00062        void finished();
00063 };
00064 
00065 #endif // MUSTERPAGES_H