author | nemo |
Sun, 13 Nov 2011 11:06:07 -0500 | |
changeset 6351 | 8c2479443073 |
parent 6060 | fdfc01419815 |
child 6525 | 6c97379c584b |
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 * BtnCopy; |
|
35 |
QPushButton * BtnNew; |
|
36 |
QPushButton * BtnDelete; |
|
6042
8b5345758f62
some more cleanups/refactoring/blahblah, some button positions may are a bit off atm. also I added a new picture for one of the buttons
sheepluva
parents:
6009
diff
changeset
|
37 |
QPushButton * btnSave; |
5204 | 38 |
QComboBox * selectScheme; |
39 |
||
40 |
void setModel(QAbstractItemModel * model); |
|
41 |
||
42 |
public slots: |
|
43 |
void newRow(); |
|
44 |
void copyRow(); |
|
45 |
void deleteRow(); |
|
46 |
||
6042
8b5345758f62
some more cleanups/refactoring/blahblah, some button positions may are a bit off atm. also I added a new picture for one of the buttons
sheepluva
parents:
6009
diff
changeset
|
47 |
protected: |
8b5345758f62
some more cleanups/refactoring/blahblah, some button positions may are a bit off atm. also I added a new picture for one of the buttons
sheepluva
parents:
6009
diff
changeset
|
48 |
QLayout * bodyLayoutDefinition(); |
8b5345758f62
some more cleanups/refactoring/blahblah, some button positions may are a bit off atm. also I added a new picture for one of the buttons
sheepluva
parents:
6009
diff
changeset
|
49 |
QLayout * footerLayoutDefinition(); |
8b5345758f62
some more cleanups/refactoring/blahblah, some button positions may are a bit off atm. also I added a new picture for one of the buttons
sheepluva
parents:
6009
diff
changeset
|
50 |
void connectSignals(); |
8b5345758f62
some more cleanups/refactoring/blahblah, some button positions may are a bit off atm. also I added a new picture for one of the buttons
sheepluva
parents:
6009
diff
changeset
|
51 |
|
5204 | 52 |
private: |
53 |
QDataWidgetMapper * mapper; |
|
54 |
ToggleButtonWidget * TBW_mode_Forts; |
|
55 |
ToggleButtonWidget * TBW_teamsDivide; |
|
56 |
ToggleButtonWidget * TBW_solid; |
|
57 |
ToggleButtonWidget * TBW_border; |
|
58 |
ToggleButtonWidget * TBW_lowGravity; |
|
59 |
ToggleButtonWidget * TBW_laserSight; |
|
60 |
ToggleButtonWidget * TBW_invulnerable; |
|
61 |
ToggleButtonWidget * TBW_resethealth; |
|
62 |
ToggleButtonWidget * TBW_vampiric; |
|
63 |
ToggleButtonWidget * TBW_karma; |
|
64 |
ToggleButtonWidget * TBW_artillery; |
|
65 |
ToggleButtonWidget * TBW_randomorder; |
|
66 |
ToggleButtonWidget * TBW_king; |
|
67 |
ToggleButtonWidget * TBW_placehog; |
|
68 |
ToggleButtonWidget * TBW_sharedammo; |
|
69 |
ToggleButtonWidget * TBW_disablegirders; |
|
70 |
ToggleButtonWidget * TBW_disablelandobjects; |
|
71 |
ToggleButtonWidget * TBW_aisurvival; |
|
72 |
ToggleButtonWidget * TBW_infattack; |
|
73 |
ToggleButtonWidget * TBW_resetweps; |
|
74 |
ToggleButtonWidget * TBW_perhogammo; |
|
75 |
ToggleButtonWidget * TBW_nowind; |
|
76 |
ToggleButtonWidget * TBW_morewind; |
|
77 |
ToggleButtonWidget * TBW_tagteam; |
|
5717 | 78 |
ToggleButtonWidget * TBW_bottomborder; |
5204 | 79 |
|
80 |
QSpinBox * SB_DamageModifier; |
|
81 |
QSpinBox * SB_TurnTime; |
|
82 |
QSpinBox * SB_InitHealth; |
|
83 |
QSpinBox * SB_SuddenDeath; |
|
84 |
QSpinBox * SB_WaterRise; |
|
85 |
QSpinBox * SB_HealthDecrease; |
|
86 |
FreqSpinBox * SB_CaseProb; |
|
87 |
QSpinBox * SB_HealthCrates; |
|
88 |
QSpinBox * SB_CrateHealth; |
|
89 |
QSpinBox * SB_MinesTime; |
|
90 |
QSpinBox * SB_Mines; |
|
91 |
QSpinBox * SB_MineDuds; |
|
92 |
QSpinBox * SB_Explosives; |
|
93 |
QSpinBox * SB_RopeModifier; |
|
94 |
QSpinBox * SB_GetAwayTime; |
|
95 |
QLineEdit * LE_name; |
|
96 |
||
97 |
QGroupBox * gbGameModes; |
|
98 |
QGroupBox * gbBasicSettings; |
|
99 |
||
100 |
private slots: |
|
101 |
void schemeSelected(int); |
|
102 |
}; |
|
103 |
||
104 |
#endif |