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();
|
|
49 |
void NewTeam();
|
|
50 |
void EditTeam();
|
|
51 |
void TeamSave();
|
|
52 |
void TeamDiscard();
|
|
53 |
void SimpleGame();
|
|
54 |
void PlayDemo();
|
|
55 |
void NetConnect();
|
|
56 |
void NetDisconnect();
|
|
57 |
void NetJoin();
|
|
58 |
void NetCreate();
|
|
59 |
void AddGame(const QString & chan);
|
|
60 |
void NetAddTeam();
|
|
61 |
void NetGameEnter();
|
|
62 |
void NetStartGame();
|
|
63 |
void ChangeInNetTeams(const QStringList & teams);
|
|
64 |
void StartMPGame();
|
|
65 |
|
|
66 |
private:
|
|
67 |
HWGame * game;
|
|
68 |
HWTeam * tmpTeam;
|
|
69 |
HWNet * hwnet;
|
|
70 |
GameUIConfig * config;
|
|
71 |
};
|
|
72 |
|
|
73 |
#define ID_PAGE_SINGLEPLAYER 0
|
|
74 |
#define ID_PAGE_SETUP_TEAM 1
|
|
75 |
#define ID_PAGE_SETUP 2
|
|
76 |
#define ID_PAGE_MULTIPLAYER 3
|
|
77 |
#define ID_PAGE_DEMOS 4
|
|
78 |
#define ID_PAGE_NET 5
|
|
79 |
#define ID_PAGE_NETCHAT 6
|
|
80 |
#define ID_PAGE_NETCFG 7
|
|
81 |
#define ID_PAGE_MAIN 8
|
|
82 |
|
|
83 |
#endif
|