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 GAMECONFIGWIDGET_H
|
|
20 |
#define GAMECONFIGWIDGET_H
|
|
21 |
|
|
22 |
#include <QWidget>
|
|
23 |
|
|
24 |
#include "mapContainer.h"
|
|
25 |
|
311
|
26 |
class QCheckBox;
|
|
27 |
class QVBoxLayout;
|
|
28 |
class QSpinBox;
|
|
29 |
class QLabel;
|
|
30 |
|
184
|
31 |
class GameCFGWidget : public QWidget
|
|
32 |
{
|
|
33 |
Q_OBJECT
|
|
34 |
|
|
35 |
public:
|
|
36 |
GameCFGWidget(QWidget* parent=0);
|
|
37 |
quint32 getGameFlags();
|
|
38 |
QString getCurrentSeed() const;
|
249
|
39 |
QString getCurrentMap() const;
|
|
40 |
QString getCurrentTheme() const;
|
312
|
41 |
quint32 getInitHealth() const;
|
|
42 |
quint32 getTurnTime() const;
|
184
|
43 |
|
|
44 |
private slots:
|
|
45 |
|
|
46 |
private:
|
|
47 |
QCheckBox * CB_mode_Forts;
|
|
48 |
QVBoxLayout mainLayout;
|
|
49 |
HWMapContainer* pMapContainer;
|
311
|
50 |
QSpinBox * SB_TurnTime;
|
|
51 |
QSpinBox * SB_InitHealth;
|
|
52 |
QLabel * L_TurnTime;
|
|
53 |
QLabel * L_InitHealth;
|
184
|
54 |
};
|
|
55 |
|
|
56 |
#endif // GAMECONFIGWIDGET_H
|