Subversion Repositories Scribus

Rev

Rev 5851 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4430 cbradney 1
/*
2
For general Scribus (>=1.3.2) copyright and licensing information please refer
3
to the COPYING file provided with the program. Following this notice may exist
4
a copyright and/or license notice that predates the release of Scribus 1.3.2
5
for which a new license (GPL+exception) is in place.
6
*/
879 fschmid 7
#ifndef TABGUIDES_H
8
#define TABGUIDES_H
9
 
2969 craig 10
#include "scribusapi.h"
11
 
879 fschmid 12
#include <qvariant.h>
13
#include <qwidget.h>
14
class QGridLayout;
15
class QVBoxLayout;
16
class QHBoxLayout;
17
class QGroupBox;
1187 fschmid 18
class QButtonGroup;
19
class QRadioButton;
879 fschmid 20
class QLabel;
21
class MSpinBox;
22
class QSpinBox;
23
class QPushButton;
24
class QCheckBox;
25
class QColor;
26
 
2969 craig 27
class SCRIBUS_API TabGuides : public QWidget
879 fschmid 28
{
29
        Q_OBJECT
30
 
31
public:
1790 cbradney 32
        TabGuides( QWidget* parent, struct guidesPrefs *prefsData, struct typoPrefs *prefsData2, int unitIndex);
879 fschmid 33
        ~TabGuides() {};
1833 fschmid 34
        void restoreDefaults(struct guidesPrefs *prefsData, struct typoPrefs *prefsData2, int unitIndex);
5851 subik 35
        void unitChange(QString unit, int docUnitIndex, int decimals, double invUnitConversion);
879 fschmid 36
 
37
        MSpinBox* majorSpace;
38
        MSpinBox* minorSpace;
7855 fschmid 39
        QSpinBox* snapDistance;
1834 fschmid 40
        QLabel* checkBaseline;
879 fschmid 41
        QColor colorGuides;
42
        QColor colorMargin;
43
        QColor colorMajorGrid;
44
        QColor colorMinorGrid;
45
        QColor colorBaselineGrid;
46
        QGroupBox* checkGrid;
47
        QGroupBox* groupBox1;
48
        QGroupBox* groupBox2;
1195 fschmid 49
        QGroupBox* commonBox;
50
        QGroupBox* snapBox;
51
        QGroupBox* guideBox;
52
        QGroupBox* marginBox;
53
        QGroupBox* baselineBox;
1834 fschmid 54
        QGroupBox* baseGridBox;
1187 fschmid 55
        QButtonGroup* buttonGroup1;
56
        QRadioButton* inBackground;
57
        QRadioButton* inForeground;
879 fschmid 58
        QLabel* textLabel4;
59
        QLabel* textLabel5;
60
        QLabel* textLabel6;
61
        QLabel* textLabel7;
62
        QLabel* textLabel8;
63
        QLabel* textLabel82;
1834 fschmid 64
        QLabel* checkMargin;
65
        QLabel* checkGuides;
879 fschmid 66
        QPushButton* majorGridColor;
67
        QPushButton* minorGridColor;
68
        QPushButton* baselineColor;
69
        QPushButton* guideColor;
70
        QPushButton* marginColor;
71
        QSpinBox* grabDistance;
1195 fschmid 72
        QLabel* textLabel6a;
73
        QLabel* textLabel7a;
74
        MSpinBox* baseGrid;
75
        MSpinBox* baseOffset;
76
        QLabel* textLabel8a;
879 fschmid 77
 
78
protected slots:
79
        virtual void changeMajorColor();
80
        virtual void changeMinorColor();
81
        virtual void changeBaselineColor();
82
        virtual void changeGuideColor();
83
        virtual void changeMarginColor();
84
 
85
protected:
86
        QVBoxLayout* tabGuidesLayout;
87
        QGridLayout* checkGridLayout;
88
        QGridLayout* groupBox1Layout;
89
        QGridLayout* groupBox2Layout;
1195 fschmid 90
        QHBoxLayout* commonBoxLayout;
91
        QGridLayout* snapBoxLayout;
92
        QHBoxLayout* guideBoxLayout;
93
        QHBoxLayout* marginBoxLayout;
94
        QGridLayout* baselineBoxLayout;
1834 fschmid 95
        QGridLayout* baseGridBoxLayout;
1195 fschmid 96
        QVBoxLayout* buttonGroup1Layout;
879 fschmid 97
        QHBoxLayout* layout9;
1834 fschmid 98
        QHBoxLayout* layout9a;
1790 cbradney 99
 
5851 subik 100
//      double unitRatio;
101
//      QString unit;
102
//      int precision;
879 fschmid 103
};
104
#endif