Subversion Repositories Scribus

Rev

Rev 1833 | Rev 2969 | 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() {};
1833 fschmid 26
        void restoreDefaults(struct guidesPrefs *prefsData, struct typoPrefs *prefsData2, int unitIndex);
879 fschmid 27
 
28
        MSpinBox* majorSpace;
29
        MSpinBox* minorSpace;
30
        MSpinBox* snapDistance;
1834 fschmid 31
        QLabel* checkBaseline;
879 fschmid 32
        QColor colorGuides;
33
        QColor colorMargin;
34
        QColor colorMajorGrid;
35
        QColor colorMinorGrid;
36
        QColor colorBaselineGrid;
37
        QGroupBox* checkGrid;
38
        QGroupBox* groupBox1;
39
        QGroupBox* groupBox2;
1195 fschmid 40
        QGroupBox* commonBox;
41
        QGroupBox* snapBox;
42
        QGroupBox* guideBox;
43
        QGroupBox* marginBox;
44
        QGroupBox* baselineBox;
1834 fschmid 45
        QGroupBox* baseGridBox;
1187 fschmid 46
        QButtonGroup* buttonGroup1;
47
        QRadioButton* inBackground;
48
        QRadioButton* inForeground;
879 fschmid 49
        QLabel* textLabel4;
50
        QLabel* textLabel5;
51
        QLabel* textLabel6;
52
        QLabel* textLabel7;
53
        QLabel* textLabel8;
54
        QLabel* textLabel82;
1834 fschmid 55
        QLabel* checkMargin;
56
        QLabel* checkGuides;
879 fschmid 57
        QPushButton* majorGridColor;
58
        QPushButton* minorGridColor;
59
        QPushButton* baselineColor;
60
        QPushButton* guideColor;
61
        QPushButton* marginColor;
62
        QSpinBox* grabDistance;
1195 fschmid 63
        QLabel* textLabel6a;
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;
1834 fschmid 86
        QGridLayout* baseGridBoxLayout;
1195 fschmid 87
        QVBoxLayout* buttonGroup1Layout;
879 fschmid 88
        QHBoxLayout* layout9;
1834 fschmid 89
        QHBoxLayout* layout9a;
1790 cbradney 90
 
91
        double unitRatio;
92
        QString unit;
93
        int precision;
879 fschmid 94
};
95
#endif