testProgressBar.cpp 821 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /**\example testProgressBar.cpp
  2. * @file testProgressBar.cpp
  3. * @brief FourierLibrary Testsystem
  4. * @author Michael Koch
  5. * @date 05/28/2008
  6. */
  7. // #define DEBUG
  8. // #undef DEBUG
  9. #include "core/basics/Config.h"
  10. #include "core/basics/StringTools.h"
  11. // #include "features/simplefeatures/FourierLibrary.h"
  12. #include "vislearning/baselib/ProgressBar.h"
  13. #include <iostream>
  14. #include <fstream>
  15. using namespace NICE;
  16. using namespace OBJREC;
  17. using namespace std;
  18. /**
  19. ProgressBarQtThread Testsystem
  20. */
  21. //main
  22. int main(int argc, char **argv)
  23. {
  24. std::set_terminate(__gnu_cxx::__verbose_terminate_handler);
  25. Config mainconf(argc, argv);
  26. OBJREC::ProgressBar P;
  27. for (int i = 0; i < 10; i++)
  28. {
  29. P.update(10);
  30. sleep(3);
  31. cerr << i << endl;
  32. if (i > 2)
  33. {
  34. P.show();
  35. }
  36. }
  37. P.hide();
  38. // P.wait();
  39. return 0;
  40. }