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