-
Notifications
You must be signed in to change notification settings - Fork 0
/
gamecreation.h
63 lines (57 loc) · 1.23 KB
/
gamecreation.h
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#ifndef GAMECREATION_H
#define GAMECREATION_H
#include <QApplication>
#include <QMainWindow>
#include <QWidget>
#include <QLabel>
#include <QSpinBox>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QGridLayout>
#include <QCheckBox>
#include <QPushButton>
#include <QButtonGroup>
#include <QRadioButton>
#include <QString>
#include <QStringList>
#include <QDir>
#include <QFont>
#include <vector>
#include "table.h"
#include "deck.h"
using namespace std;
class GameCreation : public QMainWindow {
Q_OBJECT
private:
QVBoxLayout *layout;
QGridLayout *deckLayout;
QHBoxLayout *table;
QWidget *window;
QLabel *widthLabel;
QLabel *heightLabel;
QLabel *playerLabel;
QLabel *deckLabel;
QLabel *rulesLabel;
QSpinBox *widthBox;
QSpinBox *heightBox;
QSpinBox *playerBox;
vector<QCheckBox*> deckBox;
vector<QCheckBox*> rulesBox;
QButtonGroup *rulesGroup;
QRadioButton *edition1;
QRadioButton *edition2;
QRadioButton *edition3;
QPushButton *start;
QStringList *xmls;
QStringList *usedDecks;
QStringList *usedRules;
public:
GameCreation(QWidget *parent = 0);
~GameCreation();
private slots:
void startButton();
void boxClicked();
signals:
void startGame(int x, int y, int p, int r, QStringList *decks, QStringList *rules);
};
#endif