VAPOR3 3.9.4
QRange.h
Go to the documentation of this file.
1#ifndef QRANGE_H
2#define QRANGE_H
3
4#include <QWidget>
5
6namespace Ui {
7class QRange;
8}
9
10// Note:
11// One might think it's a good idea for this QRange class to use a RangeCombo.
12// But it violates the principles of object oriented programming.
13// That's because a RangeCombo requires two Combos to keep them in sync.
14// However, as a private member, Combo is hidden by QSliderEdit, and
15// QRange simply cannot access Combos.
16
17class QRange : public QWidget {
18 Q_OBJECT
19
20public:
21 explicit QRange(QWidget *parent = 0);
23
24 void SetExtents(double min, double max);
25 void GetValue(double &smallVal, double &bigVal);
26 void SetValue(double smallVal, double bigVal);
27 void SetMainLabel(const QString &);
28 void SetDecimals(int dec); // how many digits after the decimal point
29 void SetIntType(bool); // how many digits after the decimal point
30
31signals:
33
34private slots:
35 void _minChanged(double);
36 void _maxChanged(double);
37 void _minChanged(int);
38 void _maxChanged(int);
39
40private:
41 Ui::QRange *_ui;
42};
43
44#endif // QRANGE_H
Definition: QRange.h:17
void SetExtents(double min, double max)
void rangeChanged()
QRange(QWidget *parent=0)
void SetIntType(bool)
void GetValue(double &smallVal, double &bigVal)
void SetMainLabel(const QString &)
void SetDecimals(int dec)
void SetValue(double smallVal, double bigVal)
Definition: QRange.h:6