home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / masterpagepalette.h < prev    next >
Encoding:
C/C++ Source or Header  |  2009-06-26  |  1.7 KB  |  76 lines

  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. */
  7. #ifndef MUSTERPAGES_H
  8. #define MUSTERPAGES_H
  9.  
  10. #include <QDialog>
  11.  
  12. class QCloseEvent;
  13. class QHBoxLayout;
  14. class QListWidget;
  15. class QListWidgetItem;
  16. class QToolButton;
  17. class QVBoxLayout;
  18.  
  19. #include "scribusapi.h"
  20. class ScribusDoc;
  21. class ScribusView;
  22.  
  23.  
  24. /*! \brief A dialog to manage/edit Master Pages
  25. */
  26. class SCRIBUS_API MasterPagesPalette : public QDialog
  27. {
  28.     Q_OBJECT
  29.  
  30. public:
  31.     MasterPagesPalette( QWidget* parent, ScribusDoc *pCurrentDoc,
  32.                         ScribusView *pCurrentView, QString masterPageName);
  33.     ~MasterPagesPalette() {};
  34.     void closeEvent(QCloseEvent *closeEvent);
  35.     void updateMasterPageList(void);
  36.     void updateMasterPageList(QString MasterPageName);
  37.  
  38. public slots:
  39.     void languageChange();
  40.     void selectMasterPage(QString name);
  41.  
  42.     virtual void changeEvent(QEvent *e);
  43.  
  44. protected slots:
  45.     void reject();
  46.  
  47. private:
  48.     QListWidget* masterPageListBox;
  49.     QString sMuster;
  50.     QToolButton* closeButton;
  51.     QToolButton* deleteButton;
  52.     QToolButton* duplicateButton;
  53.     QToolButton* importButton;
  54.     QToolButton* newButton;
  55.     ScribusDoc *currentDoc;
  56.     ScribusView *currentView;
  57.  
  58. protected:
  59.     QVBoxLayout* masterPagesLayout;
  60.     QHBoxLayout* buttonLayout;
  61.  
  62. private slots:
  63.     void duplicateMasterPage();
  64.     void deleteMasterPage();
  65.     void newMasterPage();
  66.     void renameMasterPage(QListWidgetItem * item);
  67.     void importPage();
  68.     void selectMasterPage(QListWidgetItem *item);
  69.  
  70. signals:
  71.     void removePage(int);
  72.     void finished();
  73. };
  74.  
  75. #endif // MUSTERPAGES_H
  76.