MNE-CPP  beta 0.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
progressbar.h
Go to the documentation of this file.
1 //=============================================================================================================
36 #ifndef PROGRESSBAR_H
37 #define PROGRESSBAR_H
38 
39 
40 //*************************************************************************************************************
41 //=============================================================================================================
42 // INCLUDES
43 //=============================================================================================================
44 
45 #include "../xmeas_global.h"
46 #include "sngchnmeasurement.h"
47 
48 
49 //*************************************************************************************************************
50 //=============================================================================================================
51 // Qt INCLUDES
52 //=============================================================================================================
53 
54 #include <QSharedPointer>
55 
56 
57 //*************************************************************************************************************
58 //=============================================================================================================
59 // DEFINE NAMESPACE XMEASLIB
60 //=============================================================================================================
61 
62 namespace XMEASLIB
63 {
64 
65 //=============================================================================================================
72 {
73 public:
74  typedef QSharedPointer<ProgressBar> SPtr;
75  typedef QSharedPointer<const ProgressBar> ConstSPtr;
77  //=========================================================================================================
81  ProgressBar();
82  //=========================================================================================================
86  virtual ~ProgressBar();
87 
88  //=========================================================================================================
94  inline void setMinScale(int iMin);
95  //=========================================================================================================
101  inline int getMinScale() const;
102 
103  //=========================================================================================================
109  inline void setMaxScale(int iMax);
110  //=========================================================================================================
116  inline int getMaxScale() const;
117 
118  //=========================================================================================================
125  void setValue(double v);
126  //=========================================================================================================
133  virtual double getValue() const;
134 
135 private:
136  int m_iMin;
137  int m_iMax;
138  int m_iValue;
139 };
140 
141 
142 //*************************************************************************************************************
143 //=============================================================================================================
144 // INLINE DEFINITIONS
145 //=============================================================================================================
146 
147 inline void ProgressBar::setMinScale(int iMin)
148 {
149  m_iMin = iMin;
150 }
151 
152 
153 //*************************************************************************************************************
154 
155 inline int ProgressBar::getMinScale() const
156 {
157  return m_iMin;
158 }
159 
160 
161 //*************************************************************************************************************
162 
163 inline void ProgressBar::setMaxScale(int iMax)
164 {
165  m_iMax = iMax;
166 }
167 
168 
169 //*************************************************************************************************************
170 
171 inline int ProgressBar::getMaxScale() const
172 {
173  return m_iMax;
174 }
175 
176 
177 //*************************************************************************************************************
178 
179 inline double ProgressBar::getValue() const
180 {
181  return m_iValue;
182 }
183 
184 } // NAMESPACE
185 
186 #endif // PROGRESSBAR_H
int getMinScale() const
Definition: progressbar.h:155
QSharedPointer< const ProgressBar > ConstSPtr
Definition: progressbar.h:75
virtual double getValue() const
Definition: progressbar.h:179
#define XMEASSHARED_EXPORT
Definition: xmeas_global.h:54
void setMinScale(int iMin)
Definition: progressbar.h:147
QSharedPointer< ProgressBar > SPtr
Definition: progressbar.h:74
void setMaxScale(int iMax)
Definition: progressbar.h:163
The ProgressBar class is the base class of every ProgressBar Measurement.
Definition: progressbar.h:71
The SngChnMeasurement class is the base class of every SngChnMeasurement.
Contains the declaration of the SngChnMeasurement base class.
int getMaxScale() const
Definition: progressbar.h:171