CDoubleRangeSpinEdit.h
Go to the documentation of this file.
1 #ifndef iwidgets_CDoubleRangeSpinEdit_included
2 #define iwidgets_CDoubleRangeSpinEdit_included
3 
4 
5 // Local includes
6 #include <GeneratedFiles/iwidgets/ui_CDoubleRangeSpinEdit.h>
7 
8 
9 namespace iwidgets
10 {
11 
12 
13 class CDoubleRangeSpinEdit: public QWidget
14 {
15  Q_OBJECT
16 public:
17  explicit CDoubleRangeSpinEdit(QWidget *parent = NULL);
18 
19  // public interface
20  void SetMinRange(double minFrom, double minTo);
21  void SetMaxRange(double maxFrom, double maxTo);
22  void SetRange(double from, double to);
23 
24  void SetDecimals(int count);
25  void SetSingleStep(double step);
26  void SetSuffixText(const QString& suffix);
27  void SetMinLabelText(const QString& text);
28  void SetMaxLabelText(const QString& text);
29 
30  void EnableMaxValue(bool enable = true);
31  void EnableValdation(bool enable = true);
32 
33  void SetValues(double minValue, double maxValue);
34  double GetMinValue() const;
35  double GetMaxValue() const;
36 
37 Q_SIGNALS:
38  void ValuesChanged();
39 
40 protected Q_SLOTS:
41  void OnMinValueChanged(double);
42  void OnMaxValueChanged(double);
43 
44 protected:
45  Ui::CDoubleRangeSpinEdit m_ui;
46 
49 };
50 
51 
52 } // namespace iwidgets
53 
54 
55 #endif // !iwidgets_CDoubleRangeSpinEdit_included
void SetMinRange(double minFrom, double minTo)
Ui::CDoubleRangeSpinEdit m_ui
void SetMaxRange(double maxFrom, double maxTo)
void SetRange(double from, double to)
CDoubleRangeSpinEdit(QWidget *parent=NULL)
void EnableMaxValue(bool enable=true)
void SetValues(double minValue, double maxValue)
void SetMaxLabelText(const QString &text)
#define NULL
Definition: istd.h:64
void SetMinLabelText(const QString &text)
void SetSingleStep(double step)
void SetSuffixText(const QString &suffix)
void EnableValdation(bool enable=true)

© 2007-2017 Witold Gantzke and Kirill Lepskiy