-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRoundMenu.h
69 lines (49 loc) · 1.55 KB
/
RoundMenu.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
59
60
61
62
63
64
65
66
67
68
69
#ifndef ROUNDMENU_H
#define ROUNDMENU_H
#include <QWidget>
#include <QListWidget>
#include <QTableWidget>
#include <QPushButton>
#include <QLabel>
#include <QMainWindow>
#include "Tournament.h"
#include "TournamentMenu.h"
namespace Ui {
class RoundMenu;
}
class RoundMenu : public QWidget
{
Q_OBJECT
public:
explicit RoundMenu(std::shared_ptr<Round> R, QWidget *parent = nullptr);
RoundMenu(std::shared_ptr<Round> R, std::shared_ptr<Tournament> T, QMainWindow *pointerToMainWindow);
~RoundMenu();
std::shared_ptr<Tournament> passedTournament;
std::shared_ptr<Round>round;
void printMatches();
void printMatchStandings();
private slots:
void on_addMatchButton_clicked();
void on_selectMatchButton_clicked();
void on_exitButton_clicked();
void on_listWidget_currentItemChanged(QListWidgetItem *current, QListWidgetItem *previous);
void on_listWidget_itemClicked(QListWidgetItem *item);
void on_listWidget_itemDoubleClicked(QListWidgetItem *item);
private:
Ui::RoundMenu *ui;
QMainWindow *pointerToMainWindow;
QListWidget listWidget;
QTableWidget tableWidget;
QLabel listOfMatchesLabel;
QLabel matchStandingslabel;
QLabel roundMenuLabel;
QPushButton addMatchButton;
QPushButton selectMatchButton;
QPushButton exitMatchButton;
std::shared_ptr<Tournament> hostTournament;
std::shared_ptr<TournamentMenu> testMenu;
enum MatchResultsColumn{
NAME, SCORE
};
};
#endif // ROUNDMENU_H