48 lines
847 B
C++
48 lines
847 B
C++
#ifndef TRAINING_H
|
|
#define TRAINING_H
|
|
#include "hardwaresetup.h"
|
|
#include <vector>
|
|
#include <string>
|
|
#include "counter.h"
|
|
#include <QMainWindow>
|
|
#include "database.h"
|
|
|
|
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;
|
|
std::vector<long> VecShell;
|
|
std::vector<long> VecDea;
|
|
long getMinimum(std::vector<long> a);
|
|
bool paused;
|
|
bool finished;
|
|
Counter counterShell;
|
|
Counter counterDea;
|
|
DataBase *db;
|
|
long minTimeOneRound;
|
|
public slots:
|
|
void deaSlot();
|
|
void shellSlot();
|
|
|
|
};
|
|
|
|
#endif // TRAINING_H
|