A spin box where the buttons can have a different minimum and maximum than the line edit.
Definition at line 15 of file VuoDoubleSpinBox.hh.
Public Member Functions | |
VuoDoubleSpinBox (QWidget *parent, int precision) | |
Creates a spin box where the buttons and line edit have no minimum and maximum. More... | |
void | stepBy (int steps) |
Steps the spin box value up or down, clamping it to be within the buttons' minimum and maximum. More... | |
QString | textFromValue (double value) const |
Implementation of the virtual function used by the spin box whenever it needs to display the given value . More... | |
void | setButtonMinimum (double buttonMinimum) |
Sets the minimum value that can be entered using the buttons. More... | |
void | setButtonMaximum (double buttonMaximum) |
Sets the maximum value that can be entered using the buttons. More... | |
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. More... | |
static int | doubleToSlider (int sliderMin, int sliderMax, double valueMin, double valueMax, double value) |
Convert a double value to an integer range value. More... | |
Protected Member Functions | |
QAbstractSpinBox::StepEnabled | stepEnabled () const |
Determines whether the up and/or down arrows are enabled. More... | |
virtual void | hideEvent (QHideEvent *event) |
Don't emit value changed events when hiding event, otherwise Vuo will update and quickly revert the value. More... | |
virtual void | focusOutEvent (QFocusEvent *event) |
Don't emit value changed events when focusing out due to window close, otherwise Vuo will update and quickly revert the value. More... | |
VuoDoubleSpinBox::VuoDoubleSpinBox | ( | QWidget * | parent, |
int | precision | ||
) |
Creates a spin box where the buttons and line edit have no minimum and maximum.
precision
argument. Definition at line 17 of file VuoDoubleSpinBox.cc.
|
static |
Convert a double value to an integer range value.
Definition at line 109 of file VuoDoubleSpinBox.cc.
|
protectedvirtual |
Don't emit value changed events when focusing out due to window close, otherwise Vuo will update and quickly revert the value.
Definition at line 120 of file VuoDoubleSpinBox.cc.
|
protectedvirtual |
Don't emit value changed events when hiding event, otherwise Vuo will update and quickly revert the value.
Definition at line 135 of file VuoDoubleSpinBox.cc.
void VuoDoubleSpinBox::setButtonMaximum | ( | double | buttonMaximum | ) |
Sets the maximum value that can be entered using the buttons.
Definition at line 92 of file VuoDoubleSpinBox.cc.
void VuoDoubleSpinBox::setButtonMinimum | ( | double | buttonMinimum | ) |
Sets the minimum value that can be entered using the buttons.
Definition at line 84 of file VuoDoubleSpinBox.cc.
|
static |
Convert an integer range value to a double value.
Definition at line 100 of file VuoDoubleSpinBox.cc.
void VuoDoubleSpinBox::stepBy | ( | int | steps | ) |
Steps the spin box value up or down, clamping it to be within the buttons' minimum and maximum.
Definition at line 45 of file VuoDoubleSpinBox.cc.
|
protected |
Determines whether the up and/or down arrows are enabled.
Definition at line 31 of file VuoDoubleSpinBox.cc.
QString VuoDoubleSpinBox::textFromValue | ( | double | value | ) | const |
Implementation of the virtual function used by the spin box whenever it needs to display the given value
.
Definition at line 71 of file VuoDoubleSpinBox.cc.