knuminput.h
238 KIntNumInput(KNumInput* below, int value, TQWidget* parent=0, int base = 10, const char *name=0);
496 KDoubleNumInput(KNumInput* below, double value, TQWidget* parent=0, const char* name=0) TDE_DEPRECATED;
841 TQ_PROPERTY( bool acceptLocalizedNumbers READ acceptLocalizedNumbers WRITE setAcceptLocalizedNumbers )
KDoubleNumInput(TQWidget *parent=0, const char *name=0)
Constructs an input control for double values with initial value 0.00.
Definition knuminput.cpp:549
void relativeValueChanged(double)
This is an overloaded member function, provided for convenience.
void setSpecialValueText(const TQString &text)
Sets the special value text.
Definition knuminput.cpp:880
virtual void doLayout()
You need to overwrite this method and implement your layout calculations there.
Definition knuminput.cpp:725
void setPrefix(const TQString &prefix)
Sets the prefix to be displayed to prefix.
Definition knuminput.cpp:851
void setSuffix(const TQString &suffix)
Sets the suffix to be displayed to suffix.
Definition knuminput.cpp:844
void valueChanged(double)
Emitted every time the value changes (by calling setValue() or by user interaction).
KDoubleSpinBox(TQWidget *parent=0, const char *name=0)
Constructs a KDoubleSpinBox with parent parent and default values for range and value (whatever QRang...
Definition knuminput.cpp:1011
void setPrecision(int precision)
Equivalent to setPrecision( precision, false ); Needed since Qt's moc doesn't ignore trailing paramet...
Definition knuminput.cpp:1061
void setRange(double lower, double upper, double step=0.01, int precision=2)
Sets a new range for the spin box values.
Definition knuminput.cpp:1047
void setValidator(const TQValidator *)
Overridden to ignore any setValidator() calls.
Definition knuminput.cpp:1176
virtual void setValue(double value)
Sets the current value to value, subject to the constraints that value is first rounded to the curren...
Definition knuminput.cpp:1106
void setMaxValue(double value)
Sets the upper bound of the range to value, subject to the contraints that value is first rounded to ...
Definition knuminput.cpp:1135
void setMinValue(double value)
Sets the lower bound of the range to value, subject to the contraints that value is first rounded to ...
Definition knuminput.cpp:1123
void setLineStep(double step)
Sets the step size for clicking the up/down buttons to step, subject to the constraints that step is ...
Definition knuminput.cpp:1146
virtual void setAcceptLocalizedNumbers(bool accept)
Sets whether to use and accept localized numbers as returned by TDELocale::formatNumber().
Definition knuminput.cpp:1042
void valueChanged(double value)
Emitted whenever TQSpinBox::valueChanged( int ) is emitted.
bool acceptLocalizedNumbers() const
Definition knuminput.cpp:1036
void setEditFocus(bool mark=true)
sets focus to the edit widget and marks all text in if mark == true
Definition knuminput.cpp:415
void setRelativeValue(double)
Sets the value in units of the referencePoint.
Definition knuminput.cpp:500
void setSpecialValueText(const TQString &text)
Sets the special value text.
Definition knuminput.cpp:517
KIntNumInput(TQWidget *parent=0, const char *name=0)
Constructs an input control for integer values with base 10 and initial value 0.
Definition knuminput.cpp:278
virtual void doLayout()
You need to overwrite this method and implement your layout calculations there.
Definition knuminput.cpp:445
void setRange(int min, int max, int step=1, bool slider=true)
Definition knuminput.cpp:332
void relativeValueChanged(double)
Emitted whenever valueChanged is.
virtual void setLabel(const TQString &label, int a=AlignLeft|AlignTop)
Sets the text and alignment of the main description label.
Definition knuminput.cpp:528
virtual TQSize minimumSizeHint() const
This method returns the minimum size necessary to display the control.
Definition knuminput.cpp:420
void valueChanged(int)
Emitted every time the value changes (by calling setValue() or by user interaction).
void setBase(int base)
Sets the base in which the numbers in the spin box are represented.
Definition knuminput.cpp:226
virtual TQString mapValueToText(int)
Overloaded the method in QSpinBox to make use of the base given in the constructor.
Definition knuminput.cpp:241
virtual int mapTextToValue(bool *)
Overloaded the method in QSpinBox to make use of the base given in the constructor.
Definition knuminput.cpp:246
virtual void doLayout()=0
You need to overwrite this method and implement your layout calculations there.
virtual void setLabel(const TQString &label, int a=AlignLeft|AlignTop)
Sets the text and alignment of the main description label.
Definition knuminput.cpp:100
Trinity API Reference