MNE-CPP  beta 0.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
numericwidget.h
Go to the documentation of this file.
1 //=============================================================================================================
36 #ifndef NUMERICWIDGET_H
37 #define NUMERICWIDGET_H
38 
39 
40 //*************************************************************************************************************
41 //=============================================================================================================
42 // INCLUDES
43 //=============================================================================================================
44 
45 #include "xdisp_global.h"
46 #include "measurementwidget.h"
47 #include "ui_numericwidget.h"
48 
49 
50 //*************************************************************************************************************
51 //=============================================================================================================
52 // FORWARD DECLARATIONS
53 //=============================================================================================================
54 
55 namespace XMEASLIB
56 {
57 class Numeric;
58 }
59 
60 
61 //*************************************************************************************************************
62 //=============================================================================================================
63 // DEFINE NAMESPACE DISPLIB
64 //=============================================================================================================
65 
66 namespace XDISPLIB
67 {
68 
69 //*************************************************************************************************************
70 //=============================================================================================================
71 // USED NAMESPACES
72 //=============================================================================================================
73 
74 using namespace XMEASLIB;
75 
76 
77 //=============================================================================================================
84 {
85  Q_OBJECT
86 
87 public:
88 
89  //=========================================================================================================
96  NumericWidget(QSharedPointer<Numeric> pNumeric, QWidget* parent = 0);
97 
98  //=========================================================================================================
102  ~NumericWidget();
103 
104  //=========================================================================================================
111  virtual void update(Subject* pSubject);
112 
113  //=========================================================================================================
117  virtual void init();
118 
119 private:
120 
122  QSharedPointer<Numeric> m_pNumeric;
123  QString m_qString_Unit;
124 };
125 
126 } // NAMESPACE
127 
128 #endif // NUMERICWIDGET_H
xDisp library export/import macros.
The NumericWidget class provides a digital display.
Definition: numericwidget.h:83
The MeasurementWidget class is the base class of all measurement widgets.
Declaration of the MeasurementWidget Class.
#define XDISPSHARED_EXPORT
Definition: xdisp_global.h:55
The Subject class provides the base class of every subject of the observer design pattern...