47 lines
1022 B
C++
47 lines
1022 B
C++
#ifndef WINDOWRENNLISTE_H
|
|
#define WINDOWRENNLISTE_H
|
|
|
|
#include "database.h"
|
|
#include <QCloseEvent>
|
|
#include <QMainWindow>
|
|
#include <memory>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
class WindowRace;
|
|
using std::vector;
|
|
|
|
namespace Ui {
|
|
class WindowRennliste;
|
|
}
|
|
|
|
class WindowRennliste : public QMainWindow {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
void schliessen();
|
|
explicit WindowRennliste(DataBase * db, QWidget * parent = 0);
|
|
~WindowRennliste();
|
|
void setWindowRace(WindowRace * instance);
|
|
vector<QString> getDriverAndCarSettings();
|
|
vector<QString> getDriverAndCarId();
|
|
void sendIds();
|
|
void setBesttime(int shell, int dea);
|
|
|
|
private:
|
|
bool windowClose;
|
|
void closeEvent(QCloseEvent * event);
|
|
void setSelection(int row);
|
|
WindowRace * instanceWindowRace;
|
|
unsigned int selectedRow;
|
|
vector<vector<QString>> tableData;
|
|
DataBase * db;
|
|
Ui::WindowRennliste * ui;
|
|
|
|
public slots:
|
|
void listClick(const QModelIndex & index);
|
|
void changeSelection();
|
|
};
|
|
|
|
#endif // WINDOWRENNLISTE_H
|