Experiment.hpp 1017 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #ifndef EXPERIMENT_HPP
  2. #define EXPERIMENT_HPP
  3. #include <QApplication>
  4. #include <QMainWindow>
  5. #include <QAction>
  6. #include <QMenu>
  7. #include <QPushButton>
  8. #include <QProgressBar>
  9. #include <QTimer>
  10. #include "WorkArea.hpp"
  11. class Experiment: public QMainWindow
  12. {
  13. Q_OBJECT
  14. private:
  15. const int spaceInBetween = 20;
  16. const int time = 100;
  17. const int maxProgressBar = 100;
  18. const QString *suffix_IA = new QString("_algo");
  19. int screenWidth, screenHeight;
  20. char algo_side;
  21. bool dNFixed;
  22. bool expeInit;
  23. QMenu *fileMenu;
  24. QAction *startAct;
  25. QAction *exitAct;
  26. WorkArea *waLeft;
  27. WorkArea *waRight;
  28. QPushButton *leftButton, *rightButton;
  29. QProgressBar *progressBar;
  30. QTimer *timer;
  31. QStringList *filenames;
  32. QStringList *filenames_json;
  33. int openedImage;
  34. QString *suffix;
  35. QStringList *choice;
  36. void createActions ();
  37. void createMenus ();
  38. private slots:
  39. void start ();
  40. void leftImage();
  41. void rightImage();
  42. public:
  43. Experiment ();
  44. void openNext ();
  45. };
  46. #endif