summaryrefslogtreecommitdiff
path: root/src/gui/widgets/setupitem.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-02-27 02:44:23 +0300
committerAndrei Karas <akaras@inbox.ru>2012-02-27 02:45:53 +0300
commit481bbd254103fc9d6dc98b19a5226f8868c8c5d9 (patch)
tree426856951ad81ccb69b43fc53a2ae76861f30fff /src/gui/widgets/setupitem.h
parente5272cde78d23a297dad05976e8579b3e5759de4 (diff)
downloadplus-481bbd254103fc9d6dc98b19a5226f8868c8c5d9.tar.gz
plus-481bbd254103fc9d6dc98b19a5226f8868c8c5d9.tar.bz2
plus-481bbd254103fc9d6dc98b19a5226f8868c8c5d9.tar.xz
plus-481bbd254103fc9d6dc98b19a5226f8868c8c5d9.zip
Add sliderlist setup item.
Diffstat (limited to 'src/gui/widgets/setupitem.h')
-rw-r--r--src/gui/widgets/setupitem.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/gui/widgets/setupitem.h b/src/gui/widgets/setupitem.h
index b950d1488..f883a5b94 100644
--- a/src/gui/widgets/setupitem.h
+++ b/src/gui/widgets/setupitem.h
@@ -42,6 +42,7 @@ class HorizontContainer;
class IntTextField;
class Label;
class Slider;
+class SliderList;
class TextField;
class SetupItem : public gcn::ActionListener
@@ -353,4 +354,40 @@ class SetupItemSlider2 : public SetupItem
bool mOnTheFly;
};
+class SetupItemSliderList : public SetupItem
+{
+ public:
+ SetupItemSliderList(std::string text, std::string description,
+ std::string keyName, SetupTabScroll *parent,
+ std::string eventName, gcn::ListModel *model,
+ int width = 150, bool onTheFly = false,
+ bool mainConfig = true);
+
+ SetupItemSliderList(std::string text, std::string description,
+ std::string keyName, SetupTabScroll *parent,
+ std::string eventName, gcn::ListModel *model,
+ std::string def, int width = 150,
+ bool onTheFly = false, bool mainConfig = true);
+
+ ~SetupItemSliderList();
+
+ void createControls();
+
+ void fromWidget();
+
+ void toWidget();
+
+ void action(const gcn::ActionEvent &event);
+
+ void apply(std::string eventName);
+
+ protected:
+ HorizontContainer *mHorizont;
+ Label *mLabel;
+ SliderList *mSlider;
+ gcn::ListModel *mModel;
+ int mWidth;
+ bool mOnTheFly;
+};
+
#endif