Subversion Repositories Scribus

Rev

Rev 1790 | Rev 1833 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
879 fschmid 1
#ifndef TABGUIDES_H
2
#define TABGUIDES_H
3
 
4
#include <qvariant.h>
5
#include <qwidget.h>
6
class QGridLayout;
7
class QVBoxLayout;
8
class QHBoxLayout;
9
class QGroupBox;
1187 fschmid 10
class QButtonGroup;
11
class QRadioButton;
879 fschmid 12
class QLabel;
13
class MSpinBox;
14
class QSpinBox;
15
class QPushButton;
16
class QCheckBox;
17
class QColor;
18
 
19
class TabGuides : public QWidget
20
{
21
        Q_OBJECT
22
 
23
public:
1790 cbradney 24
        TabGuides( QWidget* parent, struct guidesPrefs *prefsData, struct typoPrefs *prefsData2, int unitIndex);
879 fschmid 25
        ~TabGuides() {};
1828 fschmid 26
        void restoreDefaults();
879 fschmid 27
 
28
        MSpinBox* majorSpace;
29
        MSpinBox* minorSpace;
30
        MSpinBox* snapDistance;
31
        QCheckBox* checkMargin;
32
        QCheckBox* checkGuides;
33
        QCheckBox* checkBaseline;
34
        QColor colorGuides;
35
        QColor colorMargin;
36
        QColor colorMajorGrid;
37
        QColor colorMinorGrid;
38
        QColor colorBaselineGrid;
39
        QGroupBox* checkGrid;
40
        QGroupBox* groupBox1;
41
        QGroupBox* groupBox2;
1195 fschmid 42
        QGroupBox* commonBox;
43
        QGroupBox* snapBox;
44
        QGroupBox* guideBox;
45
        QGroupBox* marginBox;
46
        QGroupBox* baselineBox;
1187 fschmid 47
        QButtonGroup* buttonGroup1;
48
        QRadioButton* inBackground;
49
        QRadioButton* inForeground;
879 fschmid 50
        QLabel* textLabel4;
51
        QLabel* textLabel5;
52
        QLabel* textLabel6;
53
        QLabel* textLabel7;
54
        QLabel* textLabel8;
55
        QLabel* textLabel82;
56
        QPushButton* majorGridColor;
57
        QPushButton* minorGridColor;
58
        QPushButton* baselineColor;
59
        QPushButton* guideColor;
60
        QPushButton* marginColor;
61
        QSpinBox* grabDistance;
1195 fschmid 62
        QLabel* textLabel6a;
63
        QSpinBox* autoLine;
64
        QLabel* textLabel7a;
65
        MSpinBox* baseGrid;
66
        MSpinBox* baseOffset;
67
        QLabel* textLabel8a;
879 fschmid 68
 
69
protected slots:
70
        virtual void changeMajorColor();
71
        virtual void changeMinorColor();
72
        virtual void changeBaselineColor();
73
        virtual void changeGuideColor();
74
        virtual void changeMarginColor();
75
 
76
protected:
77
        QVBoxLayout* tabGuidesLayout;
78
        QGridLayout* checkGridLayout;
79
        QGridLayout* groupBox1Layout;
80
        QGridLayout* groupBox2Layout;
1195 fschmid 81
        QHBoxLayout* commonBoxLayout;
82
        QGridLayout* snapBoxLayout;
83
        QHBoxLayout* guideBoxLayout;
84
        QHBoxLayout* marginBoxLayout;
85
        QGridLayout* baselineBoxLayout;
86
        QVBoxLayout* buttonGroup1Layout;
879 fschmid 87
        QHBoxLayout* layout9;
1790 cbradney 88
 
89
        double unitRatio;
90
        QString unit;
91
        int precision;
879 fschmid 92
};
93
#endif