-
Notifications
You must be signed in to change notification settings - Fork 0
/
MatchMenu.h
58 lines (41 loc) · 1.1 KB
/
MatchMenu.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 MATCHMENU_H
#define MATCHMENU_H
#include <QWidget>
#include <QLabel>
#include <QListWidget>
#include <QPushButton>
#include "Round.h"
#include "Match.h"
namespace Ui {
class MatchMenu;
}
class MatchMenu : public QWidget
{
Q_OBJECT
public:
explicit MatchMenu(std::shared_ptr<Match> m, QWidget *parent = nullptr);
~MatchMenu();
std::shared_ptr<Match> match;
void printGames();
void printPlayersAndScores();
void initializeScoresTable(std::shared_ptr<Game> g);
void printMatchStandings();
private slots:
void on_addGameButton_clicked();
void on_finishGameButton_clicked();
void on_listWidget_itemClicked(QListWidgetItem *item);
void on_exitButton_clicked();
void on_deleteGameButton_clicked();
private:
Ui::MatchMenu *ui;
QPushButton addGameButton;
QPushButton finishGameButton;
QPushButton deleteGameButton;
QPushButton exitButton;
QLabel listOfGamesLabel;
QLabel gameResultsLabel;
enum GameResultsColumns{
NAME, SCORE
};
};
#endif // MATCHMENU_H