-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgamewindow.h
More file actions
38 lines (28 loc) · 719 Bytes
/
Copy pathgamewindow.h
File metadata and controls
38 lines (28 loc) · 719 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
#ifndef GAMEWINDOW_H
#define GAMEWINDOW_H
#include <QMainWindow>
#include "MyGraphicScene.h"
namespace Ui {
class GameWindow;
}
/*!
* Created by the Qt Creator, it is responsible for the UI
*/
class GameWindow : public QMainWindow
{
Q_OBJECT
public:
// constructor and destructor
explicit GameWindow(QWidget *parent = nullptr);
~GameWindow();
// member functions
void toggleCells(int x, int y, MyGraphicScene * theScene);
void updateGUI();
// variables
MyGraphicScene * scenes[2]; //!< two graphic scenes instantiated from class derived from QGraphicsscene
private slots:
void on_nextRound_Button_clicked();
private:
Ui::GameWindow *ui;
};
#endif // GAMEWINDOW_H