author | unc0rr |
Thu, 05 Oct 2006 16:33:18 +0000 | |
changeset 183 | 57c2ef19f719 |
parent 133 | c79cb5e5b24a |
child 184 | f97a7a3dc8f6 |
permissions | -rw-r--r-- |
20 | 1 |
/* |
2 |
* Hedgewars, a worms-like game |
|
128 | 3 |
* Copyright (c) 2005, 2006 Andrey Korotaev <unC0Rr@gmail.com> |
20 | 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 |
|
20 | 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. |
|
20 | 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 |
|
20 | 17 |
*/ |
18 |
||
19 |
#ifndef HWFORM_H |
|
20 |
#define HWFORM_H |
|
21 |
||
22 |
#include <QLabel> |
|
23 |
#include <QLineEdit> |
|
24 |
#include <QDir> |
|
50 | 25 |
|
20 | 26 |
#include "ui_hwform.h" |
50 | 27 |
|
87 | 28 |
class HWGame; |
29 |
class HWTeam; |
|
30 |
class HWNet; |
|
85
44d9045b26ff
New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents:
84
diff
changeset
|
31 |
class GameUIConfig; |
84 | 32 |
|
20 | 33 |
class HWForm : public QMainWindow |
34 |
{ |
|
35 |
Q_OBJECT |
|
36 |
||
37 |
public: |
|
38 |
HWForm(QWidget *parent = 0); |
|
87 | 39 |
Ui_HWForm ui; |
20 | 40 |
|
41 |
private slots: |
|
42 |
void GoToMain(); |
|
43 |
void GoToSinglePlayer(); |
|
44 |
void GoToSetup(); |
|
25 | 45 |
void GoToMultiplayer(); |
26 | 46 |
void GoToDemos(); |
28 | 47 |
void GoToNet(); |
48 |
void GoToNetChat(); |
|
20 | 49 |
void NewTeam(); |
50 |
void EditTeam(); |
|
51 |
void TeamSave(); |
|
52 |
void TeamDiscard(); |
|
53 |
void SimpleGame(); |
|
26 | 54 |
void PlayDemo(); |
28 | 55 |
void NetConnect(); |
56 |
void NetDisconnect(); |
|
31
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
57 |
void NetJoin(); |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
58 |
void NetCreate(); |
28 | 59 |
void AddGame(const QString & chan); |
31
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
60 |
void NetAddTeam(); |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
61 |
void NetGameEnter(); |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
62 |
void NetStartGame(); |
32
78bff13b11c0
With this patch the game doesn't crash when gaming by net
unc0rr
parents:
31
diff
changeset
|
63 |
void ChangeInNetTeams(const QStringList & teams); |
133 | 64 |
void StartMPGame(); |
26 | 65 |
|
20 | 66 |
private: |
67 |
HWGame * game; |
|
21 | 68 |
HWTeam * tmpTeam; |
28 | 69 |
HWNet * hwnet; |
85
44d9045b26ff
New GameCFGWidget. Now it's possible to set forts mode from ui
unc0rr
parents:
84
diff
changeset
|
70 |
GameUIConfig * config; |
20 | 71 |
}; |
72 |
||
73 |
#define ID_PAGE_SINGLEPLAYER 0 |
|
26 | 74 |
#define ID_PAGE_SETUP_TEAM 1 |
20 | 75 |
#define ID_PAGE_SETUP 2 |
25 | 76 |
#define ID_PAGE_MULTIPLAYER 3 |
26 | 77 |
#define ID_PAGE_DEMOS 4 |
28 | 78 |
#define ID_PAGE_NET 5 |
79 |
#define ID_PAGE_NETCHAT 6 |
|
31
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
80 |
#define ID_PAGE_NETCFG 7 |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
81 |
#define ID_PAGE_MAIN 8 |
20 | 82 |
|
83 |
#endif |