diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-02-21 03:33:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-02-21 03:33:54 +0300 |
commit | e4dabfe2b75a20378bdb1bf32b53249b5d55740b (patch) | |
tree | 8c14cc39a4f0a5b730d377a1d89b0304c9b8122d /src/gui/widgets/setupitem.h | |
parent | 2eef004b8b70861fd377ad50393a9a0ccbbbc152 (diff) | |
download | manaverse-e4dabfe2b75a20378bdb1bf32b53249b5d55740b.tar.gz manaverse-e4dabfe2b75a20378bdb1bf32b53249b5d55740b.tar.bz2 manaverse-e4dabfe2b75a20378bdb1bf32b53249b5d55740b.tar.xz manaverse-e4dabfe2b75a20378bdb1bf32b53249b5d55740b.zip |
Bit cleanup visual settings page.
Diffstat (limited to 'src/gui/widgets/setupitem.h')
-rw-r--r-- | src/gui/widgets/setupitem.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/gui/widgets/setupitem.h b/src/gui/widgets/setupitem.h index cf847f55d..b950d1488 100644 --- a/src/gui/widgets/setupitem.h +++ b/src/gui/widgets/setupitem.h @@ -270,12 +270,14 @@ class SetupItemSlider : public SetupItem SetupItemSlider(std::string text, std::string description, std::string keyName, SetupTabScroll *parent, std::string eventName, double min, double max, + int width = 150, bool onTheFly = false, bool mainConfig = true); SetupItemSlider(std::string text, std::string description, std::string keyName, SetupTabScroll *parent, std::string eventName, double min, double max, - std::string def, bool mainConfig = true); + std::string def, int width = 150, + bool onTheFly = false, bool mainConfig = true); ~SetupItemSlider(); @@ -297,6 +299,8 @@ class SetupItemSlider : public SetupItem Slider *mSlider; double mMin; double mMax; + int mWidth; + bool mOnTheFly; }; typedef std::vector<std::string> SetupItemNames; @@ -309,13 +313,14 @@ class SetupItemSlider2 : public SetupItem SetupItemSlider2(std::string text, std::string description, std::string keyName, SetupTabScroll *parent, std::string eventName, int min, int max, - SetupItemNames *values, bool mainConfig = true); + SetupItemNames *values, bool onTheFly = false, + bool mainConfig = true); SetupItemSlider2(std::string text, std::string description, std::string keyName, SetupTabScroll *parent, std::string eventName, int min, int max, SetupItemNames *values, std::string def, - bool mainConfig = true); + bool onTheFly = false, bool mainConfig = true); ~SetupItemSlider2(); @@ -345,6 +350,7 @@ class SetupItemSlider2 : public SetupItem int mMax; bool mInvert; int mInvertValue; + bool mOnTheFly; }; #endif |