Fraxinus
16.5.0-fx-rc9
An IGT application
|
Show progress for a TimedBaseAlgorithm. More...
#include <cxTimedAlgorithmProgressBar.h>
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) |
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.
Definition at line 72 of file cxTimedAlgorithmProgressBar.h.
cx::TimedAlgorithmProgressBar::TimedAlgorithmProgressBar | ( | QWidget * | parent = NULL | ) |
Definition at line 43 of file cxTimedAlgorithmProgressBar.cpp.
|
inlinevirtual |
Definition at line 77 of file cxTimedAlgorithmProgressBar.h.
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.