VAPOR3 3.9.4
QRangeSliderTextCombo.h
Go to the documentation of this file.
1#pragma once
2
3#include "QRangeSlider.h"
4#include <QWidget>
5#include <QFrame>
6
9
13
14class QRangeSliderTextCombo : public QWidget {
15 Q_OBJECT
16
17 QRangeSlider * _slider;
18 VDoubleLineEdit * _leftText;
19 VDoubleLineEdit * _rightText;
20 VDoubleRangeMenu *_menu;
21 float _min, _max;
22 float _left, _right;
23 bool _allowCustomRange = false;
24
25public:
27
28 void SetRange(float min, float max);
29 void SetValue(float left, float right);
30
33
34private:
35 void setTextboxes(float left, float right);
36 float getRange() const;
37
38private slots:
39 void sliderChangedIntermediate(float min, float max);
40 void sliderChanged(float min, float max);
41 void leftTextChanged(double left);
42 void rightTextChanged(double right);
43 void minChanged(double min);
44 void maxChanged(double max);
45 void showContextMenu(const QPoint &pos);
46
47signals:
51 void ValueChanged(float min, float max);
53 void ValueChangedIntermediate(float min, float max);
54
55 void RangeChanged(float min, float max);
57};
void ValueChangedBegin()
User began to change the value.
void SetValue(float left, float right)
void ValueChanged(float min, float max)
User finalized changing the value.
void ValueChangedIntermediate(float min, float max)
User changed the value but they have not finalized it.
void AllowCustomRange()
Allows the user to input values outside of the range and allows them to change the range.
void SetRange(float min, float max)
void RangeChanged(float min, float max)
A wrapper for a QLineEdit that handles user input of type double, and provides Vapor's standard sette...
A menu that allows the user to control the range of double values that can be set by a widget....