diff options
author | Aki <please@ignore.pl> | 2022-09-15 00:53:01 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-09-15 00:53:01 +0200 |
commit | ce550f08fa91598612c016ebebc89c4af2e9505e (patch) | |
tree | 46be504b3831acc213b2da7feae38b1f1f6768ed /StarsEx/MapView.cpp | |
parent | 5310ea3564fe98b2940a63b72621b79de9290f77 (diff) | |
download | starshatter-ce550f08fa91598612c016ebebc89c4af2e9505e.zip starshatter-ce550f08fa91598612c016ebebc89c4af2e9505e.tar.gz starshatter-ce550f08fa91598612c016ebebc89c4af2e9505e.tar.bz2 |
Renamed EventDispatch and EventTarget by adding UI prefix
Diffstat (limited to 'StarsEx/MapView.cpp')
-rw-r--r-- | StarsEx/MapView.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/StarsEx/MapView.cpp b/StarsEx/MapView.cpp index dee3152..930a762 100644 --- a/StarsEx/MapView.cpp +++ b/StarsEx/MapView.cpp @@ -35,7 +35,8 @@ #include "Game.h" #include "ContentBundle.h" -#include "EventDispatch.h" +#include "UIEventDispatch.h" +#include "UIEventTarget.h" #include "Video.h" #include "Button.h" #include "Bitmap.h" @@ -599,7 +600,7 @@ MapView::ProcessMenuItem(int action) bool MapView::SetCapture() { - EventDispatch* dispatch = EventDispatch::GetInstance(); + UIEventDispatch* dispatch = UIEventDispatch::GetInstance(); if (dispatch) return dispatch->CaptureMouse(this) ? true : false; @@ -611,7 +612,7 @@ MapView::SetCapture() bool MapView::ReleaseCapture() { - EventDispatch* dispatch = EventDispatch::GetInstance(); + UIEventDispatch* dispatch = UIEventDispatch::GetInstance(); if (dispatch) return dispatch->ReleaseMouse(this) ? true : false; @@ -3211,7 +3212,7 @@ MapView::ZoomOut() void MapView::OnShow() { - EventDispatch* dispatch = EventDispatch::GetInstance(); + UIEventDispatch* dispatch = UIEventDispatch::GetInstance(); if (dispatch) dispatch->Register(this); } @@ -3219,7 +3220,7 @@ MapView::OnShow() void MapView::OnHide() { - EventDispatch* dispatch = EventDispatch::GetInstance(); + UIEventDispatch* dispatch = UIEventDispatch::GetInstance(); if (dispatch) dispatch->Unregister(this); @@ -3276,8 +3277,8 @@ int MapView::OnMouseMove(int x, int y) { if (captured) { - EventTarget* test = 0; - EventDispatch* dispatch = EventDispatch::GetInstance(); + UIEventTarget* test = 0; + UIEventDispatch* dispatch = UIEventDispatch::GetInstance(); if (dispatch) test = dispatch->GetCapture(); |