Vuo  1.2.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Static Public 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.
 

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::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.

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: