Back to index

scribus-ng  1.3.4.dfsg+svn20071115
tabguides.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 TABGUIDES_H
00008 #define TABGUIDES_H
00009 
00010 #include "scribusapi.h"
00011 
00012 #include <qvariant.h>
00013 #include <qwidget.h>
00014 class QGridLayout;
00015 class QVBoxLayout;
00016 class QHBoxLayout;
00017 class QGroupBox;
00018 class QButtonGroup;
00019 class QRadioButton;
00020 class QLabel;
00021 class MSpinBox;
00022 class QSpinBox;
00023 class QPushButton;
00024 class QCheckBox;
00025 class QColor;
00026 
00027 class SCRIBUS_API TabGuides : public QWidget
00028 {
00029        Q_OBJECT
00030 
00031 public:
00032        TabGuides( QWidget* parent, struct guidesPrefs *prefsData, struct typoPrefs *prefsData2, int unitIndex);
00033        ~TabGuides() {};
00034        void restoreDefaults(struct guidesPrefs *prefsData, struct typoPrefs *prefsData2, int unitIndex);
00035        void unitChange(QString unit, int docUnitIndex, int decimals, double invUnitConversion);
00036 
00037        MSpinBox* majorSpace;
00038        MSpinBox* minorSpace;
00039        QSpinBox* snapDistance;
00040        QLabel* checkBaseline;
00041        QColor colorGuides;
00042        QColor colorMargin;
00043        QColor colorMajorGrid;
00044        QColor colorMinorGrid;
00045        QColor colorBaselineGrid;
00046        QGroupBox* checkGrid;
00047        QGroupBox* groupBox1;
00048        QGroupBox* groupBox2;
00049        QGroupBox* commonBox;
00050        QGroupBox* snapBox;
00051        QGroupBox* guideBox;
00052        QGroupBox* marginBox;
00053        QGroupBox* baselineBox;
00054        QGroupBox* baseGridBox;
00055        QButtonGroup* buttonGroup1;
00056        QRadioButton* inBackground;
00057        QRadioButton* inForeground;
00058        QLabel* textLabel4;
00059        QLabel* textLabel5;
00060        QLabel* textLabel6;
00061        QLabel* textLabel7;
00062        QLabel* textLabel8;
00063        QLabel* textLabel82;
00064        QLabel* checkMargin;
00065        QLabel* checkGuides;
00066        QPushButton* majorGridColor;
00067        QPushButton* minorGridColor;
00068        QPushButton* baselineColor;
00069        QPushButton* guideColor;
00070        QPushButton* marginColor;
00071        QSpinBox* grabDistance;
00072        QLabel* textLabel6a;
00073        QLabel* textLabel7a;
00074        MSpinBox* baseGrid;
00075        MSpinBox* baseOffset;
00076        QLabel* textLabel8a;
00077 
00078 protected slots:
00079        virtual void changeMajorColor();
00080        virtual void changeMinorColor();
00081        virtual void changeBaselineColor();
00082        virtual void changeGuideColor();
00083        virtual void changeMarginColor();
00084 
00085 protected:
00086        QVBoxLayout* tabGuidesLayout;
00087        QGridLayout* checkGridLayout;
00088        QGridLayout* groupBox1Layout;
00089        QGridLayout* groupBox2Layout;
00090        QHBoxLayout* commonBoxLayout;
00091        QGridLayout* snapBoxLayout;
00092        QHBoxLayout* guideBoxLayout;
00093        QHBoxLayout* marginBoxLayout;
00094        QGridLayout* baselineBoxLayout;
00095        QGridLayout* baseGridBoxLayout;
00096        QVBoxLayout* buttonGroup1Layout;
00097        QHBoxLayout* layout9;
00098        QHBoxLayout* layout9a;
00099        
00100 //     double unitRatio;
00101 //     QString unit;
00102 //     int precision;
00103 };
00104 #endif