-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainmenu.h
41 lines (33 loc) · 855 Bytes
/
mainmenu.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
#ifndef MAINMENU_H
#define MAINMENU_H
#include <QWidget>
#include <QLabel>
#include <QPlainTextEdit>
#include <QPushButton>
#include <QLineEdit>
#include <cmath>
#include "database.h"
using namespace std;
class MainMenu : public QWidget
{
Q_OBJECT
public:
MainMenu(QWidget *parent = nullptr, string pseudo = "");
~MainMenu();
void displayLeaderBoard();
private:
QLabel *title, *ladderLabel, *createLabel, *loadingLabel;
QPlainTextEdit *ladder;
QPushButton *createLobby, *loadParty, *refreshLadder;
QLineEdit *lobbyName, *partyName;
QPushButton *disconnectButton;
Database db;
private slots:
void startLobby();
void leaveSystem();
void updateRanking();
signals:
void addLobbyToTab(string nameLobby);
void askLeaveSystem();
};
#endif // MAINMENU_H