QTfrontend/pagescheme.h
changeset 5204 e1a5f4d5d86a
child 5205 78138ae93820
equal deleted inserted replaced
5203:b77f28facca6 5204:e1a5f4d5d86a
       
     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 
       
    22 #include "pages.h"
       
    23 
       
    24 class FreqSpinBox;
       
    25 
       
    26 class PageScheme : public AbstractPage
       
    27 {
       
    28     Q_OBJECT
       
    29 
       
    30 public:
       
    31     PageScheme(QWidget* parent = 0);
       
    32 
       
    33     QPushButton * BtnBack;
       
    34     QPushButton * BtnCopy;
       
    35     QPushButton * BtnNew;
       
    36     QPushButton * BtnDelete;
       
    37     QPushButton * BtnSave;
       
    38     QComboBox * selectScheme;
       
    39 
       
    40     void setModel(QAbstractItemModel * model);
       
    41 
       
    42 public slots:
       
    43     void newRow();
       
    44     void copyRow();
       
    45     void deleteRow();
       
    46 
       
    47 private:
       
    48     QDataWidgetMapper * mapper;
       
    49     ToggleButtonWidget * TBW_mode_Forts;
       
    50     ToggleButtonWidget * TBW_teamsDivide;
       
    51     ToggleButtonWidget * TBW_solid;
       
    52     ToggleButtonWidget * TBW_border;
       
    53     ToggleButtonWidget * TBW_lowGravity;
       
    54     ToggleButtonWidget * TBW_laserSight;
       
    55     ToggleButtonWidget * TBW_invulnerable;
       
    56     ToggleButtonWidget * TBW_resethealth;
       
    57     ToggleButtonWidget * TBW_vampiric;
       
    58     ToggleButtonWidget * TBW_karma;
       
    59     ToggleButtonWidget * TBW_artillery;
       
    60     ToggleButtonWidget * TBW_randomorder;
       
    61     ToggleButtonWidget * TBW_king;
       
    62     ToggleButtonWidget * TBW_placehog;
       
    63     ToggleButtonWidget * TBW_sharedammo;
       
    64     ToggleButtonWidget * TBW_disablegirders;
       
    65     ToggleButtonWidget * TBW_disablelandobjects;
       
    66     ToggleButtonWidget * TBW_aisurvival;
       
    67     ToggleButtonWidget * TBW_infattack;
       
    68     ToggleButtonWidget * TBW_resetweps;
       
    69     ToggleButtonWidget * TBW_perhogammo;
       
    70     ToggleButtonWidget * TBW_nowind;
       
    71     ToggleButtonWidget * TBW_morewind;
       
    72     ToggleButtonWidget * TBW_tagteam;
       
    73 
       
    74     QSpinBox * SB_DamageModifier;
       
    75     QSpinBox * SB_TurnTime;
       
    76     QSpinBox * SB_InitHealth;
       
    77     QSpinBox * SB_SuddenDeath;
       
    78     QSpinBox * SB_WaterRise;
       
    79     QSpinBox * SB_HealthDecrease;
       
    80     FreqSpinBox * SB_CaseProb;
       
    81     QSpinBox * SB_HealthCrates;
       
    82     QSpinBox * SB_CrateHealth;
       
    83     QSpinBox * SB_MinesTime;
       
    84     QSpinBox * SB_Mines;
       
    85     QSpinBox * SB_MineDuds;
       
    86     QSpinBox * SB_Explosives;
       
    87     QSpinBox * SB_RopeModifier;
       
    88     QSpinBox * SB_GetAwayTime;
       
    89     QLineEdit * LE_name;
       
    90 
       
    91     QGroupBox * gbGameModes;
       
    92     QGroupBox * gbBasicSettings;
       
    93 
       
    94 private slots:
       
    95     void schemeSelected(int);
       
    96 
       
    97 };
       
    98 
       
    99 #endif