-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathui.h
More file actions
32 lines (25 loc) · 716 Bytes
/
ui.h
File metadata and controls
32 lines (25 loc) · 716 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
#ifndef UI_H
#define UI_H
#include <QtWidgets>
#include "gamemechanics.h"
#include "newgamewidget.h"
class UI : public QMainWindow
{
Q_OBJECT
private:
QMenu *gameMenu; //меню "Игра"
QMenu *aboutMenu; //меню "Справка"
QMenuBar *menuBar; //панель меню
NewGameWidget *newGameWidget;//окошко "Новая игра"
GameMechanics *gameMechanics;//основная механика игры.
QLabel *youWinLable; //табличка "Вы выиграли"
friend class NewGameWidget;
public:
UI(QWidget *parent = 0);
~UI();
public slots:
void showAboutBox();
void showCreatorsBox();
void showErrorBox();
};
#endif // UI_H