46 lines
992 B
C++
46 lines
992 B
C++
#ifndef WINDOWRENNLISTE_H
|
|
#define WINDOWRENNLISTE_H
|
|
|
|
#include <QMainWindow>
|
|
#include "database.h"
|
|
#include <vector>
|
|
#include <string>
|
|
#include <QCloseEvent>
|
|
|
|
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
|