Vuo  1.2.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
VuoDoubleSpinBox Class Reference

Description

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.
 

Protected Member Functions

QAbstractSpinBox::StepEnabled stepEnabled () const
 Determines whether the up and/or down arrows are enabled.
 
virtual void hideEvent (QHideEvent *event)
 Don't emit value changed events when hiding event, otherwise Vuo will update and quickly revert the value.
 
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.
 

Constructor & Destructor Documentation

VuoDoubleSpinBox::VuoDoubleSpinBox ( QWidget *  parent = 0)

Creates a spin box where the buttons and line edit have no minimum and maximum.

Member Function Documentation

int VuoDoubleSpinBox::doubleToSlider ( int  sliderMin,
int  sliderMax,
double  valueMin,
double  valueMax,
double  value 
)
static

Convert a double value to an integer range value.

void VuoDoubleSpinBox::focusOutEvent ( QFocusEvent *  event)
protectedvirtual

Don't emit value changed events when focusing out due to window close, otherwise Vuo will update and quickly revert the value.

void VuoDoubleSpinBox::hideEvent ( QHideEvent *  event)
protectedvirtual

Don't emit value changed events when hiding event, otherwise Vuo will update and quickly revert the 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.

double VuoDoubleSpinBox::sliderToDouble ( int  sliderMin,
int  sliderMax,
double  valueMin,
double  valueMax,
int  value 
)
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.

QAbstractSpinBox::StepEnabled VuoDoubleSpinBox::stepEnabled ( ) const
protected

Determines whether the up and/or down arrows are enabled.

QString VuoDoubleSpinBox::textFromValue ( double  value) const

Implementation of the virtual function used by the spin box whenever it needs to display the given value.


The documentation for this class was generated from the following files: