Kata Tournament Runner  0.1.00
 All Classes Namespaces Functions Variables Enumerations Groups Pages
kataround_overview_frame.h
1 #ifndef TOURNAMENT_RUNNER_GUI_KATAROUND_OVERVIEW_FRAME_H
2 #define TOURNAMENT_RUNNER_GUI_KATAROUND_OVERVIEW_FRAME_H
3 
4 #include <memory>
5 #include <vector>
6 
7 #include <QFrame>
8 
9 class QWizardPage;
10 
11 namespace Ui
12 {
13 class KataRoundOverviewFrame;
14 }
15 
16 namespace TournamentRunner
17 {
18 class Tournament;
19 class Karateka;
20 }
21 
22 namespace TournamentRunnerGUI
23 {
24 
31 {
32  first_round = 0,
33  second_round,
34  final_round
35 };
36 
43  public QFrame
44 {
45  Q_OBJECT
46 
47 public:
55  uint8_t round,
56  QWidget* parent = 0);
57 public slots:
62  void wizard_finished_slot (int result);
63 
64 signals:
69  void next_kata_tournament (uint8_t round);
73  void tournament_finished ();
74 
75 private slots:
76  void on_StartTournamentButton_clicked ();
77  void on_NextRoundButton_clicked ();
78  void on_FinishButton_clicked ();
79 
80 private:
81  const std::map<uint8_t, std::string> titel_map = {
82  {first_round, "First Round"},
83  {second_round, "Second Round"},
84  {final_round, "Final Round"}
85  };
86 
87  QWizardPage* create_start_tournament_intro_page ();
88  QWizardPage* create_participant_kata_run_page (TournamentRunner::Karateka& participant);
89 
90  std::shared_ptr<Ui::KataRoundOverviewFrame> ui_{};
91  TournamentRunner::Tournament& tournament_;
92  std::vector<size_t> startlist_;
93  uint8_t round_{};
94 };
95 
96 } // namespace TournamentRunnerGUI
97 
98 #endif // TOURNAMENT_RUNNER_GUI_KATAROUND_OVERVIEW_FRAME_H
The Tournament class is the starting point for the tournament management.
Definition: tournament.h:110
The Karateka class.
Definition: karateka.h:33
void next_kata_tournament(uint8_t round)
Start tournament signal.
void tournament_finished()
Tournament finished (Last round finsihed).
The KataRoundOverviewFrame class shows an overview for a specific kata round.
Definition: kataround_overview_frame.h:42
KataRoundOverviewFrame(TournamentRunner::Tournament &tournament, uint8_t round, QWidget *parent=0)
Default Constructor.
Definition: kataround_overview_frame.cpp:22
Kataround
The Kataround enum.
Definition: kataround_overview_frame.h:30
void wizard_finished_slot(int result)
Slot when the Kata Round Wizard finishes.
Definition: kataround_overview_frame.cpp:62