-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnewgamewidget.h
More file actions
37 lines (29 loc) · 878 Bytes
/
newgamewidget.h
File metadata and controls
37 lines (29 loc) · 878 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
#ifndef NEWGAMEWIDGET_H
#define NEWGAMEWIDGET_H
#include <QtWidgets>
#include "gamemechanics.h"
class NewGameWidget : public QWidget
{
Q_OBJECT
private:
QVBoxLayout *mainLayout;//планировка виджетов
QHBoxLayout *pathLayout, *buttonsLayout, *RBLayout;
QPushButton *okButton; //кнопки
QPushButton *cancelButton;
QPushButton *browseButton;
QLineEdit *pathLineEdit; //строка с путём к файлу
QRadioButton *defaultImageRB; //переключатель
QRadioButton *userImageRB;
GameMechanics *gameMechanics; //игровая механика
QSpinBox *spinBox;
QLabel *spinBoxLabel;
private slots:
void newGame();
void browse();
signals:
void wrongImage();
public:
NewGameWidget(GameMechanics *, QWidget *parent = 0);
~NewGameWidget();
};
#endif // NEWGAMEWIDGET_H