Back to index

scribus-ng  1.3.4.dfsg+svn20071115
margindialog.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 #ifndef MARGINDIALOG_H
00008 #define MARGINDIALOG_H
00009 
00010 #include "scribusapi.h"
00011 
00012 class QDialog;
00013 class QLayout;
00014 class QGroupBox;
00015 class QLabel;
00016 class QPushbutton;
00017 class QComboBox;
00018 class QCheckBox;
00019 class MSpinBox;
00020 class MarginWidget;
00021 class ScribusDoc;
00022 
00025 class SCRIBUS_API MarginDialog : public QDialog
00026 {
00027        Q_OBJECT
00028 
00029 public:
00033        MarginDialog( QWidget* parent,  ScribusDoc* doc);
00034        ~MarginDialog() {};
00035 
00038        int pageOrder();
00041        int getPageOrientation();
00044        double getPageWidth();
00047        double getPageHeight();
00050        bool getMoveObjects();
00053        QString getpPrefsPageSizeName();
00056        double top();
00059        double bottom();
00062        double left();
00065        double right();
00068        QString masterPage();
00069 
00070 public slots:
00072        virtual void setPageSize();
00075        virtual void setSize(const QString & gr);
00078        virtual void setOrien(int ori);
00082        virtual void setPageWidth(int v);
00086        virtual void setPageHeight(int v);
00087 
00088 private:
00089        MarginWidget* GroupRand;
00090        QGroupBox* dsGroupBox7;
00091        QGroupBox* groupMaster;
00092        QLabel* masterPageLabel;
00093        QComboBox* masterPageComboBox;
00094        MSpinBox* widthMSpinBox;
00095        MSpinBox* heightMSpinBox;
00096        QLabel* widthQLabel;
00097        QLabel* heightQLabel;
00098        QLabel* TextLabel1;
00099        QLabel* TextLabel2;
00100        QComboBox* sizeQComboBox;
00101        QComboBox* orientationQComboBox;
00102        QComboBox* Links;
00103        QLabel* TextLabel3;
00104        QCheckBox* moveObjects;
00105        QPushButton* cancelButton;
00106        QPushButton* okButton;
00107        double unitRatio;
00108        double pageWidth;
00109        double pageHeight;
00111        int oldOri;
00112        QString prefsPageSizeName;
00113        QGridLayout* dsGroupBox7Layout;
00114        QVBoxLayout* dialogLayout;
00115        QHBoxLayout* okCancelLayout;
00116        QHBoxLayout* masterLayout;
00117 
00118 
00119 };
00120 
00121 #endif