#include <KoUnitWidgets.h>
Signals | |
| void | valueChangedPt (double) |
| Signals inherited from KDoubleSpinBox | |
| void | valueChanged (double value) |
Public Member Functions | |
| KoUnitDoubleSpinBox (TQWidget *parent=0L, const char *name=0L) | |
| KoUnitDoubleSpinBox (TQWidget *parent, double lower, double upper, double step, double value=0.0, KoUnit::Unit unit=KoUnit::U_PT, unsigned int precision=2, const char *name=0) | |
| virtual void | changeValue (double) |
| virtual void | setUnit (KoUnit::Unit=KoUnit::U_PT) |
| double | value (void) const |
| void | setMinValue (double min) |
| void | setMaxValue (double max) |
| void | setLineStep (double step) |
| void | setLineStepPt (double step) |
| void | setMinMaxStep (double min, double max, double step) |
| Public Member Functions inherited from KDoubleSpinBox | |
| KDoubleSpinBox (TQWidget *parent=0, const char *name=0) | |
| KDoubleSpinBox (double lower, double upper, double step, double value, int precision=2, TQWidget *parent=0, const char *name=0) | |
| bool | acceptLocalizedNumbers () const |
| virtual void | setAcceptLocalizedNumbers (bool accept) |
| void | setRange (double lower, double upper, double step=0.01, int precision=2) |
| int | precision () const |
| void | setPrecision (int precision) |
| virtual void | setPrecision (int precision, bool force) |
| double | value () const |
| double | minValue () const |
| void | setMinValue (double value) |
| double | maxValue () const |
| void | setMaxValue (double value) |
| double | lineStep () const |
| void | setLineStep (double step) |
| void | setValidator (const TQValidator *) |
| Public Member Functions inherited from KoUnitDoubleBase | |
| KoUnitDoubleBase (KoUnit::Unit unit, unsigned int precision) | |
| void | setValueInUnit (double value, KoUnit::Unit unit) |
| void | setPrecision (unsigned int precision) |
Additional Inherited Members | |
| Public Slots inherited from KDoubleSpinBox | |
| virtual void | setValue (double value) |
| Protected Member Functions inherited from KoUnitDoubleBase | |
| TQString | getVisibleText (double value) const |
| double | toDouble (const TQString &str, bool *ok) const |
| Protected Attributes inherited from KoUnitDoubleBase | |
| KoUnitDoubleValidator * | m_validator |
| KoUnit::Unit | m_unit |
| unsigned int | m_precision |
Detailed Description
Spin box for double precision numbers with unit display.
- Since
- 1.4 (change of behavior)
Definition at line 107 of file KoUnitWidgets.h.
Constructor & Destructor Documentation
◆ KoUnitDoubleSpinBox() [1/2]
| KoUnitDoubleSpinBox::KoUnitDoubleSpinBox | ( | TQWidget * | parent = 0L, |
| const char * | name = 0L ) |
Definition at line 120 of file KoUnitWidgets.cpp.
◆ KoUnitDoubleSpinBox() [2/2]
| KoUnitDoubleSpinBox::KoUnitDoubleSpinBox | ( | TQWidget * | parent, |
| double | lower, | ||
| double | upper, | ||
| double | step, | ||
| double | value = 0.0, | ||
| KoUnit::Unit | unit = KoUnit::U_PT, | ||
| unsigned int | precision = 2, | ||
| const char * | name = 0 ) |
Definition at line 136 of file KoUnitWidgets.cpp.
Member Function Documentation
◆ changeValue()
|
virtual |
Implements KoUnitDoubleBase.
Definition at line 159 of file KoUnitWidgets.cpp.
◆ setLineStep()
| void KoUnitDoubleSpinBox::setLineStep | ( | double | step | ) |
Set step size in the current unit.
Definition at line 200 of file KoUnitWidgets.cpp.
◆ setLineStepPt()
| void KoUnitDoubleSpinBox::setLineStepPt | ( | double | step | ) |
Set step size in points.
Definition at line 206 of file KoUnitWidgets.cpp.
◆ setMaxValue()
| void KoUnitDoubleSpinBox::setMaxValue | ( | double | max | ) |
Set maximum value in points.
Definition at line 194 of file KoUnitWidgets.cpp.
◆ setMinMaxStep()
| void KoUnitDoubleSpinBox::setMinMaxStep | ( | double | min, |
| double | max, | ||
| double | step ) |
Set minimum, maximum value and the step size (all in points) (by Tymoteusz Majewski, maju7.nosp@m.@o2..nosp@m.pl).
Definition at line 212 of file KoUnitWidgets.cpp.
◆ setMinValue()
| void KoUnitDoubleSpinBox::setMinValue | ( | double | min | ) |
Set minimum value in points.
Definition at line 188 of file KoUnitWidgets.cpp.
◆ setUnit()
|
virtual |
Implements KoUnitDoubleBase.
Definition at line 172 of file KoUnitWidgets.cpp.
◆ value()
| double KoUnitDoubleSpinBox::value | ( | void | ) | const |
- Returns
- the current value, converted in points
Definition at line 183 of file KoUnitWidgets.cpp.
◆ valueChangedPt
|
signal |
emitted like valueChanged in the parent, but this one emits the point value
The documentation for this class was generated from the following files:
