summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs/setup_other.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-31 21:53:50 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-31 21:53:50 +0300
commit06720edd93b51a84650e2d385a24043cc4fb932e (patch)
tree002c54e58ee0cc45feca1fc00b64808b46861f35 /src/gui/widgets/tabs/setup_other.cpp
parente8f29b1cff5360c9d16587b91d72863af4763d08 (diff)
downloadmanaverse-06720edd93b51a84650e2d385a24043cc4fb932e.tar.gz
manaverse-06720edd93b51a84650e2d385a24043cc4fb932e.tar.bz2
manaverse-06720edd93b51a84650e2d385a24043cc4fb932e.tar.xz
manaverse-06720edd93b51a84650e2d385a24043cc4fb932e.zip
Add strong typed bool enum mainconfig.
Diffstat (limited to 'src/gui/widgets/tabs/setup_other.cpp')
-rw-r--r--src/gui/widgets/tabs/setup_other.cpp19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/gui/widgets/tabs/setup_other.cpp b/src/gui/widgets/tabs/setup_other.cpp
index daf26f668..4a1fc1302 100644
--- a/src/gui/widgets/tabs/setup_other.cpp
+++ b/src/gui/widgets/tabs/setup_other.cpp
@@ -241,11 +241,13 @@ Setup_Other::Setup_Other(const Widget2 *const widget) :
// TRANSLATORS: settings option
new SetupItemTextField(_("Afk message"), "",
- "afkMessage", this, "afkMessageEvent", false);
+ "afkMessage", this, "afkMessageEvent",
+ MainConfig_false);
// TRANSLATORS: settings option
new SetupItemCheckBox(_("Show job"), "", "showJob",
- this, "showJobEvent", false);
+ this, "showJobEvent",
+ MainConfig_false);
// TRANSLATORS: settings option
new SetupItemCheckBox(_("Enable attack filter"), "",
@@ -297,12 +299,14 @@ Setup_Other::Setup_Other(const Widget2 *const widget) :
// TRANSLATORS: settings option
new SetupItemCheckBox(_("Enable guild bot support and disable native "
"guild support"), "", "enableGuildBot", this,
- "enableGuildBotEvent", false);
+ "enableGuildBotEvent",
+ MainConfig_false);
// TRANSLATORS: settings option
new SetupItemCheckBox(_("Enable manamarket bot support"),
"", "enableManaMarketBot", this,
- "enableManaMarketBotEvent", false);
+ "enableManaMarketBotEvent",
+ MainConfig_false);
// TRANSLATORS: settings group
@@ -364,7 +368,8 @@ Setup_Other::Setup_Other(const Widget2 *const widget) :
// TRANSLATORS: settings option
new SetupItemCheckBox(_("Enable buggy servers protection "
"(do not disable)"), "", "enableBuggyServers", this,
- "enableBuggyServersEvent", false);
+ "enableBuggyServersEvent",
+ MainConfig_false);
// TRANSLATORS: settings option
new SetupItemCheckBox(_("Enable debug log"), "",
@@ -403,7 +408,9 @@ Setup_Other::Setup_Other(const Widget2 *const widget) :
#ifndef WIN32
// TRANSLATORS: settings option
new SetupItemTextField(_("Screenshot directory"), "",
- "screenshotDirectory3", this, "screenshotDirectory3Event", true, true);
+ "screenshotDirectory3", this, "screenshotDirectory3Event",
+ MainConfig_true,
+ true);
#endif
// TRANSLATORS: settings option