Experiment.hpp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. QAction *startAct;
  27. QAction *exitAct;
  28. WorkArea *waLeft;
  29. WorkArea *waRight;
  30. QPushButton *leftButton, *rightButton;
  31. QProgressBar *progressBar;
  32. QTimer *timer;
  33. QStringList *filenames;
  34. QStringList *filenames_json;
  35. int openedImage;
  36. QString *suffix;
  37. QStringList *choice;
  38. void createActions ();
  39. void createMenus ();
  40. private slots:
  41. void start ();
  42. void leftImage();
  43. void rightImage();
  44. public:
  45. Experiment ();
  46. void openNext ();
  47. };
  48. #endif