184
|
1 |
/*
|
|
2 |
* Hedgewars, a worms-like game
|
|
3 |
* Copyright (c) 2006 Andrey Korotaev <unC0Rr@gmail.com>
|
|
4 |
*
|
|
5 |
* This program is free software; you can redistribute it and/or modify
|
|
6 |
* it under the terms of the GNU General Public License as published by
|
|
7 |
* the Free Software Foundation; version 2 of the License
|
|
8 |
*
|
|
9 |
* This program is distributed in the hope that it will be useful,
|
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12 |
* GNU General Public License for more details.
|
|
13 |
*
|
|
14 |
* You should have received a copy of the GNU General Public License
|
|
15 |
* along with this program; if not, write to the Free Software
|
|
16 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
|
17 |
*/
|
|
18 |
|
|
19 |
#ifndef PAGES_H
|
|
20 |
#define PAGES_H
|
|
21 |
|
|
22 |
#include <QWidget>
|
|
23 |
|
|
24 |
#include "binds.h"
|
|
25 |
|
|
26 |
class GameCFGWidget;
|
|
27 |
class QPushButton;
|
|
28 |
class QGroupBox;
|
|
29 |
class QComboBox;
|
|
30 |
class QLabel;
|
|
31 |
class QToolBox;
|
|
32 |
class QLineEdit;
|
|
33 |
class TeamSelWidget;
|
|
34 |
class DemosList;
|
|
35 |
class QListWidget;
|
|
36 |
class QCheckBox;
|
|
37 |
class SquareLabel;
|
187
|
38 |
class About;
|
231
|
39 |
class QSpinBox;
|
297
|
40 |
class FPSEdit;
|
184
|
41 |
|
|
42 |
class PageMain : public QWidget
|
|
43 |
{
|
|
44 |
Q_OBJECT
|
|
45 |
|
|
46 |
public:
|
|
47 |
PageMain(QWidget* parent = 0);
|
|
48 |
|
|
49 |
QPushButton *BtnSinglePlayer;
|
|
50 |
QPushButton *BtnMultiplayer;
|
|
51 |
QPushButton *BtnNet;
|
|
52 |
QPushButton *BtnSetup;
|
|
53 |
QPushButton *BtnDemos;
|
187
|
54 |
QPushButton *BtnInfo;
|
184
|
55 |
QPushButton *BtnExit;
|
|
56 |
};
|
|
57 |
|
|
58 |
class PageLocalGame : public QWidget
|
|
59 |
{
|
|
60 |
Q_OBJECT
|
|
61 |
|
|
62 |
public:
|
|
63 |
PageLocalGame(QWidget* parent = 0);
|
|
64 |
|
|
65 |
QPushButton *BtnSimpleGame;
|
|
66 |
QPushButton *BtnBack;
|
|
67 |
GameCFGWidget *gameCFG;
|
|
68 |
};
|
|
69 |
|
|
70 |
class PageEditTeam : public QWidget
|
|
71 |
{
|
|
72 |
Q_OBJECT
|
|
73 |
|
|
74 |
public:
|
|
75 |
PageEditTeam(QWidget* parent = 0);
|
|
76 |
QGroupBox *GBoxHedgehogs;
|
|
77 |
QGroupBox *GBoxTeam;
|
|
78 |
QGroupBox *GBoxFort;
|
|
79 |
QComboBox *CBFort;
|
|
80 |
SquareLabel *FortPreview;
|
|
81 |
QGroupBox *GBoxGrave;
|
|
82 |
QComboBox *CBGrave;
|
|
83 |
QLabel *GravePreview;
|
|
84 |
QGroupBox *GBoxBinds;
|
|
85 |
QToolBox *BindsBox;
|
|
86 |
QWidget *page_A;
|
|
87 |
QWidget *page_W;
|
|
88 |
QWidget *page_WP;
|
|
89 |
QWidget *page_O;
|
|
90 |
QPushButton *BtnTeamDiscard;
|
|
91 |
QPushButton *BtnTeamSave;
|
|
92 |
QLineEdit * TeamNameEdit;
|
231
|
93 |
QSpinBox* difficultyBox;
|
184
|
94 |
QLineEdit * HHNameEdit[8];
|
|
95 |
QComboBox * CBBind[BINDS_NUMBER];
|
|
96 |
|
|
97 |
public slots:
|
|
98 |
void CBGrave_activated(const QString & gravename);
|
|
99 |
void CBFort_activated(const QString & gravename);
|
|
100 |
|
|
101 |
private:
|
|
102 |
QLabel * LBind[BINDS_NUMBER];
|
|
103 |
};
|
|
104 |
|
|
105 |
class PageMultiplayer : public QWidget
|
|
106 |
{
|
|
107 |
Q_OBJECT
|
|
108 |
|
|
109 |
public:
|
|
110 |
PageMultiplayer(QWidget* parent = 0);
|
|
111 |
|
|
112 |
QPushButton *BtnBack;
|
|
113 |
GameCFGWidget *gameCFG;
|
|
114 |
TeamSelWidget *teamsSelect;
|
|
115 |
QPushButton *BtnStartMPGame;
|
|
116 |
};
|
|
117 |
|
|
118 |
class PagePlayDemo : public QWidget
|
|
119 |
{
|
|
120 |
Q_OBJECT
|
|
121 |
|
|
122 |
public:
|
|
123 |
PagePlayDemo(QWidget* parent = 0);
|
|
124 |
|
|
125 |
QPushButton *BtnBack;
|
|
126 |
QPushButton *BtnPlayDemo;
|
|
127 |
QListWidget *DemosList;
|
|
128 |
};
|
|
129 |
|
|
130 |
class PageOptions : public QWidget
|
|
131 |
{
|
|
132 |
Q_OBJECT
|
|
133 |
|
|
134 |
public:
|
|
135 |
PageOptions(QWidget* parent = 0);
|
|
136 |
|
|
137 |
QPushButton *BtnBack;
|
|
138 |
QGroupBox *groupBox;
|
|
139 |
QPushButton *BtnNewTeam;
|
|
140 |
QPushButton *BtnEditTeam;
|
|
141 |
QComboBox *CBTeamName;
|
|
142 |
QGroupBox *AGGroupBox;
|
|
143 |
QComboBox *CBResolution;
|
|
144 |
QCheckBox *CBEnableSound;
|
|
145 |
QCheckBox *CBFullscreen;
|
297
|
146 |
QCheckBox *CBShowFPS;
|
|
147 |
FPSEdit *fpsedit;
|
184
|
148 |
QPushButton *BtnSaveOptions;
|
|
149 |
};
|
|
150 |
|
|
151 |
class PageNet : public QWidget
|
|
152 |
{
|
|
153 |
Q_OBJECT
|
|
154 |
|
|
155 |
public:
|
|
156 |
PageNet(QWidget* parent = 0);
|
|
157 |
|
|
158 |
QPushButton *BtnBack;
|
|
159 |
QPushButton *BtnNetConnect;
|
|
160 |
QGroupBox *NNGroupBox;
|
|
161 |
QLabel *labelNN;
|
|
162 |
QLineEdit *editNetNick;
|
|
163 |
QLabel *labelIP;
|
|
164 |
QLineEdit * editIP;
|
|
165 |
};
|
|
166 |
|
|
167 |
class PageNetChat : public QWidget
|
|
168 |
{
|
|
169 |
Q_OBJECT
|
|
170 |
|
|
171 |
public:
|
|
172 |
PageNetChat(QWidget* parent = 0);
|
|
173 |
|
|
174 |
QPushButton *BtnDisconnect;
|
|
175 |
QListWidget *ChannelsList;
|
|
176 |
QPushButton *BtnJoin;
|
|
177 |
QPushButton *BtnCreate;
|
|
178 |
};
|
|
179 |
|
|
180 |
class PageNetGame : public QWidget
|
|
181 |
{
|
|
182 |
Q_OBJECT
|
|
183 |
|
|
184 |
public:
|
|
185 |
PageNetGame(QWidget* parent = 0);
|
|
186 |
|
|
187 |
QPushButton *BtnBack;
|
|
188 |
QPushButton *BtnAddTeam;
|
|
189 |
QPushButton *BtnGo;
|
|
190 |
QListWidget *listNetTeams;
|
|
191 |
};
|
|
192 |
|
187
|
193 |
class PageInfo : public QWidget
|
|
194 |
{
|
|
195 |
Q_OBJECT
|
|
196 |
|
|
197 |
public:
|
|
198 |
PageInfo(QWidget* parent = 0);
|
|
199 |
|
|
200 |
QPushButton *BtnBack;
|
|
201 |
About *about;
|
|
202 |
};
|
|
203 |
|
184
|
204 |
#endif // PAGES_H
|