knuminput.cpp
469 m_spin->setGeometry(w, h, m_slider ? m_colw2 : TQMAX(m_colw2, e->size().width() - w), m_sizeSpin.height());
476 m_slider->setGeometry(w, h, e->size().width() - (w + m_colw2 + KDialog::spacingHint()), m_sizeSpin.height());
477 m_spin->setGeometry(w + m_slider->size().width() + KDialog::spacingHint(), h, m_colw2, m_sizeSpin.height());
903 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:1146
virtual void doLayout()
You need to overwrite this method and implement your layout calculations there.
Definition: knuminput.cpp:445
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
bool acceptLocalizedNumbers() const
Definition: knuminput.cpp:1036
void setValidator(const TQValidator *)
Overridden to ignore any setValidator() calls.
Definition: knuminput.cpp:1176
void setRange(int min, int max, int step=1, bool slider=true)
Definition: knuminput.cpp:332
void setSpecialValueText(const TQString &text)
Sets the special value text.
Definition: knuminput.cpp:880
virtual TQSize minimumSizeHint() const
This method returns the minimum size necessary to display the control.
Definition: knuminput.cpp:420
kdbgstream kdWarning(int area=0)
virtual TQValidator::State validate(TQString &input, int &pos) const
Overloaded for internal reasons.
Definition: knumvalidator.cpp:326
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:1123
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:528
virtual void setLabel(const TQString &label, int a=AlignLeft|AlignTop)
Sets the text and alignment of the main description label.
Definition: knuminput.cpp:100
TQSizePolicy sizePolicy() const
Specifies that this widget may stretch horizontally, but is fixed vertically (like TQSpinBox itself).
Definition: knuminput.cpp:184
virtual TQSize sizeHint() const
Returns a size which fits the contents of the control.
Definition: knuminput.cpp:189
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:194
You need to inherit from this class if you want to implement K*NumInput for a different variable type...
Definition: knuminput.h:50
virtual void setLabel(const TQString &label, int a=AlignLeft|AlignTop)
Sets the text and alignment of the main description label.
Definition: knuminput.cpp:888
void valueChanged(double value)
Emitted whenever TQSpinBox::valueChanged( int ) is emitted.
void setSpecialValueText(const TQString &text)
Sets the special value text.
Definition: knuminput.cpp:517
virtual void setAcceptLocalizedNumbers(bool accept)
Sets whether to use and accept localized numbers as returned by TDELocale::formatNumber()
Definition: knuminput.cpp:1042
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 referencePoint.
Definition: knuminput.cpp:736
virtual int mapTextToValue(bool *)
Overloaded the method in QSpinBox to make use of the base given in the constructor.
Definition: knuminput.cpp:246
virtual TQString mapValueToText(int)
Overloaded the method in QSpinBox to make use of the base given in the constructor.
Definition: knuminput.cpp:241
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 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 setPrecision(int precision)
Equivalent to setPrecision( precision, false ); Needed since Qt's moc doesn't ignore trailing paramet...
Definition: knuminput.cpp:1061
void layout(bool deep)
Call this function whenever you change something in the geometry of your KNumInput child.
Definition: knuminput.cpp:127
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 relativeValueChanged(double)
Emitted whenever valueChanged is.
void setPrefix(const TQString &prefix)
Sets the prefix to be displayed to prefix.
Definition: knuminput.cpp:851
void setRelativeValue(double)
Sets the value in units of the referencePoint.
Definition: knuminput.cpp:500
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:1106
void setRange(double min, double max, double step=1, bool slider=true)
Definition: knuminput.cpp:751
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:844
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
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:725
void setBase(int base)
Sets the base in which the numbers in the spin box are represented.
Definition: knuminput.cpp:226