Back to index

scribus-ng  1.3.4.dfsg+svn20071115
applytemplatedialog.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 /***************************************************************************
00008  *                                                                         *
00009  *   This program is free software; you can redistribute it and/or modify  *
00010  *   it under the terms of the GNU General Public License as published by  *
00011  *   the Free Software Foundation; either version 2 of the License, or     *
00012  *   (at your option) any later version.                                   *
00013  *                                                                         *
00014  ***************************************************************************/
00015 #ifndef APPLYMASTERPAGEDIALOG_H
00016 #define APPLYMASTERPAGEDIALOG_H
00017 
00018 #include <qvariant.h>
00019 #include <qdialog.h>
00020 
00021 #include "scribusapi.h"
00022 #include "scribusdoc.h"
00023 #include "page.h"
00024 
00025 class QVBoxLayout;
00026 class QHBoxLayout;
00027 class QGridLayout;
00028 class QSpacerItem;
00029 class QLabel;
00030 class QComboBox;
00031 class QButtonGroup;
00032 class QRadioButton;
00033 class QCheckBox;
00034 class QSpinBox;
00035 class QPushButton;
00036 
00037 class SCRIBUS_API ApplyMasterPageDialog : public QDialog
00038 {
00039        Q_OBJECT
00040 
00041 public:
00042        ApplyMasterPageDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
00043        ~ApplyMasterPageDialog();
00044 
00045        QLabel* masterPageLabel;
00046        QComboBox* masterPageComboBox;
00047        QButtonGroup* applyToPageButtonGroup;
00048        QRadioButton* currentPageRadioButton;
00049        QRadioButton* evenPagesRadioButton;
00050        QRadioButton* oddPagesRadioButton;
00051        QRadioButton* allPagesRadioButton;
00052        QCheckBox* useRangeCheckBox;
00053        QSpinBox* fromPageSpinBox;
00054        QLabel* toPageLabel;
00055        QSpinBox* toPageSpinBox;
00056        QPushButton* okButton;
00057        QPushButton* cancelButton;
00058 
00059        virtual void setup( ScribusDoc * view, QString Nam );
00060        virtual QString getMasterPageName();
00061        virtual int getPageSelection();
00062        virtual bool usingRange();
00063        virtual int getFromPage();
00064        virtual int getToPage();
00065 
00066 protected:
00067        QVBoxLayout* ApplyMasterPageDialogLayout;
00068        QHBoxLayout* templateNameLayout;
00069        QSpacerItem* spacer2;
00070        QVBoxLayout* applyToPageButtonGroupLayout;
00071        QHBoxLayout* rangeLayout;
00072        QSpacerItem* spacer3;
00073        QHBoxLayout* layout8;
00074        QSpacerItem* spacer1;
00075 
00076 protected slots:
00077        virtual void languageChange();
00078 
00079 private slots:
00080        virtual void checkRangeFrom();
00081        virtual void checkRangeTo();
00082        virtual void enableRange( bool enabled );
00083        virtual void rangeSelectable();
00084        virtual void singleSelectable();
00085 
00086 };
00087 
00088 #endif // APPLYMASTERPAGEDIALOG_H