Scribus
Open source desktop publishing at your fingertips
inspage.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 #ifndef INSPAGE_H
8 #define INSPAGE_H
9 
10 #include "scribusapi.h"
11 #include <QDialog>
12 #include <QList>
13 #include <QStringList>
14 #include <QGridLayout>
15 #include <QHBoxLayout>
16 #include <QVBoxLayout>
17 
18 class QLabel;
19 class QPushButton;
20 class QSpinBox;
21 class QGroupBox;
22 class QCheckBox;
23 class QComboBox;
24 class ScrSpinBox;
25 class ScribusDoc;
26 
27 class SCRIBUS_API InsPage : public QDialog
28 {
29  Q_OBJECT
30 
31 public:
32  InsPage( QWidget* parent, ScribusDoc* currentDoc, int currentPage, int maxPages );
33  ~InsPage() {};
34  QGroupBox* dsGroupBox7;
35  QGroupBox* masterPageGroup;
36  ScrSpinBox* widthSpinBox;
37  ScrSpinBox* heightSpinBox;
38  QLabel* widthQLabel;
39  QLabel* heightQLabel;
40  QLabel* TextLabel1;
41  QLabel* TextLabel2;
42  QComboBox* sizeQComboBox;
43  QComboBox* orientationQComboBox;
44  QCheckBox* moveObjects;
45  QCheckBox* overrideMPSizingCheckBox;
46  double unitRatio;
47  QString prefsPageSizeName;
48  QList<QComboBox*> masterPageCombos;
49 
50  const QStringList getMasterPages();
51  const QString getMasterPageN(uint n);
52  int getWhere() const;
53  int getWherePage() const;
54  int getCount() const;
55 
56 private:
57  QLabel* insCountLabel;
58  QLabel* masterPageLabel;
59  QLabel* pagesLabel;
60  QPushButton* cancelButton;
61  QPushButton* okButton;
62  QComboBox* insWhereData;
63  QSpinBox* insWherePageData;
64  QSpinBox* insCountData;
65  QVBoxLayout* dialogLayout;
66  QGridLayout* whereLayout;
67  QGridLayout* masterPageLayout;
68  QHBoxLayout* okCancelLayout;
69  QGridLayout* dsGroupBox7Layout;
70 
71 private slots:
72  void insWherePageDataDisable (int index);
73  void setSize(const QString &);
74  void setOrien(int ori);
75  void enableSizingControls(int);
76 };
77 
78 #endif // INSPAGE_H
the Document Class
Definition: scribusdoc.h:90
Definition: inspage.h:27
ScrSpinBox is a Qt4 replacement for our old ScrSpinBox using Qt3.
Definition: scrspinbox.h:21