QTfrontend/pagescheme.h
author Xeli
Tue, 05 Jul 2011 18:23:54 +0200
branchhedgeroid
changeset 5395 5caae9d7e12e
parent 5205 78138ae93820
child 5717 6d513913b7a9
permissions -rw-r--r--
Removed DataPackage and added eclipse specific meta files to ignore
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 * BtnBack;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    35
    QPushButton * BtnCopy;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    36
    QPushButton * BtnNew;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    37
    QPushButton * BtnDelete;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    38
    QPushButton * BtnSave;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    39
    QComboBox * selectScheme;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    40
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    41
    void setModel(QAbstractItemModel * model);
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    42
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    43
public slots:
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    44
    void newRow();
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    45
    void copyRow();
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    46
    void deleteRow();
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    47
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    48
private:
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    49
    QDataWidgetMapper * mapper;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    50
    ToggleButtonWidget * TBW_mode_Forts;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    51
    ToggleButtonWidget * TBW_teamsDivide;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    52
    ToggleButtonWidget * TBW_solid;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    53
    ToggleButtonWidget * TBW_border;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    54
    ToggleButtonWidget * TBW_lowGravity;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    55
    ToggleButtonWidget * TBW_laserSight;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    56
    ToggleButtonWidget * TBW_invulnerable;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    57
    ToggleButtonWidget * TBW_resethealth;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    58
    ToggleButtonWidget * TBW_vampiric;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    59
    ToggleButtonWidget * TBW_karma;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    60
    ToggleButtonWidget * TBW_artillery;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    61
    ToggleButtonWidget * TBW_randomorder;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    62
    ToggleButtonWidget * TBW_king;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    63
    ToggleButtonWidget * TBW_placehog;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    64
    ToggleButtonWidget * TBW_sharedammo;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    65
    ToggleButtonWidget * TBW_disablegirders;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    66
    ToggleButtonWidget * TBW_disablelandobjects;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    67
    ToggleButtonWidget * TBW_aisurvival;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    68
    ToggleButtonWidget * TBW_infattack;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    69
    ToggleButtonWidget * TBW_resetweps;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    70
    ToggleButtonWidget * TBW_perhogammo;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    71
    ToggleButtonWidget * TBW_nowind;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    72
    ToggleButtonWidget * TBW_morewind;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    73
    ToggleButtonWidget * TBW_tagteam;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    74
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    75
    QSpinBox * SB_DamageModifier;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    76
    QSpinBox * SB_TurnTime;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    77
    QSpinBox * SB_InitHealth;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    78
    QSpinBox * SB_SuddenDeath;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    79
    QSpinBox * SB_WaterRise;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    80
    QSpinBox * SB_HealthDecrease;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    81
    FreqSpinBox * SB_CaseProb;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    82
    QSpinBox * SB_HealthCrates;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    83
    QSpinBox * SB_CrateHealth;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    84
    QSpinBox * SB_MinesTime;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    85
    QSpinBox * SB_Mines;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    86
    QSpinBox * SB_MineDuds;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    87
    QSpinBox * SB_Explosives;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    88
    QSpinBox * SB_RopeModifier;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    89
    QSpinBox * SB_GetAwayTime;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    90
    QLineEdit * LE_name;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    91
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    92
    QGroupBox * gbGameModes;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    93
    QGroupBox * gbBasicSettings;
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    94
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    95
private slots:
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    96
    void schemeSelected(int);
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    97
e1a5f4d5d86a split pages.h into several header files
koda
parents:
diff changeset
    98
};
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
#endif