Experiment.hpp 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. const QString *suffix_random = new QString("_random");
  20. const QString *suffix_expert = new QString("_expert");
  21. QString *dataPath;
  22. QString *resultPath;
  23. int screenWidth, screenHeight;
  24. char algo_side;
  25. bool expeStarted;
  26. QMenu *fileMenu;
  27. QMenu *editMenu;
  28. QAction *startAct;
  29. QAction *exitAct;
  30. QAction *undoAct;
  31. WorkArea *waLeft;
  32. WorkArea *waRight;
  33. QPushButton *leftButton, *rightButton;
  34. QProgressBar *progressBar;
  35. QTimer *timer;
  36. QStringList *filenames;
  37. QStringList *filenames_json;
  38. int openedImage;
  39. QString *suffix;
  40. QStringList *choice;
  41. QStringList *side;
  42. void createActions ();
  43. void createMenus ();
  44. private slots:
  45. void start ();
  46. void undo();
  47. void leftImage();
  48. void rightImage();
  49. public:
  50. Experiment ();
  51. void openNext ();
  52. };
  53. #endif