blob: 71a00c55c5b1144862a1e4b947ebc03924681bda (
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
|
/*
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 SMTABRULER_H
#define SMTABRULER_H
#include "tabruler.h"
class SMScrSpinBox;
class SMTabruler : public Tabruler
{
Q_OBJECT
public:
SMTabruler(QWidget* parent,
bool haveFirst = true,
int dEin = 1,
QList<ParagraphStyle::TabRecord> Tabs = QList<ParagraphStyle::TabRecord>(),
double wid = -1);
~SMTabruler() {};
void unitChange(int unitIndex);
void setTabs(QList<ParagraphStyle::TabRecord> Tabs, int unitIndex);
void setTabs(QList<ParagraphStyle::TabRecord> Tabs, int unitIndex, bool isParentValue);
void setParentTabs(QList<ParagraphStyle::TabRecord> Tabs);
void setFirstLineValue(double t);
void setFirstLineValue(double t, bool isParentValue);
void setParentFirstLine(double t);
void setLeftIndentValue(double t);
void setLeftIndentValue(double t, bool isParentValue);
void setParentLeftIndent(double t);
void setRightIndentValue(double t);
void setRightIndentValue(double t, bool isParentValue);
void setParentRightIndent(double t);
bool useParentTabs();
bool useParentFirstLine();
bool useParentLeftIndent();
bool useParentRightIndent();
SMScrSpinBox *first_;
SMScrSpinBox *left_;
SMScrSpinBox *right_;
private:
QList<ParagraphStyle::TabRecord> pTabs_;
int m_unitIndex;
QToolButton *parentButton_;
bool hasParent_;
bool tabsChanged_;
bool useParentTabs_;
bool isSetupRight_;
bool isSetupLeft_;
bool isSetupFirst_;
private slots:
void slotTabsChanged();
void pbClicked();
void firstDataChanged();
void leftDataChanged();
void rightDataChanged();
void firstValueChanged();
void leftValueChanged();
void rightValueChanged();
};
#endif
|