-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgridsizescreen.h
More file actions
40 lines (32 loc) · 1005 Bytes
/
gridsizescreen.h
File metadata and controls
40 lines (32 loc) · 1005 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
36
37
38
39
40
#ifndef GRIDSIZESCREEN_H
#define GRIDSIZESCREEN_H
//AUTHORS: Matt Dumford
#include "playscreen.h"
#include "mainwindow.h"
#include <QWidget>
#include <QString>
// The grid size screen is used to get a size for the singleplayer play grid
// it uses 8 qpushbuttons with the respective grid size
class GridSizeScreen : public QWidget
{
Q_OBJECT
public:
explicit GridSizeScreen(QString path, MainWindow *mainWindow, QWidget *parent = 0);
explicit GridSizeScreen(MainWindow *mainWindow, QWidget *parent = 0);
void display(int screenWidth, int screenHeight);
private:
QString path; //file path for the image chosen to be passed
int screenWidth, screenHeight;
MainWindow *mainWindow;
//each slot corresponds with the button for the grid size displayed on it
private slots:
void b3Pushed();
void b4Pushed();
void b5Pushed();
void b6Pushed();
void b7Pushed();
void b8Pushed();
void b9Pushed();
void b10Pushed();
};
#endif // GRIDSIZESCREEN_H