Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrachytski <siarhei.rachytski@gmail.com>2012-05-25 23:56:08 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:38:58 +0300
commit8206f5e295d7c15d97a41d6eb0ebba00c98f12ec (patch)
tree13cad01764dfada95b72229ecc4040a57157955f /map/information_display.hpp
parentcef55ff1057d29d95f308f066553ceeea0740305 (diff)
added "Download" button into InformationDisplay and disabled it by default.
Diffstat (limited to 'map/information_display.hpp')
-rw-r--r--map/information_display.hpp13
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 &);