184
|
1 |
/*
|
|
2 |
* Hedgewars, a worms-like game
|
|
3 |
* Copyright (c) 2005, 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 HWFORM_H
|
|
20 |
#define HWFORM_H
|
|
21 |
|
|
22 |
#include <QLabel>
|
|
23 |
#include <QLineEdit>
|
|
24 |
#include <QDir>
|
|
25 |
|
|
26 |
#include "ui_hwform.h"
|
|
27 |
|
|
28 |
class HWGame;
|
|
29 |
class HWTeam;
|
|
30 |
class HWNet;
|
|
31 |
class GameUIConfig;
|
|
32 |
|
|
33 |
class HWForm : public QMainWindow
|
|
34 |
{
|
|
35 |
Q_OBJECT
|
|
36 |
|
|
37 |
public:
|
|
38 |
HWForm(QWidget *parent = 0);
|
|
39 |
Ui_HWForm ui;
|
|
40 |
|
|
41 |
private slots:
|
|
42 |
void GoToMain();
|
|
43 |
void GoToSinglePlayer();
|
|
44 |
void GoToSetup();
|
|
45 |
void GoToMultiplayer();
|
|
46 |
void GoToDemos();
|
|
47 |
void GoToNet();
|
|
48 |
void GoToNetChat();
|
187
|
49 |
void GoToInfo();
|
184
|
50 |
void NewTeam();
|
|
51 |
void EditTeam();
|
|
52 |
void TeamSave();
|
|
53 |
void TeamDiscard();
|
|
54 |
void SimpleGame();
|
|
55 |
void PlayDemo();
|
|
56 |
void NetConnect();
|
|
57 |
void NetDisconnect();
|
|
58 |
void NetJoin();
|
|
59 |
void NetCreate();
|
|
60 |
void AddGame(const QString & chan);
|
|
61 |
void NetAddTeam();
|
|
62 |
void NetGameEnter();
|
|
63 |
void NetStartGame();
|
|
64 |
void ChangeInNetTeams(const QStringList & teams);
|
|
65 |
void StartMPGame();
|
|
66 |
|
|
67 |
private:
|
187
|
68 |
enum PageIDs {
|
|
69 |
ID_PAGE_SINGLEPLAYER = 0,
|
|
70 |
ID_PAGE_SETUP_TEAM = 1,
|
|
71 |
ID_PAGE_SETUP = 2,
|
|
72 |
ID_PAGE_MULTIPLAYER = 3,
|
|
73 |
ID_PAGE_DEMOS = 4,
|
|
74 |
ID_PAGE_NET = 5,
|
|
75 |
ID_PAGE_NETCHAT = 6,
|
|
76 |
ID_PAGE_NETCFG = 7,
|
|
77 |
ID_PAGE_INFO = 8,
|
|
78 |
ID_PAGE_MAIN = 9
|
|
79 |
};
|
184
|
80 |
HWGame * game;
|
|
81 |
HWTeam * tmpTeam;
|
|
82 |
HWNet * hwnet;
|
|
83 |
GameUIConfig * config;
|
|
84 |
};
|
|
85 |
|
|
86 |
#endif
|