knuminput.cpp
470 m_spin->setGeometry(w, h, m_slider ? m_colw2 : TQMAX(m_colw2, e->size().width() - w), m_sizeSpin.height());
477 m_slider->setGeometry(w, h, e->size().width() - (w + m_colw2 + KDialog::spacingHint()), m_sizeSpin.height());
478 m_spin->setGeometry(w + m_slider->size().width() + KDialog::spacingHint(), h, m_colw2, m_sizeSpin.height());
904 KDoubleSpinBoxValidator( double bottom, double top, int decimals, KDoubleSpinBox* sb, const char *name )
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:1147
virtual void doLayout()
You need to overwrite this method and implement your layout calculations there.
Definition: knuminput.cpp:446
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:1048
bool acceptLocalizedNumbers() const
Definition: knuminput.cpp:1037
void setValidator(const TQValidator *)
Overridden to ignore any setValidator() calls.
Definition: knuminput.cpp:1177
void setRange(int min, int max, int step=1, bool slider=true)
Definition: knuminput.cpp:333
void setSpecialValueText(const TQString &text)
Sets the special value text.
Definition: knuminput.cpp:881
virtual TQSize minimumSizeHint() const
This method returns the minimum size necessary to display the control.
Definition: knuminput.cpp:421
kdbgstream kdWarning(int area=0)
virtual TQValidator::State validate(TQString &input, int &pos) const
Overloaded for internal reasons.
Definition: knumvalidator.cpp:325
double readNumber(const TQString &numStr, bool *ok=0) const
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:1124
void valueChanged(int)
Emitted every time the value changes (by calling setValue() or by user interaction).
kndbgstream & endl(kndbgstream &s)
virtual void setLabel(const TQString &label, int a=AlignLeft|AlignTop)
Sets the text and alignment of the main description label.
Definition: knuminput.cpp:529
virtual void setLabel(const TQString &label, int a=AlignLeft|AlignTop)
Sets the text and alignment of the main description label.
Definition: knuminput.cpp:101
TQSizePolicy sizePolicy() const
Specifies that this widget may stretch horizontally, but is fixed vertically (like TQSpinBox itself).
Definition: knuminput.cpp:185
virtual TQSize sizeHint() const
Returns a size which fits the contents of the control.
Definition: knuminput.cpp:190
virtual void doLayout()=0
You need to overwrite this method and implement your layout calculations there.
void valueChanged(double)
Emitted every time the value changes (by calling setValue() or by user interaction).
void setSteps(int minor, int major)
Sets the spacing of tickmarks for the slider.
Definition: knuminput.cpp:195
You need to inherit from this class if you want to implement K*NumInput for a different variable type...
Definition: knuminput.h:49
virtual void setLabel(const TQString &label, int a=AlignLeft|AlignTop)
Sets the text and alignment of the main description label.
Definition: knuminput.cpp:889
void valueChanged(double value)
Emitted whenever TQSpinBox::valueChanged( int ) is emitted.
void setSpecialValueText(const TQString &text)
Sets the special value text.
Definition: knuminput.cpp:518
virtual void setAcceptLocalizedNumbers(bool accept)
Sets whether to use and accept localized numbers as returned by TDELocale::formatNumber()
Definition: knuminput.cpp:1043
void setEditFocus(bool mark=true)
sets focus to the edit widget and marks all text in if mark == true
Definition: knuminput.cpp:416
void setRelativeValue(double)
Sets the value in units of referencePoint.
Definition: knuminput.cpp:737
virtual int mapTextToValue(bool *)
Overloaded the method in QSpinBox to make use of the base given in the constructor.
Definition: knuminput.cpp:247
virtual TQString mapValueToText(int)
Overloaded the method in QSpinBox to make use of the base given in the constructor.
Definition: knuminput.cpp:242
KDoubleNumInput(TQWidget *parent=0, const char *name=0)
Constructs an input control for double values with initial value 0.00.
Definition: knuminput.cpp:550
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:1136
void setPrecision(int precision)
Equivalent to setPrecision( precision, false ); Needed since Qt's moc doesn't ignore trailing paramet...
Definition: knuminput.cpp:1062
void layout(bool deep)
Call this function whenever you change something in the geometry of your KNumInput child.
Definition: knuminput.cpp:128
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:1012
void relativeValueChanged(double)
Emitted whenever valueChanged is.
void setPrefix(const TQString &prefix)
Sets the prefix to be displayed to prefix.
Definition: knuminput.cpp:852
void setRelativeValue(double)
Sets the value in units of the referencePoint.
Definition: knuminput.cpp:501
void relativeValueChanged(double)
This is an overloaded member function, provided for convenience.
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:1107
void setRange(double min, double max, double step=1, bool slider=true)
Definition: knuminput.cpp:752
static int spacingHint()
Return the number of pixels you shall use between widgets inside a dialog according to the KDE standa...
Definition: kdialog.cpp:110
void setSuffix(const TQString &suffix)
Sets the suffix to be displayed to suffix.
Definition: knuminput.cpp:845
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:279
TQString formatNumber(double num, int precision=-1) const
static TDELocale * locale()
virtual void doLayout()
You need to overwrite this method and implement your layout calculations there.
Definition: knuminput.cpp:726
void setBase(int base)
Sets the base in which the numbers in the spin box are represented.
Definition: knuminput.cpp:227
Trinity API Reference