KoUnitWidgets.h
63 KoUnitDoubleBase( KoUnit::Unit unit, unsigned int precision ) : m_unit( unit ), m_precision( precision ) {}
114 KoUnitDoubleSpinBox( TQWidget *parent, double lower, double upper, double step, double value = 0.0,
164 KoUnitDoubleLineEdit( TQWidget *parent, double lower, double upper, double value = 0.0, KoUnit::Unit unit = KoUnit::U_PT, unsigned int precision = 2, const char *name = 0 );
193 KoUnitDoubleComboBox( TQWidget *parent, double lower, double upper, double value = 0.0, KoUnit::Unit unit = KoUnit::U_PT, unsigned int precision = 2, const char *name = 0 );
230 KoUnitDoubleSpinComboBox( 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 );
KComboBox(TQWidget *parent=0, const char *name=0)
KDoubleSpinBox(TQWidget *parent=0, const char *name=0)
int precision() const
KDoubleValidator(TQObject *parent, const char *name=0)
virtual TQValidator::State validate(TQString &input, int &pos) const
KLineEdit(const TQString &string, TQWidget *parent, const char *name=0)
TQString getVisibleText(double value) const
Transform the double in a nice text, using locale symbols.
Definition KoUnitWidgets.cpp:91
double toDouble(const TQString &str, bool *ok) const
Transfrom a string into a double, while taking care of locale specific symbols.
Definition KoUnitWidgets.cpp:98
Combo box for double precision numbers with unit display.
Definition KoUnitWidgets.h:188
void valueChangedPt(double)
emitted like valueChanged in the parent, but this one emits the point value
void setMinMaxStep(double min, double max, double step)
Set minimum, maximum value and the step size (all in points) (by Tymoteusz Majewski,...
Definition KoUnitWidgets.cpp:212
static double fromUserValue(double value, Unit unit)
This method is the one to use to read a value from a dialog.
Definition KoUnit.cpp:120
static double ptToUnit(const double ptValue, const Unit unit)
Convert the value ptValue to a given unit unit Unlike KoUnit::ptToUnit the return value remains unrou...
Definition KoUnit.cpp:91
