1 #ifndef TOURNAMENT_RUNNER_GUI_MAINWINDOW_H
2 #define TOURNAMENT_RUNNER_GUI_MAINWINDOW_H
8 #include <QtWidgets/QMainWindow>
11 #include "tournament_runner/tournament.h"
20 namespace TournamentRunner
28 namespace TournamentRunnerGUI
58 std::shared_ptr<TournamentRunner::Tournament> tournament,
111 QFileDialog* create_file_dialog (QFileDialog::AcceptMode mode);
112 void set_file_dialog_filter (QFileDialog* file_dialog);
113 void set_central_widget ();
115 QDialog& about_dialog_;
116 QStackedWidget* main_widget_{};
118 std::shared_ptr<Ui::MainWindow> ui_{};
119 std::shared_ptr<TournamentRunner::Tournament> tournament_{};
120 std::map<uint8_t, int32_t> round_frame_widget_index;
125 #endif // TOURNAMENT_RUNNER_GUI_MAINWINDOW_H
void on_actionSaveAs_triggered()
Slot to save the profile to a file.
Definition: mainwindow.cpp:53
void on_actionOpen_triggered()
Slot to load a tournament (Menu Open)
Definition: mainwindow.cpp:63
void on_actionNewTournament_triggered()
Slot to open an new tournament dialog.
Definition: mainwindow.cpp:38
void tournament_finished_slot()
Slot to finish the tournament and show the tournament overview.
Definition: mainwindow.cpp:106
void on_actionAbout_triggered()
Slot to open program's about dialog (Menu About)
Definition: mainwindow.cpp:33
void on_actionSave_triggered()
Slot to save to the default profile.
Definition: mainwindow.cpp:48
void start_kata_round_slot(uint8_t round)
Slot to start a kata round.
Definition: mainwindow.cpp:82
void create_tournament_slot(TournamentRunner::TournamentData tournament)
Slot to create a new tournament.
Definition: mainwindow.cpp:76
The MainWindow class.
Definition: mainwindow.h:37
The Persistency Interface.
Definition: persistency_interface.h:15
void next_kata_round_slot(uint8_t round)
Slot to advance to the next kata round overview.
Definition: mainwindow.cpp:100
MainWindow(QDialog &about_dialog, TournamentRunner::IPersistency &persistency_handler, std::shared_ptr< TournamentRunner::Tournament > tournament, QWidget *parent=0)
Default Constructor.
Definition: mainwindow.cpp:19
The TournamentData struct holding all tournament relevant informations.
Definition: tournament.h:27