Scribus
Open source desktop publishing at your fingertips
margindialog.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 MARGINDIALOG_H
8 #define MARGINDIALOG_H
9 
10 #include "scribusapi.h"
11 #include <QDialog>
12 
13 class QGroupBox;
14 class QLabel;
15 class QPushbutton;
16 class QComboBox;
17 class QCheckBox;
18 class QLabel;
19 class QGridLayout;
20 class QHBoxLayout;
21 class QVBoxLayout;
22 class ScrSpinBox;
23 class MarginWidget;
24 class ScribusDoc;
25 
28 class SCRIBUS_API MarginDialog : public QDialog
29 {
30  Q_OBJECT
31 
32 public:
36  MarginDialog( QWidget* parent, ScribusDoc* doc);
37  ~MarginDialog() {};
38 
41  int pageOrder();
44  int getPageOrientation();
47  double getPageWidth();
50  double getPageHeight();
53  bool getMoveObjects();
56  QString getpPrefsPageSizeName();
59  double top();
62  double bottom();
65  double left();
68  double right();
71  QString masterPage();
72  int getMarginPreset();
73 
74 public slots:
76  virtual void setPageSize();
79  virtual void setSize(const QString & gr);
82  virtual void setOrien(int ori);
86  virtual void setPageWidth(double v);
90  virtual void setPageHeight(double v);
91 
92 private:
93  MarginWidget* GroupRand;
94  QGroupBox* dsGroupBox7;
95  QGroupBox* groupMaster;
96  QLabel* masterPageLabel;
97  QComboBox* masterPageComboBox;
98  ScrSpinBox* widthSpinBox;
99  ScrSpinBox* heightSpinBox;
100  QLabel* widthQLabel;
101  QLabel* heightQLabel;
102  QLabel* TextLabel1;
103  QLabel* TextLabel2;
104  QComboBox* sizeQComboBox;
105  QComboBox* orientationQComboBox;
106  QComboBox* Links;
107  QLabel* TextLabel3;
108  QCheckBox* moveObjects;
109  QPushButton* pageFillColorButton;
110  QPushButton* cancelButton;
111  QPushButton* okButton;
112  double unitRatio;
113  double pageWidth;
114  double pageHeight;
116  int oldOri;
117  QString prefsPageSizeName;
118  QGridLayout* dsGroupBox7Layout;
119  QVBoxLayout* dialogLayout;
120  QHBoxLayout* okCancelLayout;
121  QHBoxLayout* masterLayout;
122 
123 
124 };
125 
126 #endif
Widget for Margins setting. Used e.g. in "New Doc Dialog" or "Preferences".
Definition: marginwidget.h:28
the Document Class
Definition: scribusdoc.h:90
ScrSpinBox is a Qt4 replacement for our old ScrSpinBox using Qt3.
Definition: scrspinbox.h:21
A dialog to setup the existing document margins. In modal mode called from void ScribusMainWindow::ch...
Definition: margindialog.h:28