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 );
virtual TQValidator::State validate(TQString &input, int &pos) const
Combo box for double precision numbers with unit display.
Definition KoUnitWidgets.h:188
Line edit for double precision numbers with unit display.
Definition KoUnitWidgets.h:159
Spin box for double precision numbers with unit display.
Definition KoUnitWidgets.h:108
void valueChangedPt(double)
emitted like valueChanged in the parent, but this one emits the point value
Combo box (with spin control) for double precision numbers with unit display.
Definition KoUnitWidgets.h:225
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
