diff options
author | vng <viktor.govako@gmail.com> | 2013-06-14 16:41:27 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:57:12 +0300 |
commit | 2a34b742e4e59fb192b8ec607a805ac51d3623cc (patch) | |
tree | 55dcd4484420c898ac43e53d426fd0cfd2519768 /qt/draw_widget.hpp | |
parent | 593cb1723b6f9570acaf1a9bf5cd6786176f933d (diff) |
[refactoring] Cross platform balloon everywhere.
Diffstat (limited to 'qt/draw_widget.hpp')
-rw-r--r-- | qt/draw_widget.hpp | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/qt/draw_widget.hpp b/qt/draw_widget.hpp index 14fd2a69a1..3325d0b070 100644 --- a/qt/draw_widget.hpp +++ b/qt/draw_widget.hpp @@ -1,12 +1,11 @@ #pragma once -#include "../base/scheduled_task.hpp" - #include "../map/window_handle.hpp" #include "../map/framework.hpp" #include "../map/navigator.hpp" #include "../map/qgl_render_context.hpp" -#include "../map/bookmark_balloon.hpp" + +#include "../base/scheduled_task.hpp" #include "../platform/video_timer.hpp" @@ -109,17 +108,6 @@ namespace qt void KillPressTask(); void OnPressTaskEvent(double x, double y, unsigned ms); - typedef graphics::Image::Info ImageT; - ImageT m_images[2]; - enum PopupImageIndexT { IMAGE_PLUS = 0, IMAGE_ARROW = 1 }; - void ActivatePopup(m2::PointD const & pivot, string const & name, string const & type, PopupImageIndexT index); - void ActivatePopupWithAdressInfo(m2::PointD const & pivot, Framework::AddressInfo const & addrInfo); - void DiactivatePopup(); - - shared_ptr<BookmarkBalloon> m_bookmarkBalloon; - void CreateBookmarkBalloon(); - BookmarkBalloon * GetBookmarkBalloon(); - protected: /// @name Overriden from base_type. //@{ @@ -150,5 +138,7 @@ namespace qt shared_ptr<ScheduledTask> m_scheduledTasks; double m_taskX, m_taskY; + + BalloonManager & GetBalloonManager() { return m_framework->GetBalloonManager(); } }; } |