krita
KisIntSpinbox Class Reference
#include <kis_int_spinbox.h>
Detailed Description
An input widget for integer numbers, consisting of a spinbox and a dropdown slider.KisIntSpinbox combines a QSpinBox and a dropdown QSlider to make an easy to use control for setting some integer parameter.
Definition at line 73 of file kis_int_spinbox.h.
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 (QWidget *parent=0, const char *name=0) | |
| KisIntSpinbox (const QString &label, int value, QWidget *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 QString &label) |
Properties | |
| int | value [] |
| int | minValue [] |
| int | maxValue [] |
Constructor & Destructor Documentation
| KisIntSpinbox::KisIntSpinbox | ( | QWidget * | parent = 0, |
|
| const char * | name = 0 | |||
| ) |
Constructs an input control for integer values with base 10 and initial value 0.
- Parameters:
-
parent parent QWidget name internal name for this widget
Definition at line 64 of file kis_int_spinbox.cc.
| KisIntSpinbox::KisIntSpinbox | ( | const QString & | label, | |
| int | value, | |||
| QWidget * | parent = 0, |
|||
| const char * | name = 0 | |||
| ) |
Constructor It constructs a QSpinBox 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 QWidget name internal name for this widget
Definition at line 70 of file kis_int_spinbox.cc.
| KisIntSpinbox::~KisIntSpinbox | ( | ) | [virtual] |
Member Function Documentation
| int KisIntSpinbox::value | ( | ) | const |
- Returns:
- the current value.
| void KisIntSpinbox::setRange | ( | int | min, | |
| int | max, | |||
| int | step = 1 | |||
| ) |
- Parameters:
-
min minimum value
- Parameters:
-
max maximum value step step size for the QSlider
Definition at line 125 of file kis_int_spinbox.cc.
| void KisIntSpinbox::setMinValue | ( | int | min | ) |
| int KisIntSpinbox::minValue | ( | ) | const |
- Returns:
- the minimum value.
| void KisIntSpinbox::setMaxValue | ( | int | max | ) |
| int KisIntSpinbox::maxValue | ( | ) | const |
- Returns:
- the maximum value.
| void KisIntSpinbox::setSteps | ( | int | minor, | |
| int | major | |||
| ) |
Sets the spacing of tickmarks for the slider.
- Parameters:
-
minor Minor tickmark separation. major Major tickmark separation.
| void KisIntSpinbox::setValue | ( | int | ) | [slot] |
| void KisIntSpinbox::valueChanged | ( | int | value | ) | [signal] |
Emitted every time the value changes (by calling setValue() or by user interaction).
- Parameters:
-
value the new opacity
| void KisIntSpinbox::valueChanged | ( | int | value, | |
| bool | withSlider | |||
| ) | [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
| void KisIntSpinbox::finishedChanging | ( | int | previous, | |
| int | value | |||
| ) | [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
The documentation for this class was generated from the following files:

