VAPOR3 3.9.4
PSliderEdit.h
Go to the documentation of this file.
1#pragma once
2
3#include "PLineItem.h"
4#include "PDynamicMixin.h"
5
8
13
15 VDoubleSliderEdit *_sliderEdit;
16 double _defaultRangeMin = 0, _defaultRangeMax = 1;
17
18public:
19 PDoubleSliderEdit(const std::string &tag, const std::string &label = "");
21 PDoubleSliderEdit *SetRange(double min, double max);
22 PDoubleSliderEdit *AllowUserRange(bool allowed = true);
24
25protected:
26 void updateGUI() const override;
27
28private:
29 void valueChanged(double v);
30 void valueChangedIntermediate(double v);
31 void minimumChanged(double v);
32 void maximumChanged(double v);
33
34private slots:
35 void _enableDynamicUpdate(bool enabled);
36};
37
42
44 VIntSliderEdit *_sliderEdit;
45 int _defaultRangeMin = 0, _defaultRangeMax = 1;
46
47public:
48 PIntegerSliderEdit(const std::string &tag, const std::string &label = "");
50 PIntegerSliderEdit *SetRange(int min, int max);
51 PIntegerSliderEdit *AllowUserRange(bool allowed = true);
53
54protected:
55 void updateGUI() const override;
56
57private:
58 void valueChanged(int v);
59 void valueChangedIntermediate(int v);
60 void minimumChanged(int v);
61 void maximumChanged(int v);
62
63private slots:
64 void _enableDynamicUpdate(bool enabled);
65};
PDoubleSliderEdit * SetRange(double min, double max)
void updateGUI() const override
PDoubleSliderEdit(const std::string &tag, const std::string &label="")
PDoubleSliderEdit * AllowDynamicUpdate()
PDoubleSliderEdit * AllowUserRange(bool allowed=true)
PIntegerSliderEdit * AllowDynamicUpdate()
PIntegerSliderEdit(const std::string &tag, const std::string &label="")
void updateGUI() const override
PIntegerSliderEdit * SetRange(int min, int max)
PIntegerSliderEdit * AllowUserRange(bool allowed=true)
A wrapper for a VSlider and a VDoubleLineEdit, that provides synchronization between the two widgets,...
A wrapper for a VSlider and a VIntLineEdit, that provides synchronization between the two widgets,...