summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-01-29 00:23:03 +0300
committerAndrei Karas <akaras@inbox.ru>2014-01-29 00:23:03 +0300
commitb9b358dc0d5c268a923c3a961ac8c072ccc691cf (patch)
tree7c884fbae6aa45b721174e68e44ec983375be128 /src/gui/widgets
parenta0b2deb4192bddad4d061f5d5df86411a437f01f (diff)
downloadmv-b9b358dc0d5c268a923c3a961ac8c072ccc691cf.tar.gz
mv-b9b358dc0d5c268a923c3a961ac8c072ccc691cf.tar.bz2
mv-b9b358dc0d5c268a923c3a961ac8c072ccc691cf.tar.xz
mv-b9b358dc0d5c268a923c3a961ac8c072ccc691cf.zip
add option for changing scale.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/tabs/setup_visual.cpp17
-rw-r--r--src/gui/widgets/tabs/setup_visual.h1
2 files changed, 17 insertions, 1 deletions
diff --git a/src/gui/widgets/tabs/setup_visual.cpp b/src/gui/widgets/tabs/setup_visual.cpp
index 7e565a291..067c6e5e9 100644
--- a/src/gui/widgets/tabs/setup_visual.cpp
+++ b/src/gui/widgets/tabs/setup_visual.cpp
@@ -87,7 +87,8 @@ Setup_Visual::Setup_Visual(const Widget2 *const widget) :
mAmbientFxList(new NamesModel),
mParticleList(new SetupItemNames),
mParticleTypeList(new NamesModel),
- mVSyncList(new NamesModel)
+ mVSyncList(new NamesModel),
+ mScaleList(new SetupItemNames)
{
// TRANSLATORS: settings tab name
setName(_("Visual"));
@@ -99,6 +100,18 @@ Setup_Visual::Setup_Visual(const Widget2 *const widget) :
mPreferredFirstItemSize = 150;
// TRANSLATORS: settings option
+ new SetupItemLabel(_("Scale"), "", this);
+
+ for (int f = 1; f <= 7; f ++)
+ {
+ // TRANSLATORS: particle details
+ mScaleList->push_back(toString(f) + "x");
+ }
+ new SetupItemSlider2(_("Scale "), "", "scale",
+ this, "scaleEvent", 1, 7,
+ mScaleList, true);
+
+ // TRANSLATORS: settings option
new SetupItemLabel(_("Notifications"), "", this);
// TRANSLATORS: settings option
@@ -204,6 +217,8 @@ Setup_Visual::~Setup_Visual()
mParticleTypeList = nullptr;
delete mVSyncList;
mVSyncList = nullptr;
+ delete mScaleList;
+ mScaleList = nullptr;
}
void Setup_Visual::apply()
diff --git a/src/gui/widgets/tabs/setup_visual.h b/src/gui/widgets/tabs/setup_visual.h
index 3967fd1de..8aef0d294 100644
--- a/src/gui/widgets/tabs/setup_visual.h
+++ b/src/gui/widgets/tabs/setup_visual.h
@@ -43,6 +43,7 @@ class Setup_Visual final : public SetupTabScroll
SetupItemNames *mParticleList;
NamesModel *mParticleTypeList;
NamesModel *mVSyncList;
+ SetupItemNames *mScaleList;
};
#endif // GUI_WIDGETS_TABS_SETUP_VISUAL_H