-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAddToRoundDialog.h
More file actions
62 lines (47 loc) · 1.64 KB
/
AddToRoundDialog.h
File metadata and controls
62 lines (47 loc) · 1.64 KB
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
#ifndef ADDTOROUNDDIALOG_H
#define ADDTOROUNDDIALOG_H
#include "Tournament.h"
#include <QDialog>
#include <QListWidget>
#include <QTextEdit>
#include <QLabel>
#include <QPushButton>
#include <QDialogButtonBox>
namespace Ui {
class AddToRoundDialog;
}
class AddToRoundDialog : public QDialog
{
Q_OBJECT
public:
explicit AddToRoundDialog(std::shared_ptr<Tournament> T, int x, QWidget *parent = nullptr);
//int x helps us select a specific round from the Tournament listOfRounds vector.
~AddToRoundDialog();
std::shared_ptr<Tournament> passedTournament;
std::shared_ptr<Round> round;
void printRoundPlayers();
private slots:
void on_addToRoundButton_clicked();
void on_tournamentRosterListWidget_itemDoubleClicked(QListWidgetItem *item);
void on_tournamentRosterListWidget_itemClicked(QListWidgetItem *item);
void on_buttonBox_accepted();
void on_removeFromRoundButton_clicked();
void on_roundRosterListWidget_itemDoubleClicked(QListWidgetItem *item);
void on_roundRosterListWidget_itemClicked(QListWidgetItem *item);
void on_addAllPlayersButton_clicked();
void on_removeAllPlayersButton_clicked();
private:
Ui::AddToRoundDialog *ui;
QListWidget tournamentRosterListWidget;
QListWidget roundRosterListWidget;
QTextEdit textEdit;
QLabel menuLabel;
QLabel tournamentRosterLabel;
QLabel roundRosterLabel;
QPushButton addToRoundButton;
QPushButton removeFromRoundButton;
QPushButton addAllPlayersButton;
QPushButton removeAllPlayersButton;
QDialogButtonBox buttonBox;
};
#endif // ADDTOROUNDDIALOG_H