Educational Game Platform
menuwidget.h
Go to the documentation of this file.
1 #ifndef MENUWIDGET_H
2 #define MENUWIDGET_H
3 
4 #include <QWidget>
5 #include <QtWidgets>
6 
12 class menuWidget : public QWidget
13 {
14  Q_OBJECT
15 public:
16  explicit menuWidget(QWidget *parent = 0);
17 
18 
19  //Guest Bool
20  bool *isGuest;
21  QGridLayout *test_layout;
22  QGridLayout *play_layout;
23  QGridLayout *profile_layout;
24  QVBoxLayout *history_layout;
25  QWidget * play;
26  QWidget * profile;
27  QWidget * history;
28  QTabWidget *tabWidget;
29  QLabel * Welcome;
30  QLabel * Game1Name;
31  QLabel * Game2Name;
32  QPushButton * Play1;
33  QPushButton * Play1x;
34  QPushButton * Play2;
35  QPushButton * Play2x;
36  QLabel * image1;
37  QLabel * image2;
38  QPushButton * Load1;
39  QPushButton * Load2;
40  QPushButton * Logout;
41 
42  QTextEdit *history_info;
43 
44 
45  //Everything related to the profile section
46 
47  QLabel *usernameDisplay;
48  QLabel *ppDisplay;
49  QLabel *fnameDisplay;
50  QLabel *lnameDisplay;
51  QLabel *dobDisplay;
52  QLabel *genderDisplay;
53 
54 
55 signals:
56 
57 public slots:
58 void readFromJsonProfile();
59 void logout();
60 void startGameCPU();
61 void startGameCPU_2();
63 void loadGame();
64 void loadGame_2();
65 
66 
67 
68 };
69 
70 #endif // MENUWIDGET_H
menuWidget::profile
QWidget * profile
Tab Widget.
Definition: menuwidget.h:26
menuWidget::Load2
QPushButton * Load2
Button which loads Game2 save.
Definition: menuwidget.h:39
menuWidget::lnameDisplay
QLabel * lnameDisplay
Personnal Info display (lname)
Definition: menuwidget.h:50
menuWidget::loadGame
void loadGame()
menuWidget::loadGame
Definition: menuwidget.cpp:117
menuWidget::logout
void logout()
menuWidget::logout
Definition: menuwidget.cpp:188
menuWidget::fnameDisplay
QLabel * fnameDisplay
Personnal Info display (fname)
Definition: menuwidget.h:49
menuWidget::Game1Name
QLabel * Game1Name
Text label.
Definition: menuwidget.h:30
menuWidget::genderDisplay
QLabel * genderDisplay
Personnal Info display (gender)
Definition: menuwidget.h:52
menuWidget::image1
QLabel * image1
Image in menu.
Definition: menuwidget.h:36
menuWidget::readFromJsonProfile
void readFromJsonProfile()
menuWidget::readFromJsonProfile
Definition: menuwidget.cpp:201
menuWidget
Definition: menuwidget.h:13
menuWidget::test_layout
QGridLayout * test_layout
Main Layout.
Definition: menuwidget.h:21
menuWidget::history_info
QTextEdit * history_info
Text associated to player history.
Definition: menuwidget.h:42
menuWidget::Welcome
QLabel * Welcome
Text label.
Definition: menuwidget.h:29
menuWidget::Game2Name
QLabel * Game2Name
Text label.
Definition: menuwidget.h:31
menuWidget::play_layout
QGridLayout * play_layout
Tab Layout.
Definition: menuwidget.h:22
menuWidget::history
QWidget * history
Tab Widget.
Definition: menuwidget.h:27
menuWidget::Play2x
QPushButton * Play2x
Button which opens Game2.
Definition: menuwidget.h:35
menuWidget::usernameDisplay
QLabel * usernameDisplay
Personnal Info display (username)
Definition: menuwidget.h:47
menuWidget::Load1
QPushButton * Load1
Button which loads Game1 save.
Definition: menuwidget.h:38
menuWidget::history_layout
QVBoxLayout * history_layout
Tab Layout.
Definition: menuwidget.h:24
menuWidget::image2
QLabel * image2
Image in menu.
Definition: menuwidget.h:37
menuWidget::Logout
QPushButton * Logout
Button which returns to logon menu.
Definition: menuwidget.h:40
menuWidget::startGameMultiplayer
void startGameMultiplayer()
menuWidget::startGameMultiplayer
Definition: menuwidget.cpp:404
menuWidget::isGuest
bool * isGuest
Bool which denotes whether the logged in user is a guest.
Definition: menuwidget.h:20
menuWidget::startGameCPU_2
void startGameCPU_2()
menuWidget::startGameCPU_2
Definition: menuwidget.cpp:359
menuWidget::ppDisplay
QLabel * ppDisplay
Personnal Info display (profile picture)
Definition: menuwidget.h:48
menuWidget::dobDisplay
QLabel * dobDisplay
Personnal Info display (date of birth)
Definition: menuwidget.h:51
menuWidget::Play1x
QPushButton * Play1x
Button which opens Game1 Multiplayer.
Definition: menuwidget.h:33
menuWidget::startGameCPU
void startGameCPU()
menuWidget::startGameCPU
Definition: menuwidget.cpp:336
menuWidget::profile_layout
QGridLayout * profile_layout
Tab Layout.
Definition: menuwidget.h:23
menuWidget::loadGame_2
void loadGame_2()
menuWidget::loadGame_2
Definition: menuwidget.cpp:382
menuWidget::play
QWidget * play
Tab Widget.
Definition: menuwidget.h:25
menuWidget::Play1
QPushButton * Play1
Button which opens Game1 VS CPU.
Definition: menuwidget.h:32
menuWidget::Play2
QPushButton * Play2
Button which opens Game2.
Definition: menuwidget.h:34
menuWidget::tabWidget
QTabWidget * tabWidget
Main Tab Widget.
Definition: menuwidget.h:28