Back to index

scribus-ng  1.3.4.dfsg+svn20071115
movepage.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 MOVEPAGES_H
00008 #define MOVEPAGES_H
00009 
00010 class QDialog;
00011 class QCombobox;
00012 class QLabel;
00013 class QPushbutton;
00014 class QSpinBox;
00015 class QLayout;
00016 
00017 #include "scribusapi.h"
00018 
00019 class SCRIBUS_API MovePages : public QDialog
00020 { 
00021        Q_OBJECT
00022 
00023 public:
00024        MovePages( QWidget* parent, int currentPage, int maxPages, bool moving );
00025        ~MovePages() {};
00026 
00027        const int getFromPage();
00028        const int getToPage();
00029        const int getWhere();
00030        const int getWherePage();
00031        const int getCopyCount();
00032 
00033 
00034 private:
00035        QLabel* moveLabel;
00036        QLabel* toLabel;
00037        QLabel* numberOfCopiesLabel;
00038        QSpinBox* fromPageData;
00039        QSpinBox* toPageData;
00040        QSpinBox* numberOfCopiesData;
00041        QSpinBox* mvWherePageData;
00042        QComboBox* mvWhereData;
00043        QPushButton* okButton;
00044        QPushButton* cancelButton;
00045        QVBoxLayout* dialogLayout;
00046        QGridLayout* fromToLayout;
00047        QHBoxLayout* okCancelLayout;
00048 
00049        bool move;
00050 
00051 private slots:
00052        virtual void fromChanged(int);
00053        virtual void toChanged(int);
00054        void mvWherePageDataDisable(int index);
00055 };
00056 
00057 #endif // MOVEPAGES_H
00058