Experiment.hpp 982 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. QMenu *fileMenu;
  22. QAction *openAct;
  23. QAction *exitAct;
  24. WorkArea *waLeft;
  25. WorkArea *waRight;
  26. QPushButton *leftButton, *rightButton;
  27. QProgressBar *progressBar;
  28. QTimer *timer;
  29. QStringList *filenames;
  30. QStringList *filenames_json;
  31. int openedImage;
  32. QString *suffix;
  33. QStringList *choice;
  34. void createActions ();
  35. void createMenus ();
  36. private slots:
  37. void open ();
  38. void leftImage();
  39. void rightImage();
  40. public:
  41. Experiment ();
  42. void openNext ();
  43. };
  44. #endif