MNE-CPP  beta 0.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
progressbar.cpp
Go to the documentation of this file.
1 //=============================================================================================================
36 //*************************************************************************************************************
37 //=============================================================================================================
38 // INCLUDES
39 //=============================================================================================================
40 
41 #include "progressbar.h"
42 
43 
44 //*************************************************************************************************************
45 //=============================================================================================================
46 // USED NAMESPACES
47 //=============================================================================================================
48 
49 using namespace XMEASLIB;
50 
51 
52 //*************************************************************************************************************
53 //=============================================================================================================
54 // DEFINE MEMBER METHODS
55 //=============================================================================================================
56 
59 , m_iMin(-1)
60 , m_iMax(-1)
61 , m_iValue(0)
62 
63 {
64 
65 }
66 
67 
68 //*************************************************************************************************************
69 
71 {
72 
73 }
74 
75 
76 //*************************************************************************************************************
77 
78 void ProgressBar::setValue(double v)
79 {
80  if(v < m_iMin) v = m_iMin;
81  else if(v > m_iMax) v = m_iMax;
82  m_iValue = (int)v;
83  notify();
84 }
void setValue(double v)
Definition: progressbar.cpp:78
Contains the declaration of the ProgressBar class.
The SngChnMeasurement class is the base class of every SngChnMeasurement.
void notify()