summaryrefslogtreecommitdiffstats
path: root/sigmodr/widgets/RulesUI.h
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-02-23 11:20:47 -0500
committerBen Boeckel <MathStuf@gmail.com>2009-02-23 11:20:47 -0500
commit7aff48012c3040a675543a0ff3d23af6cb8a8638 (patch)
tree6dd17b90d1f1c6ba9b0b7c5ddc40c2a849c25286 /sigmodr/widgets/RulesUI.h
parent25ec942048336dde5e1a17e6c75e15e4f8d8290d (diff)
downloadsigen-7aff48012c3040a675543a0ff3d23af6cb8a8638.tar.gz
sigen-7aff48012c3040a675543a0ff3d23af6cb8a8638.tar.xz
sigen-7aff48012c3040a675543a0ff3d23af6cb8a8638.zip
Started restructuring how sigmodr is built and moving things into libraries
Diffstat (limited to 'sigmodr/widgets/RulesUI.h')
-rw-r--r--sigmodr/widgets/RulesUI.h74
1 files changed, 74 insertions, 0 deletions
diff --git a/sigmodr/widgets/RulesUI.h b/sigmodr/widgets/RulesUI.h
new file mode 100644
index 00000000..cec4c4eb
--- /dev/null
+++ b/sigmodr/widgets/RulesUI.h
@@ -0,0 +1,74 @@
+/*
+ * Copyright 2008-2009 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_varGenders_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_varUseATB_toggled(const bool useATB);
+ void on_varSplitSpecial_toggled(const bool specialSplit);
+ void on_varSplitSpecialDV_toggled(const bool specialSplitDV);
+ void on_varEffortValues_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