author | unc0rr |
Sat, 24 Sep 2011 00:00:57 +0400 | |
changeset 5996 | 2c72fe81dd37 |
parent 5717 | 6d513913b7a9 |
child 6009 | 14f6fc9869f2 |
permissions | -rw-r--r-- |
5204 | 1 |
/* |
2 |
* Hedgewars, a free turn based strategy game |
|
3 |
* Copyright (c) 2006-2011 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 PAGE_SCHEME_H |
|
20 |
#define PAGE_SCHEME_H |
|
21 |
||
5205
78138ae93820
some headers cleanup and rename of stats and playrecord pages for consistency
koda
parents:
5204
diff
changeset
|
22 |
#include "AbstractPage.h" |
78138ae93820
some headers cleanup and rename of stats and playrecord pages for consistency
koda
parents:
5204
diff
changeset
|
23 |
#include "togglebutton.h" |
5204 | 24 |
|
25 |
class FreqSpinBox; |
|
26 |
||
27 |
class PageScheme : public AbstractPage |
|
28 |
{ |
|
29 |
Q_OBJECT |
|
30 |
||
31 |
public: |
|
32 |
PageScheme(QWidget* parent = 0); |
|
33 |
||
34 |
QPushButton * BtnBack; |
|
35 |
QPushButton * BtnCopy; |
|
36 |
QPushButton * BtnNew; |
|
37 |
QPushButton * BtnDelete; |
|
38 |
QPushButton * BtnSave; |
|
39 |
QComboBox * selectScheme; |
|
40 |
||
41 |
void setModel(QAbstractItemModel * model); |
|
42 |
||
43 |
public slots: |
|
44 |
void newRow(); |
|
45 |
void copyRow(); |
|
46 |
void deleteRow(); |
|
47 |
||
48 |
private: |
|
49 |
QDataWidgetMapper * mapper; |
|
50 |
ToggleButtonWidget * TBW_mode_Forts; |
|
51 |
ToggleButtonWidget * TBW_teamsDivide; |
|
52 |
ToggleButtonWidget * TBW_solid; |
|
53 |
ToggleButtonWidget * TBW_border; |
|
54 |
ToggleButtonWidget * TBW_lowGravity; |
|
55 |
ToggleButtonWidget * TBW_laserSight; |
|
56 |
ToggleButtonWidget * TBW_invulnerable; |
|
57 |
ToggleButtonWidget * TBW_resethealth; |
|
58 |
ToggleButtonWidget * TBW_vampiric; |
|
59 |
ToggleButtonWidget * TBW_karma; |
|
60 |
ToggleButtonWidget * TBW_artillery; |
|
61 |
ToggleButtonWidget * TBW_randomorder; |
|
62 |
ToggleButtonWidget * TBW_king; |
|
63 |
ToggleButtonWidget * TBW_placehog; |
|
64 |
ToggleButtonWidget * TBW_sharedammo; |
|
65 |
ToggleButtonWidget * TBW_disablegirders; |
|
66 |
ToggleButtonWidget * TBW_disablelandobjects; |
|
67 |
ToggleButtonWidget * TBW_aisurvival; |
|
68 |
ToggleButtonWidget * TBW_infattack; |
|
69 |
ToggleButtonWidget * TBW_resetweps; |
|
70 |
ToggleButtonWidget * TBW_perhogammo; |
|
71 |
ToggleButtonWidget * TBW_nowind; |
|
72 |
ToggleButtonWidget * TBW_morewind; |
|
73 |
ToggleButtonWidget * TBW_tagteam; |
|
5717 | 74 |
ToggleButtonWidget * TBW_bottomborder; |
5204 | 75 |
|
76 |
QSpinBox * SB_DamageModifier; |
|
77 |
QSpinBox * SB_TurnTime; |
|
78 |
QSpinBox * SB_InitHealth; |
|
79 |
QSpinBox * SB_SuddenDeath; |
|
80 |
QSpinBox * SB_WaterRise; |
|
81 |
QSpinBox * SB_HealthDecrease; |
|
82 |
FreqSpinBox * SB_CaseProb; |
|
83 |
QSpinBox * SB_HealthCrates; |
|
84 |
QSpinBox * SB_CrateHealth; |
|
85 |
QSpinBox * SB_MinesTime; |
|
86 |
QSpinBox * SB_Mines; |
|
87 |
QSpinBox * SB_MineDuds; |
|
88 |
QSpinBox * SB_Explosives; |
|
89 |
QSpinBox * SB_RopeModifier; |
|
90 |
QSpinBox * SB_GetAwayTime; |
|
91 |
QLineEdit * LE_name; |
|
92 |
||
93 |
QGroupBox * gbGameModes; |
|
94 |
QGroupBox * gbBasicSettings; |
|
95 |
||
96 |
private slots: |
|
97 |
void schemeSelected(int); |
|
98 |
||
99 |
}; |
|
100 |
||
101 |
#endif |