summaryrefslogtreecommitdiff
path: root/src/gui/setup_visual.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-07 22:09:11 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-07 22:09:11 +0300
commitb7e35a7bbd41c39fa675e77b2af6a11bb4d86dd2 (patch)
treeee27a5a1ace7e5dbc588466dc623013e4d5cea99 /src/gui/setup_visual.cpp
parent7d3059516fc25134d0d29b497e546f2846162399 (diff)
downloadmanaplus-b7e35a7bbd41c39fa675e77b2af6a11bb4d86dd2.tar.gz
manaplus-b7e35a7bbd41c39fa675e77b2af6a11bb4d86dd2.tar.bz2
manaplus-b7e35a7bbd41c39fa675e77b2af6a11bb4d86dd2.tar.xz
manaplus-b7e35a7bbd41c39fa675e77b2af6a11bb4d86dd2.zip
Improve constructors in some classes.
Diffstat (limited to 'src/gui/setup_visual.cpp')
-rw-r--r--src/gui/setup_visual.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/gui/setup_visual.cpp b/src/gui/setup_visual.cpp
index 276387abb..77321127a 100644
--- a/src/gui/setup_visual.cpp
+++ b/src/gui/setup_visual.cpp
@@ -30,7 +30,13 @@
#include "debug.h"
-Setup_Visual::Setup_Visual()
+Setup_Visual::Setup_Visual() :
+ SetupTabScroll(),
+ mSpeachList(new SetupItemNames),
+ mAmbientFxList(new SetupItemNames),
+ mParticleList(new SetupItemNames),
+ mParticleTypeList(new SetupItemNames),
+ mVSyncList(new SetupItemNames)
{
setName(_("Visual"));
// Do the layout
@@ -59,7 +65,6 @@ Setup_Visual::Setup_Visual()
new SetupItemSlider(_("Gui opacity"), "", "guialpha",
this, "guialphaEvent", 0.1, 1.0, 150, true);
- mSpeachList = new SetupItemNames();
mSpeachList->push_back(_("No text"));
mSpeachList->push_back(_("Text"));
mSpeachList->push_back(_("Bubbles, no names"));
@@ -67,7 +72,6 @@ Setup_Visual::Setup_Visual()
new SetupItemSlider2(_("Overhead text"), "", "speech", this,
"speechEvent", 0, 3, mSpeachList);
- mAmbientFxList = new SetupItemNames();
mAmbientFxList->push_back(_("off"));
mAmbientFxList->push_back(_("low"));
mAmbientFxList->push_back(_("high"));
@@ -77,7 +81,6 @@ Setup_Visual::Setup_Visual()
new SetupItemCheckBox(_("Particle effects"), "",
"particleeffects", this, "particleeffectsEvent");
- mParticleList = new SetupItemNames();
mParticleList->push_back(_("low"));
mParticleList->push_back(_("medium"));
mParticleList->push_back(_("high"));
@@ -86,7 +89,6 @@ Setup_Visual::Setup_Visual()
this, "particleEmitterSkipEvent", 0, 3,
mParticleList, true))->setInvertValue(3);
- mParticleTypeList = new SetupItemNames();
mParticleTypeList->push_back(_("best quality"));
mParticleTypeList->push_back(_("normal"));
mParticleTypeList->push_back(_("best perfomance"));
@@ -98,7 +100,6 @@ Setup_Visual::Setup_Visual()
new SetupItemSlider(_("Gamma"), "", "gamma",
this, "gammeEvent", 1, 20, 350, true);
- mVSyncList = new SetupItemNames();
mVSyncList->push_back(_("default"));
mVSyncList->push_back(_("off"));
mVSyncList->push_back(_("on"));