Fraxinus  16.5.0-fx-rc7
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::TimedAlgorithmProgressBar Class Reference

Show progress for a TimedBaseAlgorithm. More...

#include <cxTimedAlgorithmProgressBar.h>

Inheritance diagram for cx::TimedAlgorithmProgressBar:

Public Member Functions

 TimedAlgorithmProgressBar (QWidget *parent=NULL)
 
virtual ~TimedAlgorithmProgressBar ()
 
void setShowTextLabel (bool on)
 
void attach (TimedAlgorithmPtr algorithm)
 
void attach (std::set< cx::TimedAlgorithmPtr > threads)
 
void detach (TimedAlgorithmPtr algorithm)
 
void detach (std::set< cx::TimedAlgorithmPtr > threads)
 

Detailed Description

Show progress for a TimedBaseAlgorithm.

The widget contains a QProgressBar and a QLabel, which displays info from a TimedBaseAlgorithm. It listens to the start()/stop() methods of TimedBaseAlgorithm, it shows/hides and display progress info.

Use the attach method to connect the TimedBaseAlgorithm to the widget. Use detach to clean up.

Multiple algorithms can be added. In this case, the assumption is that they are called in sequence. If not, the last started algo will overwrite the others.

Date
Jan 27, 2012
Author
christiana

Definition at line 72 of file cxTimedAlgorithmProgressBar.h.

Constructor & Destructor Documentation

cx::TimedAlgorithmProgressBar::TimedAlgorithmProgressBar ( QWidget *  parent = NULL)

Definition at line 43 of file cxTimedAlgorithmProgressBar.cpp.

virtual cx::TimedAlgorithmProgressBar::~TimedAlgorithmProgressBar ( )
inlinevirtual

Definition at line 77 of file cxTimedAlgorithmProgressBar.h.

Member Function Documentation

void cx::TimedAlgorithmProgressBar::attach ( TimedAlgorithmPtr  algorithm)

Definition at line 77 of file cxTimedAlgorithmProgressBar.cpp.

void cx::TimedAlgorithmProgressBar::attach ( std::set< cx::TimedAlgorithmPtr threads)

Definition at line 63 of file cxTimedAlgorithmProgressBar.cpp.

void cx::TimedAlgorithmProgressBar::detach ( TimedAlgorithmPtr  algorithm)

Definition at line 92 of file cxTimedAlgorithmProgressBar.cpp.

void cx::TimedAlgorithmProgressBar::detach ( std::set< cx::TimedAlgorithmPtr threads)

Definition at line 70 of file cxTimedAlgorithmProgressBar.cpp.

void cx::TimedAlgorithmProgressBar::setShowTextLabel ( bool  on)

Definition at line 118 of file cxTimedAlgorithmProgressBar.cpp.


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