Cavoke  1.1.0
A Platform for creating and hosting multiplayer turn-based board games
Loading...
Searching...
No Matches
startview.cpp
1#include "startview.h"
2#include "cavokeclientcontroller.h"
3#include "ui_startview.h"
4
5StartView::StartView(QWidget *parent)
6 : QMainWindow(parent), ui(new Ui::StartView) {
7 ui->setupUi(this);
8 ui->cavokeTestWindowButton->hide();
9}
10
11StartView::~StartView() {
12 delete ui;
13}
14
15void StartView::on_joinGameButton_clicked() {
16 this->close();
17 emit shownJoinGameView();
18}
19
20void StartView::on_createGameButton_clicked() {
21 this->close();
22 emit shownCreateGameView();
23}
24
25void StartView::on_gamesListButton_clicked() {
26 this->close();
27 emit shownGamesListView();
28}
29
30void StartView::on_cavokeTestWindowButton_clicked() {
31 this->close();
32 emit shownTestWindowView();
33}
34
35void StartView::on_statisticsButton_clicked() {
36 if (!AuthDialog::verifyAuth(this)) {
37 return;
38 }
39 this->close();
40 emit shownStatisticsView();
41}
42
43void StartView::on_settingsButton_clicked() {
44 this->close();
45 emit shownSettingsView();
46}
47
48void StartView::on_exitButton_clicked() {
49 emit clickedExitButton();
50}
static bool verifyAuth(QWidget *parent=nullptr)
Definition: authdialog.cpp:28