Back to index

scribus-ng  1.3.4.dfsg+svn20071115
inspage.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 INSPAGE_H
00008 #define INSPAGE_H
00009 
00010 #include "scribusapi.h"
00011 #include <qptrlist.h>
00012 #include <qstringlist.h>
00013 class QDialog;
00014 class QComboBox;
00015 class QLayout;
00016 class QLabel;
00017 class QPushButton;
00018 class QSpinBox;
00019 class QGroupBox;
00020 class QCheckBox;
00021 class MSpinBox;
00022 class ScribusDoc;
00023 
00024 class SCRIBUS_API InsPage : public QDialog
00025 {
00026        Q_OBJECT
00027 
00028 public:
00029        InsPage( QWidget* parent, ScribusDoc* currentDoc, int currentPage, int maxPages );
00030        ~InsPage() {};
00031        QGroupBox* dsGroupBox7;
00032        QGroupBox* masterPageGroup;
00033        MSpinBox* widthMSpinBox;
00034        MSpinBox* heightMSpinBox;
00035        QLabel*       widthQLabel;
00036        QLabel*       heightQLabel;
00037        QLabel* TextLabel1;
00038        QLabel* TextLabel2;
00039        QComboBox* sizeQComboBox;
00040        QComboBox* orientationQComboBox;
00041        QCheckBox* moveObjects;
00042        double unitRatio;
00043        QString prefsPageSizeName;
00044        QPtrList<QComboBox> masterPageCombos;
00045 
00046        const QStringList getMasterPages();
00047        const QString getMasterPageN(uint n);
00048        const int getWhere();
00049        const int getWherePage();
00050        const int getCount();
00051 
00052 private:
00053        QLabel* insCountLabel;
00054        QLabel* masterPageLabel;
00055        QLabel* pagesLabel;
00056        QPushButton* cancelButton;
00057        QPushButton* okButton;
00058        QComboBox* insWhereData;
00059        QSpinBox* insWherePageData;
00060        QSpinBox* insCountData;
00061        QVBoxLayout* dialogLayout;
00062        QGridLayout* whereLayout;
00063        QGridLayout* masterPageLayout;
00064        QHBoxLayout* okCancelLayout;
00065        QGridLayout* dsGroupBox7Layout;
00066 
00067 private slots:
00068        void insWherePageDataDisable (int index);
00069        void setSize(const QString &);
00070        void setOrien(int ori);
00071 };
00072 
00073 #endif // INSPAGE_H