1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- #ifndef EXPERIMENT_HPP
- #define EXPERIMENT_HPP
- #include <QApplication>
- #include <QMainWindow>
- #include <QAction>
- #include <QMenu>
- #include <QPushButton>
- #include <QProgressBar>
- #include <QTimer>
- #include "WorkArea.hpp"
- class Experiment: public QMainWindow
- {
- Q_OBJECT
- private:
- const int spaceInBetween = 20;
- const int time = 100;
- const int maxProgressBar = 100;
- int screenWidth, screenHeight;
- QMenu *fileMenu;
- QAction *openAct;
- QAction *exitAct;
- WorkArea *waLeft;
- WorkArea *waRight;
- QPushButton *leftButton, *rightButton;
- QProgressBar *progressBar;
- QTimer *timer;
-
- QStringList *filenames;
- QStringList *filenames_json;
- int openedImage;
- QString *suffix_IA = new QString("_algo");
- QString *suffix;
- void createActions ();
- void createMenus ();
-
- private slots:
- void open ();
- void leftImage();
- void rightImage();
- // void progressBarValueChanged(int value);
- // void ticTimer();
-
- public:
- Experiment ();
- void openNext ();
-
- };
- #endif
|