Scribus Developer Documentation - API
logo-pen

Scribus Developer Documentation - API

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 <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
Created with personalized Doxygen. This is documentation for GPL software Scribus - Open Source Desktop Publishing.