Go to the documentation of this file.
26#include <QtGui/QAbstractSlider>
73class KDEUI_EXPORT
KRuler :
public QAbstractSlider
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&);
302 QString endLabel()
const;
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;
void setPixelPerMark(double rate)
Sets the number of pixels between two base marks.
void setShowEndLabel(bool)
Show/hide number values of the little marks.
void setLittleMarkDistance(int)
Sets the distance between little marks.
void setShowBigMarks(bool)
Shows/hides big marks.
void setShowTinyMarks(bool)
Shows/hides tiny marks.
KRuler(QWidget *parent=0)
The style (or look) of the ruler.
void setLengthFixed(bool fix)
Locks the length of the ruler, i.e.
void setEndLabel(const QString &)
Sets the label this is drawn at the beginning of the visible part of the ruler to label.
void setBigMarkDistance(int)
Sets distance between big marks.
void setTinyMarkDistance(int)
Sets the distance between tiny marks.
void setShowPointer(bool)
Shows/hides the pointer.
void setShowLittleMarks(bool)
Shows/hides little marks.
void setLength(int)
Sets the length of the ruler, i.e.
MetricStyle
The types of units used.
void setShowMediumMarks(bool)
Shows/hides medium marks.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.