Vuo
2.3.2
type
inputEditor
widget
VuoDoubleSpinBox.hh
Go to the documentation of this file.
1
10
#pragma once
11
15
class
VuoDoubleSpinBox
:
public
QDoubleSpinBox
16
{
17
public
:
18
VuoDoubleSpinBox
(QWidget *parent,
int
precision);
19
void
stepBy
(
int
steps);
20
QString
textFromValue
(
double
value)
const
;
21
void
unsetLineEditBounds
();
22
void
setButtonMinimum
(
double
buttonMinimum);
23
void
setButtonMaximum
(
double
buttonMaximum);
24
25
static
double
sliderToDouble
(
int
sliderMin,
int
sliderMax,
double
valueMin,
double
valueMax,
int
value);
26
static
int
doubleToSlider
(
int
sliderMin,
int
sliderMax,
double
valueMin,
double
valueMax,
double
value);
27
28
protected
:
29
QAbstractSpinBox::StepEnabled
stepEnabled
()
const
;
30
virtual
void
hideEvent
(QHideEvent * event);
31
virtual
void
focusOutEvent
(QFocusEvent * event);
32
33
private
:
34
double
buttonMinimum;
35
double
buttonMaximum;
36
int
precision;
37
};
Generated on Sat Jun 19 2021 10:17:48 for Vuo by
1.9.1