author | unc0rr |
Thu, 05 Oct 2006 16:33:18 +0000 | |
changeset 183 | 57c2ef19f719 |
parent 133 | c79cb5e5b24a |
child 184 | f97a7a3dc8f6 |
permissions | -rw-r--r-- |
87 | 1 |
/* |
2 |
* Hedgewars, a worms-like game |
|
3 |
* Copyright (c) 2006 Andrey Korotaev <unC0Rr@gmail.com> |
|
4 |
* |
|
183 | 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 |
|
87 | 8 |
* |
183 | 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. |
|
87 | 13 |
* |
183 | 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 |
|
87 | 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; |
|
93 | 37 |
class SquareLabel; |
87 | 38 |
|
39 |
class PageMain : public QWidget |
|
40 |
{ |
|
41 |
Q_OBJECT |
|
42 |
||
43 |
public: |
|
44 |
PageMain(QWidget* parent = 0); |
|
45 |
||
46 |
QPushButton *BtnSinglePlayer; |
|
47 |
QPushButton *BtnMultiplayer; |
|
48 |
QPushButton *BtnNet; |
|
49 |
QPushButton *BtnSetup; |
|
50 |
QPushButton *BtnDemos; |
|
51 |
QPushButton *BtnExit; |
|
52 |
}; |
|
53 |
||
54 |
class PageLocalGame : public QWidget |
|
55 |
{ |
|
56 |
Q_OBJECT |
|
57 |
||
58 |
public: |
|
59 |
PageLocalGame(QWidget* parent = 0); |
|
60 |
||
61 |
QPushButton *BtnSimpleGame; |
|
62 |
QPushButton *BtnBack; |
|
63 |
GameCFGWidget *gameCFG; |
|
64 |
}; |
|
65 |
||
66 |
class PageEditTeam : public QWidget |
|
67 |
{ |
|
68 |
Q_OBJECT |
|
69 |
||
70 |
public: |
|
71 |
PageEditTeam(QWidget* parent = 0); |
|
72 |
QGroupBox *GBoxHedgehogs; |
|
73 |
QGroupBox *GBoxTeam; |
|
74 |
QGroupBox *GBoxFort; |
|
75 |
QComboBox *CBFort; |
|
93 | 76 |
SquareLabel *FortPreview; |
87 | 77 |
QGroupBox *GBoxGrave; |
78 |
QComboBox *CBGrave; |
|
79 |
QLabel *GravePreview; |
|
80 |
QGroupBox *GBoxBinds; |
|
81 |
QToolBox *BindsBox; |
|
82 |
QWidget *page_A; |
|
83 |
QWidget *page_W; |
|
84 |
QWidget *page_WP; |
|
85 |
QWidget *page_O; |
|
86 |
QPushButton *BtnTeamDiscard; |
|
87 |
QPushButton *BtnTeamSave; |
|
88 |
QLineEdit * TeamNameEdit; |
|
89 |
QLineEdit * HHNameEdit[8]; |
|
90 |
QComboBox * CBBind[BINDS_NUMBER]; |
|
91 |
||
92 |
public slots: |
|
93 |
void CBGrave_activated(const QString & gravename); |
|
94 |
void CBFort_activated(const QString & gravename); |
|
95 |
||
96 |
private: |
|
97 |
QLabel * LBind[BINDS_NUMBER]; |
|
98 |
}; |
|
99 |
||
100 |
class PageMultiplayer : public QWidget |
|
101 |
{ |
|
102 |
Q_OBJECT |
|
103 |
||
104 |
public: |
|
105 |
PageMultiplayer(QWidget* parent = 0); |
|
106 |
||
107 |
QPushButton *BtnBack; |
|
108 |
GameCFGWidget *gameCFG; |
|
109 |
TeamSelWidget *teamsSelect; |
|
133 | 110 |
QPushButton *BtnStartMPGame; |
87 | 111 |
}; |
112 |
||
113 |
class PagePlayDemo : public QWidget |
|
114 |
{ |
|
115 |
Q_OBJECT |
|
116 |
||
117 |
public: |
|
118 |
PagePlayDemo(QWidget* parent = 0); |
|
119 |
||
120 |
QPushButton *BtnBack; |
|
121 |
QPushButton *BtnPlayDemo; |
|
122 |
QListWidget *DemosList; |
|
123 |
}; |
|
124 |
||
125 |
class PageOptions : public QWidget |
|
126 |
{ |
|
127 |
Q_OBJECT |
|
128 |
||
129 |
public: |
|
130 |
PageOptions(QWidget* parent = 0); |
|
131 |
||
132 |
QPushButton *BtnBack; |
|
133 |
QGroupBox *groupBox; |
|
134 |
QPushButton *BtnNewTeam; |
|
135 |
QPushButton *BtnEditTeam; |
|
136 |
QComboBox *CBTeamName; |
|
94 | 137 |
QGroupBox *AGGroupBox; |
87 | 138 |
QComboBox *CBResolution; |
139 |
QCheckBox *CBEnableSound; |
|
140 |
QCheckBox *CBFullscreen; |
|
141 |
QPushButton *BtnSaveOptions; |
|
142 |
}; |
|
143 |
||
144 |
class PageNet : public QWidget |
|
145 |
{ |
|
146 |
Q_OBJECT |
|
147 |
||
148 |
public: |
|
149 |
PageNet(QWidget* parent = 0); |
|
150 |
||
151 |
QPushButton *BtnBack; |
|
152 |
QPushButton *BtnNetConnect; |
|
111
30ca06092a64
- 'net nickname' and 'server address' options are on PageNet
unc0rr
parents:
94
diff
changeset
|
153 |
QGroupBox *NNGroupBox; |
30ca06092a64
- 'net nickname' and 'server address' options are on PageNet
unc0rr
parents:
94
diff
changeset
|
154 |
QLabel *labelNN; |
30ca06092a64
- 'net nickname' and 'server address' options are on PageNet
unc0rr
parents:
94
diff
changeset
|
155 |
QLineEdit *editNetNick; |
30ca06092a64
- 'net nickname' and 'server address' options are on PageNet
unc0rr
parents:
94
diff
changeset
|
156 |
QLabel *labelIP; |
30ca06092a64
- 'net nickname' and 'server address' options are on PageNet
unc0rr
parents:
94
diff
changeset
|
157 |
QLineEdit * editIP; |
87 | 158 |
}; |
159 |
||
160 |
class PageNetChat : public QWidget |
|
161 |
{ |
|
162 |
Q_OBJECT |
|
163 |
||
164 |
public: |
|
165 |
PageNetChat(QWidget* parent = 0); |
|
166 |
||
167 |
QPushButton *BtnDisconnect; |
|
168 |
QListWidget *ChannelsList; |
|
169 |
QPushButton *BtnJoin; |
|
170 |
QPushButton *BtnCreate; |
|
171 |
}; |
|
172 |
||
173 |
class PageNetGame : public QWidget |
|
174 |
{ |
|
175 |
Q_OBJECT |
|
176 |
||
177 |
public: |
|
178 |
PageNetGame(QWidget* parent = 0); |
|
179 |
||
180 |
QPushButton *BtnBack; |
|
181 |
QPushButton *BtnAddTeam; |
|
182 |
QPushButton *BtnGo; |
|
183 |
QListWidget *listNetTeams; |
|
184 |
}; |
|
185 |
||
186 |
#endif // PAGES_H |