/* 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 PAGELAYOUT_H #define PAGELAYOUT_H #include #include #include class QVBoxLayout; class QListWidgetItem; class QLabel; #include "scribusapi.h" #include "scribusstructs.h" class ScComboBox; /*! \brief A widget containing pages layout schema */ class SCRIBUS_API PageListWidget : public QListWidget { Q_OBJECT public: PageListWidget(QWidget* parent); ~PageListWidget() {}; void arrangeIcons(); }; /*! \brief A widget for changing pages layout. User can change layouts on-the-fly changing widget's comboboxes. */ class SCRIBUS_API PageLayouts : public QGroupBox { Q_OBJECT public: PageLayouts( QWidget* parent, QList pSets, bool mode = true ); ~PageLayouts() {}; void updateLayoutSelector(QList pSets); void selectFirstP(int nr); void selectItem(uint nr); PageListWidget* layoutsView; ScComboBox* layoutsCombo; QLabel* layoutLabel1; ScComboBox* firstPage; QList pageSets; public slots: void itemSelected(QListWidgetItem* ic); void itemSelected(int ic); signals: void selectedLayout(int); void selectedFirstPage(int); private: void itemSelectedPost(int choosen); bool modus; protected: QVBoxLayout* layoutGroupLayout; protected slots: virtual void languageChange(); }; #endif // PAGELAYOUT_H