QTfrontend/gamecfgwidget.h
author unc0rr
Mon, 08 Jan 2007 20:51:22 +0000
changeset 312 c36d0b34ac3d
parent 311 b8905423f19f
child 318 46a43b02bbb3
permissions -rw-r--r--
Use new parameters, small protocol change
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
     1
/*
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
     2
 * Hedgewars, a worms-like game
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
     3
 * Copyright (c) 2006 Andrey Korotaev <unC0Rr@gmail.com>
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
     4
 *
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
     5
 * This program is free software; you can redistribute it and/or modify
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
     6
 * it under the terms of the GNU General Public License as published by
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
     7
 * the Free Software Foundation; version 2 of the License
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
     8
 *
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
     9
 * This program is distributed in the hope that it will be useful,
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    12
 * GNU General Public License for more details.
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    13
 *
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    14
 * You should have received a copy of the GNU General Public License
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    15
 * along with this program; if not, write to the Free Software
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    16
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    17
 */
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    18
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    19
#ifndef GAMECONFIGWIDGET_H
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    20
#define GAMECONFIGWIDGET_H
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    21
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    22
#include <QWidget>
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    23
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    24
#include "mapContainer.h"
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    25
311
b8905423f19f - Limit list of teams in game with 200 px
unc0rr
parents: 249
diff changeset
    26
class QCheckBox;
b8905423f19f - Limit list of teams in game with 200 px
unc0rr
parents: 249
diff changeset
    27
class QVBoxLayout;
b8905423f19f - Limit list of teams in game with 200 px
unc0rr
parents: 249
diff changeset
    28
class QSpinBox;
b8905423f19f - Limit list of teams in game with 200 px
unc0rr
parents: 249
diff changeset
    29
class QLabel;
b8905423f19f - Limit list of teams in game with 200 px
unc0rr
parents: 249
diff changeset
    30
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    31
class GameCFGWidget : public QWidget
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    32
{
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    33
	Q_OBJECT
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    34
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    35
public:
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    36
	GameCFGWidget(QWidget* parent=0);
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    37
	quint32 getGameFlags();
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    38
	QString getCurrentSeed() const;
249
ff85fa029541 map choose from files added
displacer
parents: 184
diff changeset
    39
	QString getCurrentMap() const;
ff85fa029541 map choose from files added
displacer
parents: 184
diff changeset
    40
	QString getCurrentTheme() const;
312
c36d0b34ac3d Use new parameters, small protocol change
unc0rr
parents: 311
diff changeset
    41
	quint32 getInitHealth() const;
c36d0b34ac3d Use new parameters, small protocol change
unc0rr
parents: 311
diff changeset
    42
	quint32 getTurnTime() const;
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    43
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    44
private slots:
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    45
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    46
private:
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    47
	QCheckBox * CB_mode_Forts;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    48
	QVBoxLayout mainLayout;
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    49
	HWMapContainer* pMapContainer;
311
b8905423f19f - Limit list of teams in game with 200 px
unc0rr
parents: 249
diff changeset
    50
	QSpinBox * SB_TurnTime;
b8905423f19f - Limit list of teams in game with 200 px
unc0rr
parents: 249
diff changeset
    51
	QSpinBox * SB_InitHealth;
b8905423f19f - Limit list of teams in game with 200 px
unc0rr
parents: 249
diff changeset
    52
	QLabel * L_TurnTime;
b8905423f19f - Limit list of teams in game with 200 px
unc0rr
parents: 249
diff changeset
    53
	QLabel * L_InitHealth;
184
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    54
};
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    55
f97a7a3dc8f6 - Update more headers
unc0rr
parents: 183
diff changeset
    56
#endif // GAMECONFIGWIDGET_H