CNumericValueWidget.h
Go to the documentation of this file.
1 #ifndef iqtmeas_CNumericValueWidget_included
2 #define iqtmeas_CNumericValueWidget_included
3 
4 
5 // Qt includes
6 #include<QtCore/QtGlobal>
7 #if QT_VERSION >= 0x050000
8 #include <QtWidgets/QWidget>
9 #else
10 #include <QtGui/QWidget>
11 #endif
12 
13 // ACF includes
14 #include "imath/IUnitInfo.h"
15 
16 #include "GeneratedFiles/iqtmeas/ui_CNumericValueWidget.h"
17 
18 
19 namespace iqtmeas
20 {
21 
22 
24  public QWidget,
25  protected Ui::CNumericValueWidget
26 {
27  Q_OBJECT
28 
29 public:
30  CNumericValueWidget(QWidget* parentPtr = NULL, bool showSlilder = true, bool showButtons = true, int inputPolicy = 0);
31 
32  void SetUnitInfo(const QString& description, const imath::IUnitInfo& unitInfo);
33 
34  double GetValue() const;
35  void SetValue(double value);
36 
37 Q_SIGNALS:
41  void ValueChanged();
42 
43 protected Q_SLOTS:
44  void on_ValueSB_valueChanged(double value);
45  void on_ValueSlider_valueChanged(int value);
46  void on_MinButton_clicked();
47  void on_MaxButton_clicked();
48 
49 private:
50  bool m_ignoreEvents;
51  double m_unitMultiplicationFactor;
52  double m_unitPrecisionFactor;
53 };
54 
55 
56 } // namespace iqtmeas
57 
58 
59 #endif // !iqtmeas_CNumericValueWidget_included
60 
61 
62 
void on_ValueSB_valueChanged(double value)
void on_ValueSlider_valueChanged(int value)
void SetUnitInfo(const QString &description, const imath::IUnitInfo &unitInfo)
#define NULL
CNumericValueWidget(QWidget *parentPtr=NULL, bool showSlilder=true, bool showButtons=true, int inputPolicy=0)
void SetValue(double value)
void ValueChanged()
Will be emitted when user changed value.

© 2007-2011 Witold Gantzke and Kirill Lepskiy