Back to index

scribus-ng  1.3.4.dfsg+svn20071115
tabdocument.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 TABDOCUMENT_H
00008 #define TABDOCUMENT_H
00009 
00010 #include <qwidget.h>
00011 
00012 #include "scribusapi.h"
00013 
00014 class MSpinBox;
00015 class PageLayouts;
00016 class MarginWidget;
00017 class QHBoxLayout;
00018 class QLabel;
00019 class QButtonGroup;
00020 class QVBoxLayout;
00021 class QCheckBox;
00022 class ScribusDoc;
00023 
00028 class SCRIBUS_API TabDocument : public QWidget
00029 {
00030        Q_OBJECT
00031 
00032 public:
00033        TabDocument(QWidget* parent = 0, const char* name = 0, const bool reform = false);
00034        ~TabDocument(){};
00035        void restoreDefaults(struct ApplicationPrefs *prefsData);
00036        void restoreDefaults(ScribusDoc *prefsData);
00037        void unitChange();
00039        void hideReform();
00040        MSpinBox* pageWidth;
00041        MSpinBox* pageHeight;
00042        PageLayouts* docLayout;
00043        MarginWidget* marginGroup;
00044        QButtonGroup* GroupSize;
00045        QComboBox* pageSizeComboBox;
00046        QComboBox* pageOrientationComboBox;
00047        int choosenLayout;
00048        double pageW;
00049        double pageH;
00050        QString prefsPageSizeName;
00051        QComboBox* unitCombo;
00052        QGroupBox* GroupAS;
00053        QSpinBox* ASTime;
00054        QGroupBox* urGroup;
00055        QSpinBox* urSpinBox;
00056        // reform widgets
00057        QCheckBox* sizeAllPages;
00058        QCheckBox* sizeAllMasterPages;
00059 private:
00060        double unitRatio;
00061 private slots:
00067        void setPageWidth(int);
00073        void setPageHeight(int);
00079        void setOrien(int ori);
00085        void setSize(const QString & gr);
00086        void setPageSize();
00087        void slotUndo(bool isEnabled);
00088 
00089 protected:
00090        QLabel* GZText1;
00091        QLabel* GZText2;
00092        QLabel* GZText3;
00093        QLabel* GZText4;
00094        QLabel* unitComboText;
00095        QLabel* ASText;
00096        QLabel* urLabel;
00097        QLabel* sizePages;
00098        QHBoxLayout* sizePagesLayout;
00099        QHBoxLayout* tabLayout_7;
00100        QVBoxLayout* Layout21;
00101        QHBoxLayout* dsLayout4p;
00102        QVBoxLayout* dsLayout4pv;
00103        QVBoxLayout* GroupSizeLayout;
00104        QGridLayout* Layout6;
00105        QHBoxLayout* Layout5_2;
00106        QHBoxLayout* GroupASLayout;
00107 };
00108 
00109 #endif