Experiment.hpp 1.2 KB

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