12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- /**
- * @file ProgressBar.cpp
- * @brief Show a Progress-Bar with time estimation - threaded
- * @author Michael Koch
- * @date 25/03/2010
- */
- #ifdef NOVISUAL
- #include <vislearning/nice_nonvis.h>
- #else
- #include <vislearning/nice.h>
- #include <core/imagedisplay/QtFramework.h>
- #endif
- #include <iostream>
- #include <sys/time.h>
- #include "vislearning/baselib/ProgressBar.h"
- using namespace OBJREC;
- using namespace std;
- using namespace NICE;
- ProgressBar::ProgressBar( std::string a ) : ProgressBarQt(a, true)
- {
- start();
- }
- ProgressBar::~ProgressBar()
- {
- terminate();
- wait();
- }
- void ProgressBar::run()
- {
- if(working)
- {
- sleep(1);
- }
- }
|