Subversion Repositories Scribus

Rev

Rev 1834 | Rev 4430 | 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
 
2969 craig 4
#include "scribusapi.h"
5
 
879 fschmid 6
#include <qvariant.h>
7
#include <qwidget.h>
8
class QGridLayout;
9
class QVBoxLayout;
10
class QHBoxLayout;
11
class QGroupBox;
1187 fschmid 12
class QButtonGroup;
13
class QRadioButton;
879 fschmid 14
class QLabel;
15
class MSpinBox;
16
class QSpinBox;
17
class QPushButton;
18
class QCheckBox;
19
class QColor;
20
 
2969 craig 21
class SCRIBUS_API TabGuides : public QWidget
879 fschmid 22
{
23
        Q_OBJECT
24
 
25
public:
1790 cbradney 26
        TabGuides( QWidget* parent, struct guidesPrefs *prefsData, struct typoPrefs *prefsData2, int unitIndex);
879 fschmid 27
        ~TabGuides() {};
1833 fschmid 28
        void restoreDefaults(struct guidesPrefs *prefsData, struct typoPrefs *prefsData2, int unitIndex);
879 fschmid 29
 
30
        MSpinBox* majorSpace;
31
        MSpinBox* minorSpace;
32
        MSpinBox* snapDistance;
1834 fschmid 33
        QLabel* checkBaseline;
879 fschmid 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;
1834 fschmid 47
        QGroupBox* baseGridBox;
1187 fschmid 48
        QButtonGroup* buttonGroup1;
49
        QRadioButton* inBackground;
50
        QRadioButton* inForeground;
879 fschmid 51
        QLabel* textLabel4;
52
        QLabel* textLabel5;
53
        QLabel* textLabel6;
54
        QLabel* textLabel7;
55
        QLabel* textLabel8;
56
        QLabel* textLabel82;
1834 fschmid 57
        QLabel* checkMargin;
58
        QLabel* checkGuides;
879 fschmid 59
        QPushButton* majorGridColor;
60
        QPushButton* minorGridColor;
61
        QPushButton* baselineColor;
62
        QPushButton* guideColor;
63
        QPushButton* marginColor;
64
        QSpinBox* grabDistance;
1195 fschmid 65
        QLabel* textLabel6a;
66
        QLabel* textLabel7a;
67
        MSpinBox* baseGrid;
68
        MSpinBox* baseOffset;
69
        QLabel* textLabel8a;
879 fschmid 70
 
71
protected slots:
72
        virtual void changeMajorColor();
73
        virtual void changeMinorColor();
74
        virtual void changeBaselineColor();
75
        virtual void changeGuideColor();
76
        virtual void changeMarginColor();
77
 
78
protected:
79
        QVBoxLayout* tabGuidesLayout;
80
        QGridLayout* checkGridLayout;
81
        QGridLayout* groupBox1Layout;
82
        QGridLayout* groupBox2Layout;
1195 fschmid 83
        QHBoxLayout* commonBoxLayout;
84
        QGridLayout* snapBoxLayout;
85
        QHBoxLayout* guideBoxLayout;
86
        QHBoxLayout* marginBoxLayout;
87
        QGridLayout* baselineBoxLayout;
1834 fschmid 88
        QGridLayout* baseGridBoxLayout;
1195 fschmid 89
        QVBoxLayout* buttonGroup1Layout;
879 fschmid 90
        QHBoxLayout* layout9;
1834 fschmid 91
        QHBoxLayout* layout9a;
1790 cbradney 92
 
93
        double unitRatio;
94
        QString unit;
95
        int precision;
879 fschmid 96
};
97
#endif