applytemplatedialog.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef APPLYMASTERPAGEDIALOG_H
00016 #define APPLYMASTERPAGEDIALOG_H
00017
00018 #include <QDialog>
00019
00020 #include "scribusapi.h"
00021 #include "scribusdoc.h"
00022 #include "page.h"
00023
00024 class QCheckBox;
00025 class QComboBox;
00026 class QEvent;
00027 class QGroupBox;
00028 class QHBoxLayout;
00029 class QLabel;
00030 class QPushButton;
00031 class QRadioButton;
00032 class QSpacerItem;
00033 class QSpinBox;
00034 class QVBoxLayout;
00035
00036 class SCRIBUS_API ApplyMasterPageDialog : public QDialog
00037 {
00038 Q_OBJECT
00039
00040 public:
00041 ApplyMasterPageDialog( QWidget* parent = 0 );
00042 ~ApplyMasterPageDialog();
00043
00044 virtual void changeEvent(QEvent *e);
00045
00046 QLabel* masterPageLabel;
00047 QComboBox* masterPageComboBox;
00048 QGroupBox* applyToPageButtonGroup;
00049 QRadioButton* currentPageRadioButton;
00050 QRadioButton* evenPagesRadioButton;
00051 QRadioButton* oddPagesRadioButton;
00052 QRadioButton* allPagesRadioButton;
00053 QCheckBox* useRangeCheckBox;
00054 QSpinBox* fromPageSpinBox;
00055 QLabel* toPageLabel;
00056 QSpinBox* toPageSpinBox;
00057 QPushButton* okButton;
00058 QPushButton* cancelButton;
00059
00060 virtual void setup( ScribusDoc * view, QString Nam );
00061 virtual QString getMasterPageName();
00062 virtual int getPageSelection();
00063 virtual bool usingRange();
00064 virtual int getFromPage();
00065 virtual int getToPage();
00066
00067 protected:
00068 QVBoxLayout* ApplyMasterPageDialogLayout;
00069 QHBoxLayout* templateNameLayout;
00070 QSpacerItem* spacer2;
00071 QVBoxLayout* applyToPageButtonGroupLayout;
00072 QHBoxLayout* rangeLayout;
00073 QSpacerItem* spacer3;
00074 QHBoxLayout* layout8;
00075 QSpacerItem* spacer1;
00076
00077 protected slots:
00078 virtual void languageChange();
00079
00080 private slots:
00081 virtual void checkRangeFrom();
00082 virtual void checkRangeTo();
00083 virtual void enableRange( bool enabled );
00084 virtual void rangeSelectable();
00085 virtual void singleSelectable();
00086
00087 };
00088
00089 #endif // APPLYMASTERPAGEDIALOG_H