testProgressBar.cpp 840 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 <unistd.h>
  11. #include "core/basics/StringTools.h"
  12. // #include "features/simplefeatures/FourierLibrary.h"
  13. #include "vislearning/baselib/ProgressBar.h"
  14. #include <iostream>
  15. #include <fstream>
  16. using namespace NICE;
  17. using namespace OBJREC;
  18. using namespace std;
  19. /**
  20. ProgressBarQtThread Testsystem
  21. */
  22. //main
  23. int main(int argc, char **argv)
  24. {
  25. std::set_terminate(__gnu_cxx::__verbose_terminate_handler);
  26. Config mainconf(argc, argv);
  27. OBJREC::ProgressBar P;
  28. for (int i = 0; i < 10; i++)
  29. {
  30. P.update(10);
  31. sleep(3);
  32. cerr << i << endl;
  33. if (i > 2)
  34. {
  35. P.show();
  36. }
  37. }
  38. P.hide();
  39. // P.wait();
  40. return 0;
  41. }