From 3d7cb45edeb4f75bad321d54d84fe2d13b487db9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 18 May 2014 15:36:51 +0300 Subject: Move mouseeventtype into separate file. --- src/events/mouseevent.h | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) (limited to 'src/events/mouseevent.h') diff --git a/src/events/mouseevent.h b/src/events/mouseevent.h index 351684645..213582f47 100644 --- a/src/events/mouseevent.h +++ b/src/events/mouseevent.h @@ -66,6 +66,8 @@ #include "events/inputguievent.h" +#include "events/mouseeventtype.h" + class Widget; /** @@ -89,7 +91,7 @@ class MouseEvent: public InputGuiEvent * It's set to zero if another button is used. */ MouseEvent(Widget *const source, - const unsigned int type, + MouseEventType::Type type, const unsigned int button, const int x, const int y, @@ -147,7 +149,7 @@ class MouseEvent: public InputGuiEvent * * @return The type of the event. */ - unsigned int getType() const A_WARN_UNUSED + MouseEventType::Type getType() const A_WARN_UNUSED { return mType; } void setX(int n) @@ -156,22 +158,6 @@ class MouseEvent: public InputGuiEvent void setY(int n) { mY = n; } - /** - * Mouse event types. - */ - enum - { - MOVED = 0, - PRESSED, - RELEASED, - WHEEL_MOVED_DOWN, - WHEEL_MOVED_UP, - CLICKED, - ENTERED, - EXITED, - DRAGGED - }; - /** * Mouse button types. */ @@ -187,7 +173,7 @@ class MouseEvent: public InputGuiEvent /** * Holds the type of the mouse event. */ - unsigned int mType; + MouseEventType::Type mType; /** * Holds the button of the mouse event. -- cgit v1.2.3-70-g09d2