MNE-CPP  beta 1.0
measurementwidget.h
Go to the documentation of this file.
1 //=============================================================================================================
36 #ifndef MEASUREMENTWIDGET_H
37 #define MEASUREMENTWIDGET_H
38 
39 //*************************************************************************************************************
40 //=============================================================================================================
41 // INCLUDES
42 //=============================================================================================================
43 
44 #include "xdisp_global.h"
45 
46 
47 //*************************************************************************************************************
48 //=============================================================================================================
49 // STL INCLUDES
50 //=============================================================================================================
51 
53 
54 
55 //*************************************************************************************************************
56 //=============================================================================================================
57 // QT INCLUDES
58 //=============================================================================================================
59 
60 #include <QWidget>
61 
62 
63 //*************************************************************************************************************
64 //=============================================================================================================
65 // DEFINE NAMESPACE XDISPLIB
66 //=============================================================================================================
67 
68 namespace XDISPLIB
69 {
70 
71 //*************************************************************************************************************
72 //=============================================================================================================
73 // FORWARD DECLARATIONS
74 //=============================================================================================================
75 
76 //*************************************************************************************************************
77 //=============================================================================================================
78 // ENUMERATIONS
79 //=============================================================================================================
80 
83 //* Tool enumeration.
84 //*/
85 //enum Tool
86 //{
87 // Freeze = 0, /**< Freezing tool. */
88 // Annotation = 1 /**< Annotation tool. */
89 //};
90 
91 
92 //=============================================================================================================
98 class XDISPSHARED_EXPORT MeasurementWidget : public QWidget, public IObserver
99 {
100  Q_OBJECT
101 public:
102 
103  //=========================================================================================================
109  MeasurementWidget(QWidget* parent = 0);
110 
111  //=========================================================================================================
115  virtual ~MeasurementWidget();
116 
117  //=========================================================================================================
124  virtual void update(Subject* pSubject) = 0;
125 
126  //=========================================================================================================
131  virtual void init() = 0;
132 };
133 
134 } // NAMESPACE
135 
136 #endif // MEASUREMENTWIDGET_H
xDisp library export/import macros.
The MeasurementWidget class is the base class of all measurement widgets.
The IObserver interface provides the base class of every observer of the observer design pattern...
Contains declarations of the observer design pattern: Subject class and IObserver interface...
#define XDISPSHARED_EXPORT
Definition: xdisp_global.h:55
The Subject class provides the base class of every subject of the observer design pattern...