MNE-CPP  beta 0.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
textwidget.h
Go to the documentation of this file.
1 //=============================================================================================================
36 #ifndef TEXTWIDGET_H
37 #define TEXTWIDGET_H
38 
39 
40 //*************************************************************************************************************
41 //=============================================================================================================
42 // INCLUDES
43 //=============================================================================================================
44 
45 #include "xdisp_global.h"
46 #include "measurementwidget.h"
47 #include "ui_textwidget.h"
48 
49 
50 //*************************************************************************************************************
51 //=============================================================================================================
52 // FORWARD DECLARATIONS
53 //=============================================================================================================
54 
55 namespace XMEASLIB
56 {
57 class Text;
58 }
59 
60 
61 //*************************************************************************************************************
62 //=============================================================================================================
63 // DEFINE NAMESPACE XDISPLIB
64 //=============================================================================================================
65 
66 namespace XDISPLIB
67 {
68 
69 
70 //*************************************************************************************************************
71 //=============================================================================================================
72 // USED NAMESPACES
73 //=============================================================================================================
74 
75 using namespace XMEASLIB;
76 
77 
78 //=============================================================================================================
85 {
86  Q_OBJECT
87 
88 public:
89 
90  //=========================================================================================================
97  TextWidget(QSharedPointer<Text> pText, QWidget *parent = 0);
98 
99  //=========================================================================================================
103  ~TextWidget();
104 
105  //=========================================================================================================
112  virtual void update(Subject* pSubject);
113 
114  //=========================================================================================================
118  virtual void init();
119 
120 private:
122  QSharedPointer<Text> m_pText;
123 };
124 
125 } // NAMESPACE
126 
127 #endif // TEXTWIDGET_H
xDisp library export/import macros.
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...
The TextWidget class provides a digital text widget.
Definition: textwidget.h:84