MNE-CPP  beta 0.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | List of all members
XMEASLIB::ProgressBar Class Reference

The ProgressBar class is the base class of every ProgressBar Measurement. More...

#include <progressbar.h>

Inheritance diagram for XMEASLIB::ProgressBar:
XMEASLIB::SngChnMeasurement XMEASLIB::Measurement Subject

Public Types

typedef QSharedPointer
< ProgressBar
SPtr
 
typedef QSharedPointer< const
ProgressBar
ConstSPtr
 
- Public Types inherited from XMEASLIB::SngChnMeasurement
typedef QSharedPointer
< SngChnMeasurement
SPtr
 
typedef QSharedPointer< const
SngChnMeasurement
ConstSPtr
 
- Public Types inherited from XMEASLIB::Measurement
typedef QSharedPointer
< Measurement
SPtr
 
typedef QSharedPointer< const
Measurement
ConstSPtr
 
- Public Types inherited from Subject
typedef QSharedPointer< SubjectSPtr
 
typedef QSharedPointer< const
Subject
ConstSPtr
 
typedef QSet< IObserver * > t_Observers
 

Public Member Functions

 ProgressBar ()
 
virtual ~ProgressBar ()
 
void setMinScale (int iMin)
 
int getMinScale () const
 
void setMaxScale (int iMax)
 
int getMaxScale () const
 
void setValue (double v)
 
virtual double getValue () const
 
- Public Member Functions inherited from XMEASLIB::SngChnMeasurement
 SngChnMeasurement ()
 
virtual ~SngChnMeasurement ()
 
virtual bool isSingleChannel () const
 
- Public Member Functions inherited from XMEASLIB::Measurement
 Measurement ()
 
virtual ~Measurement ()
 
void setName (const QString &name)
 
QString getName () const
 
void setVisibility (bool visibility)
 
bool isVisible () const
 
- Public Member Functions inherited from Subject
virtual ~Subject ()
 
void attach (IObserver *pObserver)
 
void detach (IObserver *pObserver)
 
void notify ()
 
t_Observersobservers ()
 
int observerNumDebug ()
 

Additional Inherited Members

- Static Public Attributes inherited from Subject
static bool notifyEnabled = true
 
- Protected Member Functions inherited from Subject
 Subject ()
 

Detailed Description

The ProgressBar class is the base class of every ProgressBar Measurement.

DECLARE CLASS ProgressBar

Definition at line 71 of file progressbar.h.

Member Typedef Documentation

typedef QSharedPointer<const ProgressBar> XMEASLIB::ProgressBar::ConstSPtr

Const shared pointer type for ProgressBar.

Definition at line 75 of file progressbar.h.

typedef QSharedPointer<ProgressBar> XMEASLIB::ProgressBar::SPtr

Shared pointer type for ProgressBar.

Definition at line 74 of file progressbar.h.

Constructor & Destructor Documentation

ProgressBar::ProgressBar ( )

Constructs a ProgressBar.

Definition at line 57 of file progressbar.cpp.

ProgressBar::~ProgressBar ( )
virtual

Destroys the ProgressBar.

Definition at line 70 of file progressbar.cpp.

Member Function Documentation

int XMEASLIB::ProgressBar::getMaxScale ( ) const
inline

Returns the maximal value.

Returns
the maximal value.

Definition at line 171 of file progressbar.h.

int XMEASLIB::ProgressBar::getMinScale ( ) const
inline

Returns the minimal value.

Returns
the minimal value.

Definition at line 155 of file progressbar.h.

double XMEASLIB::ProgressBar::getValue ( ) const
inlinevirtual

Returns the current value. This method is inherited by Measurement.

Returns
the current value of the Numeric measurement.

Implements XMEASLIB::SngChnMeasurement.

Definition at line 179 of file progressbar.h.

void XMEASLIB::ProgressBar::setMaxScale ( int  iMax)
inline

Sets the maximal value. If value to set is bigger, current value is set to maximal value.

Parameters
[in]iMaxmaximal value.

Definition at line 163 of file progressbar.h.

void XMEASLIB::ProgressBar::setMinScale ( int  iMin)
inline

Sets the minimal value. If current value to set is smaller, current value is set to minimal value.

Parameters
[in]iMinminimal value.

Definition at line 147 of file progressbar.h.

void ProgressBar::setValue ( double  v)
virtual

Sets a value and notify() all attached observers. This Method is inherited by Measurement.

Parameters
[in]vthe value which is set to the ProgressBar measurement.

Implements XMEASLIB::SngChnMeasurement.

Definition at line 78 of file progressbar.cpp.


The documentation for this class was generated from the following files: