Scribus
Open source desktop publishing at your fingertips
applytemplatedialog.h
1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 /***************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  ***************************************************************************/
15 #ifndef APPLYMASTERPAGEDIALOG_H
16 #define APPLYMASTERPAGEDIALOG_H
17 
18 #include <QDialog>
19 #include <QString>
20 
21 #include "scribusapi.h"
22 #include "scribusdoc.h"
23 #include "scpage.h"
24 #include "ui/scrspinbox.h"
25 
26 class QCheckBox;
27 class QComboBox;
28 class QEvent;
29 class QGroupBox;
30 class QHBoxLayout;
31 class QLabel;
32 class QPushButton;
33 class QRadioButton;
34 class QSpacerItem;
35 class QVBoxLayout;
36 
37 class SCRIBUS_API ApplyMasterPageDialog : public QDialog
38 {
39  Q_OBJECT
40 
41 public:
42  ApplyMasterPageDialog( QWidget* parent = 0 );
44 
45  virtual void changeEvent(QEvent *e);
46 
47  QLabel* masterPageLabel;
48  QComboBox* masterPageComboBox;
49  QGroupBox* applyToPageButtonGroup;
50  QRadioButton* currentPageRadioButton;
51  QRadioButton* evenPagesRadioButton;
52  QRadioButton* oddPagesRadioButton;
53  QRadioButton* allPagesRadioButton;
54  QCheckBox* useRangeCheckBox;
55  ScrSpinBox* fromPageSpinBox;
56  QLabel* toPageLabel;
57  ScrSpinBox* toPageSpinBox;
58  QPushButton* okButton;
59  QPushButton* cancelButton;
60 
61  virtual void setup( ScribusDoc * view, QString Nam );
62  virtual QString getMasterPageName();
63  virtual int getPageSelection();
64  virtual bool usingRange();
65  virtual int getFromPage();
66  virtual int getToPage();
67 
68 protected:
69  QVBoxLayout* ApplyMasterPageDialogLayout;
70  QHBoxLayout* templateNameLayout;
71  QSpacerItem* spacer2;
72  QVBoxLayout* applyToPageButtonGroupLayout;
73  QHBoxLayout* rangeLayout;
74  QSpacerItem* spacer3;
75  QHBoxLayout* layout8;
76  QSpacerItem* spacer1;
77 
78 protected slots:
79  virtual void languageChange();
80 
81 private slots:
82  virtual void checkRangeFrom();
83  virtual void checkRangeTo();
84  virtual void enableRange( bool enabled );
85  virtual void rangeSelectable();
86  virtual void singleSelectable();
87 
88 };
89 
90 #endif // APPLYMASTERPAGEDIALOG_H
the Document Class
Definition: scribusdoc.h:90
ScrSpinBox is a Qt4 replacement for our old ScrSpinBox using Qt3.
Definition: scrspinbox.h:21
Definition: applytemplatedialog.h:37