12 #ifndef CXTIMEDALGORITHMPROGRESSBAR_H_ 13 #define CXTIMEDALGORITHMPROGRESSBAR_H_ 15 #include "cxResourceWidgetsExport.h" 17 #include <boost/shared_ptr.hpp> 26 class DisplayTimerWidget;
57 void setShowTextLabel(
bool on);
59 void attach(TimedAlgorithmPtr algorithm);
60 void attach(std::set<cx::TimedAlgorithmPtr> threads);
62 void detach(TimedAlgorithmPtr algorithm);
63 void detach(std::set<cx::TimedAlgorithmPtr> threads);
67 void algorithmStartedSlot(
int maxSteps);
68 void algorithmFinishedSlot();
69 void productChangedSlot();
73 std::set<TimedAlgorithmPtr> mAlgorithm;
74 QProgressBar* mProgressBar;
76 std::set<TimedBaseAlgorithm*> mStartedAlgos;
Base class for algorithms that wants to time their execution.
Show progress for a TimedBaseAlgorithm.
boost::shared_ptr< class TimedBaseAlgorithm > TimedAlgorithmPtr
virtual ~TimedAlgorithmProgressBar()
Namespace for all CustusX production code.