CEDRIC  Revision_backup-2009-02
Public Member Functions | Protected Member Functions | List of all members
GlobalProgressIndicator Class Reference

#include <GlobalProgressIndicator.h>

Inheritance diagram for GlobalProgressIndicator:
ProgressIndicator

Public Member Functions

void centerOn (QWidget *w)
 
void setRegent (QWidget *r)
 
void setTitle (const QString &title)
 
void setLabel (const QString &label)
 
- Public Member Functions inherited from ProgressIndicator
 ProgressIndicator (int min=0, int max=100)
 
virtual ~ProgressIndicator ()
 
bool poll (int progress)
 
void start ()
 
void finish ()
 
void step ()
 
void setRange (int min, int max)
 
virtual void setTitle (const std::string &title)
 
virtual void setLabel (const std::string &label)
 
float percentage () const
 
bool wasCanceled () const
 
int progress () const
 
int minValue () const
 
int maxValue () const
 
std::string title () const
 
std::string & title ()
 
std::string label () const
 
std::string & label ()
 

Protected Member Functions

bool onPoll ()
 
void onStart ()
 
void onFinish ()
 
void onRangeChange (int min, int max)
 

Singleton implementation

static GlobalProgressIndicator & ref ()
 

Additional Inherited Members

- Protected Attributes inherited from ProgressIndicator
int m_progress
 
bool m_canceled
 
int m_minValue
 
int m_maxValue
 
std::string m_title
 
std::string m_label
 

Member Function Documentation

void GlobalProgressIndicator::centerOn ( QWidget *  w)
void GlobalProgressIndicator::onFinish ( )
protectedvirtual

Implements ProgressIndicator.

bool GlobalProgressIndicator::onPoll ( )
protectedvirtual
Returns
Returns false if user canceled, true otherwise

Implements ProgressIndicator.

References ProgressIndicator::label(), and ProgressIndicator::progress().

void GlobalProgressIndicator::onRangeChange ( int  min,
int  max 
)
protectedvirtual

Reimplemented from ProgressIndicator.

void GlobalProgressIndicator::onStart ( )
protectedvirtual
static GlobalProgressIndicator& GlobalProgressIndicator::ref ( )
inlinestatic
void GlobalProgressIndicator::setLabel ( const QString &  label)
void GlobalProgressIndicator::setRegent ( QWidget *  r)
inline

Referenced by MainWindow::MainWindow().

void GlobalProgressIndicator::setTitle ( const QString &  title)