Vuo
1.2.3
|
A spin box where the buttons can have a different minimum and maximum than the line edit.
Public Member Functions | |
VuoDoubleSpinBox (QWidget *parent=0) | |
Creates a spin box where the buttons and line edit have no minimum and maximum. | |
void | stepBy (int steps) |
Steps the spin box value up or down, clamping it to be within the buttons' minimum and maximum. | |
QString | textFromValue (double value) const |
Implementation of the virtual function used by the spin box whenever it needs to display the given value . | |
void | setButtonMinimum (double buttonMinimum) |
Sets the minimum value that can be entered using the buttons. | |
void | setButtonMaximum (double buttonMaximum) |
Sets the maximum value that can be entered using the buttons. | |
Static Public Member Functions | |
static double | sliderToDouble (int sliderMin, int sliderMax, double valueMin, double valueMax, int value) |
Convert an integer range value to a double value. | |
static int | doubleToSlider (int sliderMin, int sliderMax, double valueMin, double valueMax, double value) |
Convert a double value to an integer range value. | |
VuoDoubleSpinBox::VuoDoubleSpinBox | ( | QWidget * | parent = 0 | ) |
Creates a spin box where the buttons and line edit have no minimum and maximum.
|
static |
Convert a double value to an integer range value.
void VuoDoubleSpinBox::setButtonMaximum | ( | double | buttonMaximum | ) |
Sets the maximum value that can be entered using the buttons.
void VuoDoubleSpinBox::setButtonMinimum | ( | double | buttonMinimum | ) |
Sets the minimum value that can be entered using the buttons.
|
static |
Convert an integer range value to a double value.
void VuoDoubleSpinBox::stepBy | ( | int | steps | ) |
Steps the spin box value up or down, clamping it to be within the buttons' minimum and maximum.
QString VuoDoubleSpinBox::textFromValue | ( | double | value | ) | const |
Implementation of the virtual function used by the spin box whenever it needs to display the given value
.