Kata Tournament Runner  0.1.00
 All Classes Namespaces Functions Variables Enumerations Groups Pages
mainframe.h
1 #ifndef TOURNAMENT_RUNNER_GUI_MAINFRAME_H
2 #define TOURNAMENT_RUNNER_GUI_MAINFRAME_H
3 
4 #include <memory>
5 
6 #include <QFrame>
7 
8 #include "tournament_runner/tournament.h"
9 #include "tournament_runner/karateka.h"
10 
11 class QWizardPage;
12 
13 namespace Ui
14 {
15 class MainFrame;
16 }
17 
18 namespace TournamentRunnerGUI
19 {
20 
26 class MainFrame:
27  public QFrame
28 {
29  Q_OBJECT
30 
31 public:
37  explicit MainFrame(TournamentRunner::Tournament& tournament,
38  QWidget* parent = 0);
39 
40 public slots:
46 
52 
53 signals:
58  void start_kata_tournament (uint8_t round);
59 
60 protected:
61  void keyPressEvent(QKeyEvent* event) final;
62 
63 private slots:
67  void on_AddParticipantButton_clicked ();
68 
72  void on_EditTournamentButton_clicked ();
73 
77  void on_StartTournamentButton_clicked ();
78 
79 private:
80  std::shared_ptr<Ui::MainFrame> ui_{};
81  TournamentRunner::Tournament& tournament_;
82 
83 
84 };
85 
86 } // namespace TournamentRunnerGUI
87 
88 #endif // TOURNAMENT_RUNNER_GUI_MAINFRAME_H
void register_participant_slot(TournamentRunner::Karateka participant)
Slot to register the participant to the tournament.
Definition: mainframe.cpp:53
The MainFrame class shows the tournament overview before any round is executed.
Definition: mainframe.h:26
void update_tournament_slot(TournamentRunner::TournamentData tournament_data)
Slot to update the tournament data.
Definition: mainframe.cpp:59
The Tournament class is the starting point for the tournament management.
Definition: tournament.h:110
The Karateka class.
Definition: karateka.h:33
void start_kata_tournament(uint8_t round)
Start tournament signal.
MainFrame(TournamentRunner::Tournament &tournament, QWidget *parent=0)
Default Constructor.
Definition: mainframe.cpp:14
The TournamentData struct holding all tournament relevant informations.
Definition: tournament.h:27