-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathui.h
More file actions
37 lines (30 loc) · 746 Bytes
/
ui.h
File metadata and controls
37 lines (30 loc) · 746 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 UI_H
#define UI_H
#include <QtWidgets/QtWidgets>
#include "gamemechanics.h"
class UI : public QWidget
{
Q_OBJECT
public:
UI(QWidget *parent = 0);
~UI();
private:
GameMechanics *gameMechanics;
QPushButton *button;
QVector <QRadioButton*> rbVector;
QVector <QLabel*> lblVector;
QVector <QSpinBox*> sbVector;
QVector <QHBoxLayout*> hblVector;
QButtonGroup *distanceGroup, *elementGroup;
QGroupBox *defenceGB, *damageGB;
QScrollArea *scrollArea;
QVBoxLayout *dataLayout, *damageLayout, *defenceLayout;
QHBoxLayout *mainLayout;
private slots:
void setsbMapSuffix(bool);
void setSBData();
void sendSBData();
void sendRBData();
void newWave();
};
#endif // UI_H