Back to index

scribus-ng  1.3.4.dfsg+svn20071115
pagelayout.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 PAGELAYOUT_H
00008 #define PAGELAYOUT_H
00009 
00010 #include <qvariant.h>
00011 #include <qgroupbox.h>
00012 #include "scribusapi.h"
00013 #include "scribusstructs.h"
00014 
00015 class QVBoxLayout;
00016 class QHBoxLayout;
00017 class QIconView;
00018 class QIconViewItem;
00019 class QLabel;
00020 class ScComboBox;
00021 
00022 class SCRIBUS_API PageLayouts : public QGroupBox
00023 {
00024        Q_OBJECT
00025 
00026 public:
00027        PageLayouts( QWidget* parent, QValueList<PageSet> pSets, bool mode = true );
00028        ~PageLayouts() {};
00029        void updateLayoutSelector(QValueList<PageSet> pSets);
00030        void selectFirstP(int nr);
00031        void selectItem(uint nr);
00032        QIconView* layoutsView;
00033        ScComboBox* layoutsCombo;
00034        QLabel* layoutLabel1;
00035        ScComboBox* firstPage;
00036        QValueList<PageSet> pageSets;
00037 
00038 public slots:
00039        void itemSelected(QIconViewItem* ic);
00040        void itemSelected(int ic);
00041 
00042 signals:
00043        void selectedLayout(int);
00044        void selectedFirstPage(int);
00045 
00046 private:
00047        void itemSelectedPost(int choosen);
00048        bool modus;
00049 
00050 protected:
00051        QVBoxLayout* layoutGroupLayout;
00052 
00053 protected slots:
00054        virtual void languageChange();
00055 
00056 };
00057 
00058 #endif // PAGELAYOUT_H