12 #include <QHBoxLayout>
13 #include <QPaintEvent>
14 #include <QGridLayout>
16 #include <QMouseEvent>
18 #include <QVBoxLayout>
20 #include "scribusapi.h"
21 #include "sctextstruct.h"
28 class SCRIBUS_API
RulerT :
public QWidget
33 RulerT(QWidget* parent,
int ein, QList<ParagraphStyle::TabRecord> Tabs,
bool ind,
double wid);
35 void setTabs(QList<ParagraphStyle::TabRecord> Tabs,
int dEin);
38 QList<ParagraphStyle::TabRecord> tabValues;
51 void resetOffsetInc();
52 void decreaseOffset();
53 void increaseOffset();
54 void changeTab(
int t);
55 void changeTabChar(QChar t);
56 void moveTab(
double t);
58 void moveFirstLine(
double t);
59 void moveLeftIndent(
double t);
62 void tabMoved(
double);
63 void typeChanged(
int);
64 void fillCharChanged(QChar);
65 void leftIndentMoved(
double);
66 void firstLineMoved(
double);
73 virtual void paintEvent(QPaintEvent *);
74 virtual void mousePressEvent(QMouseEvent *m);
75 virtual void mouseReleaseEvent(QMouseEvent *);
76 virtual void mouseMoveEvent(QMouseEvent *m);
77 virtual void leaveEvent(QEvent*);
89 bool haveFirst =
true,
91 QList<ParagraphStyle::TabRecord> Tabs = QList<ParagraphStyle::TabRecord>(),
95 virtual void setTabs(QList<ParagraphStyle::TabRecord> Tabs,
int dEin);
97 QList<ParagraphStyle::TabRecord> getTabVals();
99 double getFirstLine();
100 double getLeftIndent();
101 double getRightIndent();
109 void lastTabRemoved();
110 void setTabType(
int t);
112 void setTabData(
double t);
114 void setFirstLineData(
double t);
116 void setLeftIndentData(
double t);
117 void setLeftIndent();
118 void setRightIndentData(
double t);
119 void setRightIndent();
120 void setTabFillChar(QChar t);
122 void setCustomFillChar(
const QString &txt);
127 void tabrulerChanged();
132 void leftIndentChanged(
double);
134 void rightIndentChanged(
double);
136 void firstLineChanged(
double);
137 void mouseReleased();
140 QVBoxLayout* tabrulerLayout;
141 QHBoxLayout* layout2;
142 QHBoxLayout* layout1;
143 QHBoxLayout* indentLayout;
144 QVBoxLayout* layout3;
145 QHBoxLayout *layout4;
146 QComboBox* typeCombo;
147 QComboBox* tabFillCombo;
148 QLabel* tabFillComboT;
150 QToolButton* rulerScrollL;
151 QToolButton* rulerScrollR;
152 QLabel* positionLabel;
153 QLabel* firstLineLabel;
154 QLabel* leftIndentLabel;
155 QLabel* rightIndentLabel;
160 QPushButton* clearButton;
161 QPushButton* clearOneButton;
165 void slotMouseReleased();
Definition: tabruler.h:83
Definition: tabruler.h:28
ScrSpinBox is a Qt4 replacement for our old ScrSpinBox using Qt3.
Definition: scrspinbox.h:21