summaryrefslogtreecommitdiff
path: root/src/gui/widgets/slider.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-11-09 17:59:14 +0300
committerAndrei Karas <akaras@inbox.ru>2013-11-09 17:59:14 +0300
commitdb1e60556c72b1b87ff2a384c556ccca724c46d6 (patch)
tree22a5f4e9c4f436ef8e746e0a2d688de80c1597a6 /src/gui/widgets/slider.h
parentc2bb49be52a92deccec7428b6859242688fc8987 (diff)
parent1716861f0ee2f7a3714c5b44bb0f017c3d8d3b2c (diff)
downloadplus-db1e60556c72b1b87ff2a384c556ccca724c46d6.tar.gz
plus-db1e60556c72b1b87ff2a384c556ccca724c46d6.tar.bz2
plus-db1e60556c72b1b87ff2a384c556ccca724c46d6.tar.xz
plus-db1e60556c72b1b87ff2a384c556ccca724c46d6.zip
Merge branch 'master' into stable
Diffstat (limited to 'src/gui/widgets/slider.h')
-rw-r--r--src/gui/widgets/slider.h19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/gui/widgets/slider.h b/src/gui/widgets/slider.h
index e54c9e374..79ef2b961 100644
--- a/src/gui/widgets/slider.h
+++ b/src/gui/widgets/slider.h
@@ -29,6 +29,8 @@
#include "localconsts.h"
+class ImageCollection;
+
/**
* Slider widget. Same as the Guichan slider but with custom look.
*
@@ -66,11 +68,6 @@ class Slider final : public gcn::Slider,
void draw(gcn::Graphics *graphics) override final;
/**
- * Draws the marker.
- */
- void drawMarker(gcn::Graphics *const graphics) const;
-
- /**
* Called when the mouse enteres the widget area.
*/
void mouseEntered(gcn::MouseEvent& event) override final;
@@ -80,8 +77,18 @@ class Slider final : public gcn::Slider,
*/
void mouseExited(gcn::MouseEvent& event) override final;
+ void mousePressed(gcn::MouseEvent &mouseEvent) override final;
+
+ void mouseDragged(gcn::MouseEvent &mouseEvent) override final;
+
+ void mouseWheelMovedUp(gcn::MouseEvent &mouseEvent) override final;
+
+ void mouseWheelMovedDown(gcn::MouseEvent &mouseEvent) override final;
+
void keyPressed(gcn::KeyEvent& keyEvent) override final;
+ void setValue2(const double value);
+
enum SLIDER_ENUM
{
HSTART = 0,
@@ -104,7 +111,9 @@ class Slider final : public gcn::Slider,
static ImageRect buttons[2];
static float mAlpha;
static int mInstances;
+ ImageCollection *mVertexes;
bool mHasMouse;
+ bool mRedraw;
};
#endif // GUI_WIDGETS_SLIDER_H