#ifndef TRAINING_H #define TRAINING_H #include "counter.h" #include "database.h" #include "hardwaresetup.h" #include "timemodel.h" #include #include #include namespace Ui { class Training; } class Training : public QMainWindow { Q_OBJECT public: explicit Training(QWidget * parent, DataBase * db); ~Training(); private: void prepareNextRace(); Ui::Training * ui; void closeEvent(QCloseEvent * event); bool started; HardwareSetup * Hardware; bool firstTimeShell; bool firstTimeDea; QVector> VecShell; QVector> VecDea; long getMinimum(std::vector a); bool paused; bool finished; Counter counterShell; Counter counterDea; DataBase * db; long minTimeOneRound; int minimumTime; int theoreticalMinShell; int deltaShell; int theoreticalMinDea; int deltaDea; // timeModel TimeModel * timeModelDea; TimeModel * timeModelShell; QVector minSecTime; public slots: void ResetShell(); void ResetDea(); void Reset(); void deaSlot(int time, int sector); void shellSlot(int time, int sector); }; #endif // TRAINING_H