-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathwin_menu.h
More file actions
35 lines (26 loc) · 816 Bytes
/
win_menu.h
File metadata and controls
35 lines (26 loc) · 816 Bytes
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
#ifndef WIN_MENU_H
#define WIN_MENU_H
//AUTHORS: Alan Leung, Matt Dumford
#include"mainwindow.h"
#include <QObject>
#include <QGridLayout>
#include <QMovie>
#include <QLabel>
// the win menu is displayed when you win the game. It shows an animated .gif
// and has buttons to go back to the main menu and to quit the app.
class win_menu : public QWidget
{
Q_OBJECT
public:
explicit win_menu(MainWindow *mainWindow, QWidget *parent = 0);
void display(int sw, int sh); //create all sub-widgets
QGridLayout win_layout; //holds all sub-widgets
private:
int screen_height, screen_width;
MainWindow *mainWindow;
signals:
public slots:
void mainMenuClicked(); //goes to main menu
void quitClicked(); //exits the app
};
#endif // WIN_MENU_H