MNE-CPP  beta 0.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
progressbarwidget.h
Go to the documentation of this file.
1 //=============================================================================================================
36 #ifndef PROGRESSBARWIDGET_H
37 #define PROGRESSBARWIDGET_H
38 
39 
40 //*************************************************************************************************************
41 //=============================================================================================================
42 // INCLUDES
43 //=============================================================================================================
44 
45 #include "xdisp_global.h"
46 #include "measurementwidget.h"
47 #include "ui_progressbarwidget.h"
48 
49 
50 //*************************************************************************************************************
51 //=============================================================================================================
52 // QT INCLUDES
53 //=============================================================================================================
54 
55 #include <QBrush>
56 #include <QFont>
57 
58 
59 //*************************************************************************************************************
60 //=============================================================================================================
61 // FORWARD DECLARATIONS
62 //=============================================================================================================
63 
64 namespace XMEASLIB
65 {
66 class ProgressBar;
67 }
68 
69 
70 //*************************************************************************************************************
71 //=============================================================================================================
72 // DEFINE NAMESPACE XDISPLIB
73 //=============================================================================================================
74 
75 namespace XDISPLIB
76 {
77 
78 
79 //*************************************************************************************************************
80 //=============================================================================================================
81 // USED NAMESPACES
82 //=============================================================================================================
83 
84 using namespace XMEASLIB;
85 
86 
87 //*************************************************************************************************************
88 //=============================================================================================================
89 // FORWARD DECLARATIONS
90 //=============================================================================================================
91 
92 
93 //=============================================================================================================
100 {
101  Q_OBJECT
102 
103 public:
104 
105  //=========================================================================================================
112  ProgressBarWidget(QSharedPointer<ProgressBar> pProgressBar, QWidget *parent = 0);
113 
114  //=========================================================================================================
119 
120  //=========================================================================================================
127  virtual void update(Subject* pSubject);
128 
129  //=========================================================================================================
133  virtual void init();
134 
135  //=========================================================================================================
141  virtual void paintEvent(QPaintEvent* event);
142 
143 private:
145  QSharedPointer<ProgressBar> m_pProgressBar;
146  double m_dSegmentSize;
147  unsigned short m_usXPos;
148  QBrush m_Brush;
149  QFont m_Font;
150  QString m_Text;
151 };
152 
153 } // NAMESPACE
154 
155 #endif // PROGRESSBARWIDGET_H
xDisp library export/import macros.
The MeasurementWidget class is the base class of all measurement widgets.
The ProgressBarWidget class provides a progress bar display.
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...