Experiment.hpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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_algo = 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. QList<QStringList*> *experimentation;
  37. QStringList *filenames;
  38. //QStringList *filenames_json;
  39. int openedImage;
  40. QString *suffix;
  41. QStringList *choice;
  42. QStringList *side;
  43. void createActions ();
  44. void createMenus ();
  45. private slots:
  46. void start ();
  47. void undo();
  48. void leftImage();
  49. void rightImage();
  50. public:
  51. Experiment ();
  52. void openNext ();
  53. };
  54. #endif