diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2012-05-25 23:56:08 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:38:58 +0300 |
commit | 8206f5e295d7c15d97a41d6eb0ebba00c98f12ec (patch) | |
tree | 13cad01764dfada95b72229ecc4040a57157955f /map/information_display.hpp | |
parent | cef55ff1057d29d95f308f066553ceeea0740305 (diff) |
added "Download" button into InformationDisplay and disabled it by default.
Diffstat (limited to 'map/information_display.hpp')
-rw-r--r-- | map/information_display.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/map/information_display.hpp b/map/information_display.hpp index 59bbe661bc..580c323ae9 100644 --- a/map/information_display.hpp +++ b/map/information_display.hpp @@ -7,6 +7,7 @@ #include "../geometry/screenbase.hpp" #include "../base/timer.hpp" #include "../base/logging.hpp" +#include "../gui/button.hpp" namespace location { @@ -15,6 +16,12 @@ namespace location class DrawerYG; +namespace gui +{ + class Button; + class Controller; +} + /// Class, which displays additional information on the primary layer. /// like rules, coordinates, GPS position and heading class InformationDisplay @@ -44,7 +51,10 @@ private: double m_frameDuration; bool m_isEmptyModelMessageEnabled; + string m_emptyModelMessage; + shared_ptr<gui::Button> m_downloadButton; + gui::Controller * m_controller; bool m_isBenchmarkInfoEnabled; @@ -75,6 +85,8 @@ public: InformationDisplay(); + void setController(gui::Controller * controller); + void setScreen(ScreenBase const & screen); void setDisplayRect(m2::RectI const & rect); void setBottomShift(double bottomShift); @@ -115,6 +127,7 @@ public: void enableEmptyModelMessage(bool doEnable); void setEmptyModelMessage(char const * msg); + void setDownloadListener(gui::Button::TOnClickListener l); void drawEmptyModelMessage(DrawerYG * pDrawer); static void logMessage(my::LogLevel, my::SrcPoint const &, string const &); |