Educational Game Platform
Public Slots | Public Member Functions | Public Attributes | List of all members
menuWidget Class Reference
Inheritance diagram for menuWidget:

Public Slots

void readFromJsonProfile ()
 menuWidget::readFromJsonProfile More...
 
void logout ()
 menuWidget::logout More...
 
void startGameCPU ()
 menuWidget::startGameCPU More...
 
void startGameCPU_2 ()
 menuWidget::startGameCPU_2 More...
 
void startGameMultiplayer ()
 menuWidget::startGameMultiplayer More...
 
void loadGame ()
 menuWidget::loadGame More...
 
void loadGame_2 ()
 menuWidget::loadGame_2 More...
 

Public Member Functions

 menuWidget (QWidget *parent=0)
 

Public Attributes

bool * isGuest
 Bool which denotes whether the logged in user is a guest.
 
QGridLayout * test_layout
 Main Layout.
 
QGridLayout * play_layout
 Tab Layout.
 
QGridLayout * profile_layout
 Tab Layout.
 
QVBoxLayout * history_layout
 Tab Layout.
 
QWidget * play
 Tab Widget.
 
QWidget * profile
 Tab Widget.
 
QWidget * history
 Tab Widget.
 
QTabWidget * tabWidget
 Main Tab Widget.
 
QLabel * Welcome
 Text label.
 
QLabel * Game1Name
 Text label.
 
QLabel * Game2Name
 Text label.
 
QPushButton * Play1
 Button which opens Game1 VS CPU.
 
QPushButton * Play1x
 Button which opens Game1 Multiplayer.
 
QPushButton * Play2
 Button which opens Game2.
 
QPushButton * Play2x
 Button which opens Game2.
 
QLabel * image1
 Image in menu.
 
QLabel * image2
 Image in menu.
 
QPushButton * Load1
 Button which loads Game1 save.
 
QPushButton * Load2
 Button which loads Game2 save.
 
QPushButton * Logout
 Button which returns to logon menu.
 
QTextEdit * history_info
 Text associated to player history.
 
QLabel * usernameDisplay
 Personnal Info display (username)
 
QLabel * ppDisplay
 Personnal Info display (profile picture)
 
QLabel * fnameDisplay
 Personnal Info display (fname)
 
QLabel * lnameDisplay
 Personnal Info display (lname)
 
QLabel * dobDisplay
 Personnal Info display (date of birth)
 
QLabel * genderDisplay
 Personnal Info display (gender)
 

Member Function Documentation

◆ loadGame

void menuWidget::loadGame ( )
slot

menuWidget::loadGame

Check if a loadable game exists and allow the user to load a game from the main menu

◆ loadGame_2

void menuWidget::loadGame_2 ( )
slot

menuWidget::loadGame_2

Load an existing instance of Game2 vs CPU

◆ logout

void menuWidget::logout ( )
slot

menuWidget::logout

Handle clicking the logout button

◆ readFromJsonProfile

void menuWidget::readFromJsonProfile ( )
slot

menuWidget::readFromJsonProfile

Read user data from the userdata.json file

◆ startGameCPU

void menuWidget::startGameCPU ( )
slot

menuWidget::startGameCPU

Start a new instance of Game1 vs CPU

◆ startGameCPU_2

void menuWidget::startGameCPU_2 ( )
slot

menuWidget::startGameCPU_2

Start a new instance of Game2 vs CPU

◆ startGameMultiplayer

void menuWidget::startGameMultiplayer ( )
slot

menuWidget::startGameMultiplayer

Start a new instance of Game1 multiplayer


The documentation for this class was generated from the following files: