diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2009-02-28 00:20:20 -0500 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2009-02-28 00:25:22 -0500 |
| commit | 3655fc2210bcfaa02950754b57b52865b8d74071 (patch) | |
| tree | 98d015a00c4de707e1d753bc017099fe2910736c /sigmodr/widgets/RulesUI.cpp | |
| parent | 52d349be9a434015f26aa86b533d6a55e319d58f (diff) | |
Removed useATB and allowSwitchStyle from Rules (to be handled by arena plugins)
Diffstat (limited to 'sigmodr/widgets/RulesUI.cpp')
| -rw-r--r-- | sigmodr/widgets/RulesUI.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/sigmodr/widgets/RulesUI.cpp b/sigmodr/widgets/RulesUI.cpp index 0c2dcd3c..69ef7ad6 100644 --- a/sigmodr/widgets/RulesUI.cpp +++ b/sigmodr/widgets/RulesUI.cpp @@ -48,8 +48,6 @@ void RulesUI::initGui() ui_genders = formWidget->findChild<QCheckBox*>("varGenders"); ui_breeding = formWidget->findChild<QCheckBox*>("varBreeding"); ui_criticalDomains = formWidget->findChild<QCheckBox*>("varCriticalDomains"); - ui_switchStyle = formWidget->findChild<QCheckBox*>("varSwitchStyle"); - ui_useATB = formWidget->findChild<QCheckBox*>("varUseATB"); ui_splitSpecial = formWidget->findChild<QCheckBox*>("varSplitSpecial"); ui_splitSpecialDV = formWidget->findChild<QCheckBox*>("varSplitSpecialDV"); ui_effortValues = formWidget->findChild<QCheckBox*>("varEffortValues"); @@ -71,8 +69,6 @@ void RulesUI::initGui() connect(ui_genders, SIGNAL(toggled(bool)), this, SLOT(gendersChanged(bool))); connect(ui_breeding, SIGNAL(toggled(bool)), this, SLOT(breedingChanged(bool))); connect(ui_criticalDomains, SIGNAL(toggled(bool)), this, SLOT(criticalDomainsChanged(bool))); - connect(ui_switchStyle, SIGNAL(toggled(bool)), this, SLOT(switchStyleChanged(bool))); - connect(ui_useATB, SIGNAL(toggled(bool)), this, SLOT(useATBChanged(bool))); connect(ui_splitSpecial, SIGNAL(toggled(bool)), this, SLOT(splitSpecialChanged(bool))); connect(ui_splitSpecialDV, SIGNAL(toggled(bool)), this, SLOT(splitSpecialDVChanged(bool))); connect(ui_effortValues, SIGNAL(toggled(bool)), this, SLOT(effortValuesChanged(bool))); @@ -102,8 +98,6 @@ void RulesUI::setGui() ui_breeding->setCheckState(qobject_cast<Rules*>(modified())->breedingAllowed() ? Qt::Checked : Qt::Unchecked); ui_breeding->setEnabled(qobject_cast<Rules*>(modified())->genderAllowed()); ui_criticalDomains->setCheckState(qobject_cast<Rules*>(modified())->criticalDomains() ? Qt::Checked : Qt::Unchecked); - ui_switchStyle->setCheckState(qobject_cast<Rules*>(modified())->allowSwitchStyle() ? Qt::Checked : Qt::Unchecked); - ui_useATB->setCheckState(qobject_cast<Rules*>(modified())->useATB() ? Qt::Checked : Qt::Unchecked); ui_splitSpecial->setCheckState(qobject_cast<Rules*>(modified())->specialSplit() ? Qt::Checked : Qt::Unchecked); ui_splitSpecialDV->setEnabled(qobject_cast<Rules*>(modified())->specialSplit()); ui_splitSpecialDV->setCheckState(qobject_cast<Rules*>(modified())->specialDVSplit() ? Qt::Checked : Qt::Unchecked); @@ -158,16 +152,6 @@ void RulesUI::criticalDomainsChanged(const bool criticalDomains) qobject_cast<Rules*>(modified())->setCriticalDomains(criticalDomains); } -void RulesUI::switchStyleChanged(const bool switchStyle) -{ - qobject_cast<Rules*>(modified())->setAllowSwitchStyle(switchStyle); -} - -void RulesUI::useATBChanged(const bool useATB) -{ - qobject_cast<Rules*>(modified())->setUseATB(useATB); -} - void RulesUI::splitSpecialChanged(const bool splitSpecial) { qobject_cast<Rules*>(modified())->setSpecialSplit(splitSpecial); |
