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