KDEUI
Go to the documentation of this file.
26 #include <QtGui/QAbstractSlider>
73 class KDEUI_EXPORT
KRuler :
public QAbstractSlider
76 Q_PROPERTY(
bool showTinyMarks READ showTinyMarks WRITE setShowTinyMarks )
77 Q_PROPERTY(
bool showLittleMarks READ showLittleMarks WRITE setShowLittleMarks )
78 Q_PROPERTY(
bool showMediumMarks READ showMediumMarks WRITE setShowMediumMarks )
79 Q_PROPERTY(
bool showBigMarks READ showBigMarks WRITE setShowBigMarks )
80 Q_PROPERTY(
bool showPointer READ showPointer WRITE setShowPointer )
81 Q_PROPERTY(
bool showEndLabel READ showEndLabel WRITE setShowEndLabel )
82 Q_PROPERTY(
int tinyMarkDistance READ tinyMarkDistance WRITE setTinyMarkDistance )
83 Q_PROPERTY(
int littleMarkDistance READ littleMarkDistance WRITE setLittleMarkDistance )
84 Q_PROPERTY(
int mediumMarkDistance READ mediumMarkDistance WRITE setBigMarkDistance )
85 Q_PROPERTY(
int bigMarkDistance READ bigMarkDistance WRITE setBigMarkDistance )
86 Q_PROPERTY(
double pixelPerMark READ pixelPerMark WRITE setPixelPerMark )
87 Q_PROPERTY(
bool lengthFixed READ lengthFixed WRITE setLengthFixed )
88 Q_PROPERTY(
QString endLabel READ endLabel WRITE setEndLabel )
90 Q_PROPERTY(
int length READ length WRITE setLength )
91 Q_PROPERTY(
int offset READ offset )
92 Q_PROPERTY(
int endOffset READ endOffset )
131 explicit KRuler(Qt::Orientation orient,
QWidget *parent=0, Qt::WindowFlags f=0);
147 KRuler(Qt::Orientation orient,
int widgetWidth,
QWidget *parent=0,
148 Qt::WindowFlags f=0);
162 #ifndef KDE_NO_DEPRECATED
163 KDE_DEPRECATED
void setMinValue(
int);
169 #ifndef KDE_NO_DEPRECATED
170 KDE_DEPRECATED
int minValue()
const;
179 #ifndef KDE_NO_DEPRECATED
180 KDE_DEPRECATED
void setMaxValue(
int);
186 #ifndef KDE_NO_DEPRECATED
187 KDE_DEPRECATED
int maxValue()
const;
196 void setTinyMarkDistance(
int);
200 int tinyMarkDistance()
const;
207 void setLittleMarkDistance(
int);
212 int littleMarkDistance()
const;
220 void setMediumMarkDistance(
int);
221 int mediumMarkDistance()
const;
228 void setBigMarkDistance(
int);
232 int bigMarkDistance()
const;
237 void setShowTinyMarks(
bool);
238 bool showTinyMarks()
const;
242 void setShowLittleMarks(
bool);
243 bool showLittleMarks()
const;
247 void setShowMediumMarks(
bool);
248 bool showMediumMarks()
const;
252 void setShowBigMarks(
bool);
253 bool showBigMarks()
const;
257 void setShowEndMarks(
bool);
258 bool showEndMarks()
const;
262 void setShowPointer(
bool);
263 bool showPointer()
const;
266 void setFrameStyle(
int);
294 void setShowEndLabel(
bool);
295 bool showEndLabel()
const;
301 void setEndLabel(
const QString&);
329 void setPixelPerMark(
double rate);
334 double pixelPerMark()
const;
354 void setLengthFixed(
bool fix);
355 bool lengthFixed()
const;
368 void slideUp(
int count = 1);
381 void slideDown(
int count = 1);
391 void setOffset(
int offset);
398 int endOffset()
const;
408 void slotNewValue(
int);
416 void slotNewOffset(
int);
418 void slotEndOffset(
int);
421 virtual void paintEvent(QPaintEvent *);
424 void init(Qt::Orientation orientation);
428 KRulerPrivate *
const d;
MetricStyle
The types of units used.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:15 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.