-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSettingsWidget.h
70 lines (61 loc) · 1.55 KB
/
SettingsWidget.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
64
65
66
67
68
69
/*
* File: SettingsMenu.h
* Author: brandon
*
* Created on June 29, 2011, 10:51 AM
*/
#ifndef SETTINGSWIDGET_H
#define SETTINGSWIDGET_H
#include <QtGui/QWidget>
#include <QtGui/QLabel>
#include <QtGui/QGridLayout>
#include <QtGui/QFormLayout>
#include <QtGui/QLineEdit>
#include <QtGui/QCheckBox>
#include <QtGui/QGroupBox>
#include <QtGui/QSpacerItem>
#include <QtGui/QPushButton>
#include <QtGui/QCommandLinkButton>
#include <QtGui/QListWidget>
#include "AdvancedOptions.h"
class SettingsWidget : public QWidget {
Q_OBJECT
public:
SettingsWidget(QWidget* parent = 0);
virtual ~SettingsWidget();
//void initialize();
QString getIP();
QString getPort();
bool serverSet();
void createPlayers();
std::string getAdvancedOptionsSerial();
signals:
void startGame();
protected slots:
void addPlayer();
void removePlayer();
void openAdvancedOptions();
void startPressed();
void toggleNetworking(int state);
void toggleServer(int state);
private:
AdvancedOptions* advancedOptions;
QGridLayout* layout;
QCheckBox* networkCheckBox;
QGroupBox* networkBox;
QFormLayout* networkLayout;
QCheckBox* serverCheckBox;
QLabel* ipLabel;
QLineEdit* ipLine;
QLabel* tcpPortLabel;
QLineEdit* tcpPortLine;
QGroupBox* playerBox;
QGridLayout* playerLayout;
QListWidget* playerTable;
QPushButton* addPlayerButton;
QPushButton* removePlayerButton;
QCommandLinkButton* advancedButton;
QPushButton* startButton;
QSpacerItem* spacer;
};
#endif /* SETTINGSWIDGET_H */