QTfrontend/ui/page/pagescheme.h
author nemo
Sun, 09 Oct 2011 20:03:04 -0400
changeset 6114 443cce9e060f
parent 6060 fdfc01419815
child 6525 6c97379c584b
permissions -rw-r--r--
expose border color to lua
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5204
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
     1
/*
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
     2
 * Hedgewars, a free turn based strategy game
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
     3
 * Copyright (c) 2006-2011 Andrey Korotaev <unC0Rr@gmail.com>
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
     4
 *
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
     5
 * This program is free software; you can redistribute it and/or modify
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
     6
 * it under the terms of the GNU General Public License as published by
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
     7
 * the Free Software Foundation; version 2 of the License
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
     8
 *
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
     9
 * This program is distributed in the hope that it will be useful,
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    12
 * GNU General Public License for more details.
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    13
 *
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    14
 * You should have received a copy of the GNU General Public License
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    15
 * along with this program; if not, write to the Free Software
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    16
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    17
 */
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    18
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    19
#ifndef PAGE_SCHEME_H
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    20
#define PAGE_SCHEME_H
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    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
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    24
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    25
class FreqSpinBox;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    26
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    27
class PageScheme : public AbstractPage
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    28
{
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    29
    Q_OBJECT
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    30
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    31
public:
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    32
    PageScheme(QWidget* parent = 0);
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    33
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    34
    QPushButton * BtnCopy;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    35
    QPushButton * BtnNew;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    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
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    38
    QComboBox * selectScheme;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    39
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    40
    void setModel(QAbstractItemModel * model);
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    41
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    42
public slots:
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    43
    void newRow();
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    44
    void copyRow();
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    45
    void deleteRow();
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    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
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    52
private:
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    53
    QDataWidgetMapper * mapper;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    54
    ToggleButtonWidget * TBW_mode_Forts;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    55
    ToggleButtonWidget * TBW_teamsDivide;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    56
    ToggleButtonWidget * TBW_solid;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    57
    ToggleButtonWidget * TBW_border;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    58
    ToggleButtonWidget * TBW_lowGravity;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    59
    ToggleButtonWidget * TBW_laserSight;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    60
    ToggleButtonWidget * TBW_invulnerable;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    61
    ToggleButtonWidget * TBW_resethealth;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    62
    ToggleButtonWidget * TBW_vampiric;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    63
    ToggleButtonWidget * TBW_karma;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    64
    ToggleButtonWidget * TBW_artillery;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    65
    ToggleButtonWidget * TBW_randomorder;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    66
    ToggleButtonWidget * TBW_king;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    67
    ToggleButtonWidget * TBW_placehog;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    68
    ToggleButtonWidget * TBW_sharedammo;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    69
    ToggleButtonWidget * TBW_disablegirders;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    70
    ToggleButtonWidget * TBW_disablelandobjects;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    71
    ToggleButtonWidget * TBW_aisurvival;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    72
    ToggleButtonWidget * TBW_infattack;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    73
    ToggleButtonWidget * TBW_resetweps;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    74
    ToggleButtonWidget * TBW_perhogammo;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    75
    ToggleButtonWidget * TBW_nowind;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    76
    ToggleButtonWidget * TBW_morewind;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    77
    ToggleButtonWidget * TBW_tagteam;
5717
6d513913b7a9 Add option for a bottom border. Needs testing.
nemo
parents: 5205
diff changeset
    78
    ToggleButtonWidget * TBW_bottomborder;
5204
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    79
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    80
    QSpinBox * SB_DamageModifier;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    81
    QSpinBox * SB_TurnTime;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    82
    QSpinBox * SB_InitHealth;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    83
    QSpinBox * SB_SuddenDeath;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    84
    QSpinBox * SB_WaterRise;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    85
    QSpinBox * SB_HealthDecrease;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    86
    FreqSpinBox * SB_CaseProb;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    87
    QSpinBox * SB_HealthCrates;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    88
    QSpinBox * SB_CrateHealth;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    89
    QSpinBox * SB_MinesTime;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    90
    QSpinBox * SB_Mines;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    91
    QSpinBox * SB_MineDuds;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    92
    QSpinBox * SB_Explosives;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    93
    QSpinBox * SB_RopeModifier;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    94
    QSpinBox * SB_GetAwayTime;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    95
    QLineEdit * LE_name;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    96
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    97
    QGroupBox * gbGameModes;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    98
    QGroupBox * gbBasicSettings;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    99
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
   100
private slots:
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
   101
    void schemeSelected(int);
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
   102
};
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
   103
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
   104
#endif