#include <kis_int_spinbox.h>
Inherits TQWidget.
Public Slots | |
| void | setValue (int) |
| void | spinboxValueChanged (int val) |
| void | sliderValueChanged (int val) |
| void | slotTimeout () |
Signals | |
| void | valueChanged (int value) |
| void | valueChanged (int value, bool withSlider) |
| void | finishedChanging (int previous, int value) |
Public Member Functions | |
| KisIntSpinbox (TQWidget *parent=0, const char *name=0) | |
| KisIntSpinbox (const TQString &label, int value, TQWidget *parent=0, const char *name=0) | |
| virtual | ~KisIntSpinbox () |
| int | value () const |
| void | setRange (int min, int max, int step=1) |
| void | setMinValue (int min) |
| int | minValue () const |
| void | setMaxValue (int max) |
| int | maxValue () const |
| void | setSteps (int minor, int major) |
| void | setLabel (const TQString &label) |
Detailed Description
An input widget for integer numbers, consisting of a spinbox and a dropdown slider.
KisIntSpinbox combines a TQSpinBox and a dropdown TQSlider to make an easy to use control for setting some integer parameter.
Definition at line 74 of file kis_int_spinbox.h.
Constructor & Destructor Documentation
◆ KisIntSpinbox() [1/2]
| KisIntSpinbox::KisIntSpinbox | ( | TQWidget * | parent = 0, |
| const char * | name = 0 |
||
| ) |
Constructs an input control for integer values with base 10 and initial value 0.
- Parameters
-
parent parent TQWidget name internal name for this widget
Definition at line 64 of file kis_int_spinbox.cpp.
◆ KisIntSpinbox() [2/2]
| KisIntSpinbox::KisIntSpinbox | ( | const TQString & | label, |
| int | value, | ||
| TQWidget * | parent = 0, |
||
| const char * | name = 0 |
||
| ) |
Constructor It constructs a TQSpinBox that allows the input of integer numbers in the range of -INT_MAX to +INT_MAX.
To enforce the value being in a range, use setRange().
- Parameters
-
label the tabel (may contain &, and my be empty) value initial value for the control parent parent TQWidget name internal name for this widget
Definition at line 70 of file kis_int_spinbox.cpp.
◆ ~KisIntSpinbox()
|
virtual |
Destructor.
Definition at line 154 of file kis_int_spinbox.cpp.
Member Function Documentation
◆ finishedChanging
|
signal |
Emitted after the slider has been hidden, if the value was changed while it was shown.
- Parameters
-
previous the value before the slider was shown value the value after the slider was hidden
◆ maxValue()
| int KisIntSpinbox::maxValue | ( | ) | const |
- Returns
- the maximum value.
Definition at line 149 of file kis_int_spinbox.cpp.
◆ minValue()
| int KisIntSpinbox::minValue | ( | ) | const |
- Returns
- the minimum value.
Definition at line 139 of file kis_int_spinbox.cpp.
◆ setLabel()
| void KisIntSpinbox::setLabel | ( | const TQString & | label | ) |
Definition at line 175 of file kis_int_spinbox.cpp.
◆ setMaxValue()
| void KisIntSpinbox::setMaxValue | ( | int | max | ) |
Sets the maximum value.
Definition at line 144 of file kis_int_spinbox.cpp.
◆ setMinValue()
| void KisIntSpinbox::setMinValue | ( | int | min | ) |
Sets the minimum value.
Definition at line 134 of file kis_int_spinbox.cpp.
◆ setRange()
| void KisIntSpinbox::setRange | ( | int | min, |
| int | max, | ||
| int | step = 1 |
||
| ) |
- Parameters
-
min minimum value max maximum value step step size for the TQSlider
Definition at line 125 of file kis_int_spinbox.cpp.
◆ setSteps()
| void KisIntSpinbox::setSteps | ( | int | minor, |
| int | major | ||
| ) |
Sets the spacing of tickmarks for the slider.
- Parameters
-
minor Minor tickmark separation. major Major tickmark separation.
◆ setValue
|
slot |
Sets the value of the control.
Definition at line 159 of file kis_int_spinbox.cpp.
◆ sliderValueChanged
|
slot |
Definition at line 118 of file kis_int_spinbox.cpp.
◆ slotTimeout
|
slot |
Definition at line 193 of file kis_int_spinbox.cpp.
◆ spinboxValueChanged
|
slot |
Definition at line 111 of file kis_int_spinbox.cpp.
◆ value()
| int KisIntSpinbox::value | ( | ) | const |
- Returns
- the current value.
Definition at line 170 of file kis_int_spinbox.cpp.
◆ valueChanged [1/2]
|
signal |
Emitted every time the value changes (by calling setValue() or by user interaction).
- Parameters
-
value the new opacity
◆ valueChanged [2/2]
|
signal |
Emitted every time the value changes (by calling setValue() or by user interaction).
- Parameters
-
value the new opacity withSlider whether the value was set by dragging the slider
The documentation for this class was generated from the following files:
