VAPOR3 3.9.4
VSliderEdit.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4#include "VHBoxWidget.h"
5
6class VSlider;
8
14class VSliderEdit : public VHBoxWidget {
15 Q_OBJECT
16
17public:
18 VSliderEdit(double min = 0., double max = 1., double value = 0.);
19
20 void SetIntType(bool type);
21
22 void SetValue(double value);
23 void SetRange(double min, double max);
24
25 double GetValue() const;
26
27private:
28 VLineEdit_Deprecated *_lineEdit;
29 VSlider * _slider;
30 double _minValid;
31 double _maxValid;
32 double _value;
33 bool _isIntType;
34
35private slots:
36 void _lineEditChanged(const std::string &value);
37
38 void _sliderChanged(double value);
39 void _sliderChangedIntermediate(double value);
40
41signals:
42 void ValueChanged(double value);
43 void ValueChangedInt(int value);
44
45 void ValueChangedIntermediate(double value);
47};
void SetRange(double min, double max)
void SetIntType(bool type)
void SetValue(double value)
VSliderEdit(double min=0., double max=1., double value=0.)
void ValueChangedInt(int value)
void ValueChangedIntermediate(double value)
void ValueChangedIntIntermediate(int value)
double GetValue() const
void ValueChanged(double value)