-
Notifications
You must be signed in to change notification settings - Fork 0
/
TournamentMenu.h
58 lines (39 loc) · 1.12 KB
/
TournamentMenu.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef TOURNAMENTMENU_H
#define TOURNAMENTMENU_H
#include <QWidget>
#include <QTextEdit>
#include <QLineEdit>
#include <QPushButton>
#include <QListWidget>
#include <QMainWindow>
#include <QLabel>
#include "Tournament.h"
namespace Ui {
class TournamentMenu;
}
class TournamentMenu : public QWidget
{
Q_OBJECT
public:
explicit TournamentMenu(std::shared_ptr<Tournament> T, QWidget *parent = nullptr);
TournamentMenu(std::shared_ptr<Tournament> T, QMainWindow *ptrToMainWindow);
~TournamentMenu();
std::shared_ptr<Tournament> passedTournament;
private slots:
void on_registerButton_clicked();
void on_startButton_clicked();
void on_continueButton_clicked();
void on_printPlayersButton_clicked();
void on_exitButton_clicked();
private:
Ui::TournamentMenu *ui;
QTextEdit textEdit;
QLabel label;
QPushButton registerButton;
QPushButton startButton;
QPushButton continueButton;
QPushButton printPlayersButton;
QPushButton exitButton;
QMainWindow *ptrToMainWindow;
};
#endif // TOURNAMENTMENU_H