From a23406a755012f6d938193e4cfc6244d2027646a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 4 Oct 2016 02:45:32 +0300 Subject: Move orientation enum into enums directory. --- src/gui/widgets/slider.h | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) (limited to 'src/gui/widgets/slider.h') diff --git a/src/gui/widgets/slider.h b/src/gui/widgets/slider.h index b6d065634..b70f3f000 100644 --- a/src/gui/widgets/slider.h +++ b/src/gui/widgets/slider.h @@ -66,6 +66,8 @@ #ifndef GUI_WIDGETS_SLIDER_H #define GUI_WIDGETS_SLIDER_H +#include "enums/gui/orientation.h" + #include "listeners/keylistener.h" #include "listeners/mouselistener.h" @@ -85,16 +87,6 @@ class Slider final : public Widget, public KeyListener { public: - /** - * Draw orientations for the slider. A slider can be drawn vertically or - * horizontally. - */ - enum Orientation - { - HORIZONTAL = 0, - VERTICAL - }; - /** * Constructor with scale start equal to 0. */ @@ -236,7 +228,7 @@ class Slider final : public Widget, * @param orientation The orientation of the slider. * @see getOrientation */ - void setOrientation(const Orientation orientation) + void setOrientation(const OrientationT orientation) { mOrientation = orientation; } /** @@ -246,7 +238,7 @@ class Slider final : public Widget, * @return The orientation of the slider. * @see setOrientation */ - Orientation getOrientation() const + OrientationT getOrientation() const { return mOrientation; } /** @@ -343,7 +335,7 @@ class Slider final : public Widget, * Holds the orientation of the slider. A slider can be drawn * vertically or horizontally. */ - Orientation mOrientation; + OrientationT mOrientation; ImageCollection *mVertexes A_NONNULLPOINTER; -- cgit v1.2.3-60-g2f50