This repository has been archived by the owner on Oct 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
76 lines (48 loc) · 1.59 KB
/
mainwindow.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
70
71
72
73
74
75
76
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "gallery.h"
#include <tabwidgetroundrobin.h>
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
private slots:
void on_addButton_clicked();
void on_editButton_clicked();
void on_removeButton_clicked();
void on_saveButton_clicked();
void on_restoreButton_clicked();
void on_playersButton_0_clicked();
void on_playersButton_1_clicked();
void on_playersButton_2_clicked();
void on_playersButton_3_clicked();
void on_photosButton_0_clicked();
void on_photosButton_1_clicked();
void on_photosButton_2_clicked();
void on_photosButton_3_clicked();
void on_gameScoreButton_0_clicked();
void on_gameScoreButton_1_clicked();
void on_gameScoreButton_2_clicked();
void on_gameScoreButton_3_clicked();
void on_tournamentInfoButton_0_clicked();
void on_tournamentInfoButton_1_clicked();
void on_tournamentInfoButton_2_clicked();
void on_tournamentInfoButton_3_clicked();
void on_editInfoAboutTButton_clicked();
public slots:
void on_AddPlayerDialogAccepted();
void on_EditPlayerDialogAccepted();
private:
Gallery gallery1;
bool wereChangesMade = false; //changes value to true if data modifications took place (player added, edited, removed etc.)
Ui::MainWindow *ui;
void updateTableWidget(); //updates the table widget with players
QTabWidget *roundrobin;
};
#endif // MAINWINDOW_H