summaryrefslogtreecommitdiffstats
path: root/sigmodr/RulesUI.h
blob: 3547efdb33933299fe64ec21efe67bee944e1c8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/*
 * Copyright 2008 Ben Boeckel <MathStuf@gmail.com>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License along
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef SIGMODR_RULESUI
#define SIGMODR_RULESUI

// Sigmodr includes
#include "ObjectUI.h"

// Form include
#include "ui_rules.h"

// Forward declarations
namespace Sigmod
{
class Rules;
}

namespace Sigmodr
{
class RulesUI : public ObjectUI, private Ui::formRules
{
    Q_OBJECT
    
    public:
        RulesUI(Sigmod::Rules* rules, QWidget* parent);
        ~RulesUI();
    public slots:
        void apply();
        void discard();
    protected slots:
        void on_boxGenders_toggled(const bool genders);
        void on_varBreeding_toggled(const bool breeding);
        void on_varCriticalDomains_toggled(const bool criticalDomains);
        void on_varSwitchStyle_toggled(const bool switchStyle);
        void on_varUseTurns_toggled(const bool useTurns);
        void on_varPausedATB_toggled(const bool pausedATB);
        void on_boxSplitSpecial_toggled(const bool specialSplit);
        void on_varSplitSpecialDV_toggled(const bool specialSplitDV);
        void on_boxEffortValues_toggled(const bool effortValues);
        void on_varMaxEV_valueChanged(const int maxEV);
        void on_varMaxEVPerStat_valueChanged(const int maxEVPerStat);
        void on_varBoxes_valueChanged(const int boxes);
        void on_varBoxSize_valueChanged(const int boxSize);
        void on_varMaxParty_valueChanged(const int maxParty);
        void on_varMaxFight_valueChanged(const int maxFight);
        void on_varMaxPlayers_valueChanged(const int maxPlayers);
        void on_varMaxMoves_valueChanged(const int maxMoves);
        void on_varMaxLevel_valueChanged(const int maxLevel);
        void on_varMaxHeldItems_valueChanged(const int maxHeldItems);
        void on_varMaxNatures_valueChanged(const int maxNatures);
        void on_varMaxAbilities_valueChanged(const int maxAbilities);
        void on_varMaxStages_valueChanged(const int maxStages);
        void on_varMaxMoney_valueChanged(const int maxMoney);
        void on_varMaxTotalWeight_valueChanged(const int maxTotalWeight);
    private slots:
        void setGui();
};
}

#endif