author | koda |
Sun, 28 Aug 2011 11:48:09 +0200 | |
changeset 5697 | e6630feefe88 |
parent 5205 | 78138ae93820 |
child 5717 | 6d513913b7a9 |
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; |
|
74 |
||
75 |
QSpinBox * SB_DamageModifier; |
|
76 |
QSpinBox * SB_TurnTime; |
|
77 |
QSpinBox * SB_InitHealth; |
|
78 |
QSpinBox * SB_SuddenDeath; |
|
79 |
QSpinBox * SB_WaterRise; |
|
80 |
QSpinBox * SB_HealthDecrease; |
|
81 |
FreqSpinBox * SB_CaseProb; |
|
82 |
QSpinBox * SB_HealthCrates; |
|
83 |
QSpinBox * SB_CrateHealth; |
|
84 |
QSpinBox * SB_MinesTime; |
|
85 |
QSpinBox * SB_Mines; |
|
86 |
QSpinBox * SB_MineDuds; |
|
87 |
QSpinBox * SB_Explosives; |
|
88 |
QSpinBox * SB_RopeModifier; |
|
89 |
QSpinBox * SB_GetAwayTime; |
|
90 |
QLineEdit * LE_name; |
|
91 |
||
92 |
QGroupBox * gbGameModes; |
|
93 |
QGroupBox * gbBasicSettings; |
|
94 |
||
95 |
private slots: |
|
96 |
void schemeSelected(int); |
|
97 |
||
98 |
}; |
|
99 |
||
100 |
#endif |