12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- #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;
- const QString *suffix_IA = new QString("_algo");
- int screenWidth, screenHeight;
- char algo_side;
- bool dNFixed;
- bool expeInit;
- QMenu *fileMenu;
- QAction *startAct;
- QAction *exitAct;
- WorkArea *waLeft;
- WorkArea *waRight;
- QPushButton *leftButton, *rightButton;
- QProgressBar *progressBar;
- QTimer *timer;
-
- QStringList *filenames;
- QStringList *filenames_json;
- int openedImage;
- QString *suffix;
- QStringList *choice;
- void createActions ();
- void createMenus ();
-
- private slots:
- void start ();
- void leftImage();
- void rightImage();
-
- public:
- Experiment ();
- void openNext ();
-
- };
- #endif
|