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-06-02 21:29:57 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:39:20 +0300
commit9201356184df3585de78c4abb998e4c7248b9ca2 (patch)
treefe258e7660965ba52ab5153df94be06ea54280b6 /map/information_display.hpp
parent21b63475a7383bb2a0e4f0f0d57c3b5fb995fc27 (diff)
added CountryStatusDisplay GUI element and using it into InformationDisplay.
Diffstat (limited to 'map/information_display.hpp')
-rw-r--r--map/information_display.hpp17
1 files changed, 12 insertions, 5 deletions
diff --git a/map/information_display.hpp b/map/information_display.hpp
index 580c323ae9..c468d33cf7 100644
--- a/map/information_display.hpp
+++ b/map/information_display.hpp
@@ -22,6 +22,13 @@ namespace gui
class Controller;
}
+namespace storage
+{
+ class Storage;
+}
+
+class CountryStatusDisplay;
+
/// Class, which displays additional information on the primary layer.
/// like rules, coordinates, GPS position and heading
class InformationDisplay
@@ -50,7 +57,7 @@ private:
bool m_isDebugInfoEnabled;
double m_frameDuration;
- bool m_isEmptyModelMessageEnabled;
+ string m_emptyCountryName;
string m_emptyModelMessage;
shared_ptr<gui::Button> m_downloadButton;
@@ -80,10 +87,11 @@ private:
static size_t s_logSize;
static WindowHandle * s_windowHandle;
*/
+ shared_ptr<CountryStatusDisplay> m_countryStatusDisplay;
public:
- InformationDisplay();
+ InformationDisplay(storage::Storage * storage);
void setController(gui::Controller * controller);
@@ -125,10 +133,9 @@ public:
void setLogSize(size_t logSize);
void drawLog(DrawerYG * pDrawer);
- void enableEmptyModelMessage(bool doEnable);
- void setEmptyModelMessage(char const * msg);
+ void enableCountryStatusDisplay(bool doEnable);
void setDownloadListener(gui::Button::TOnClickListener l);
- void drawEmptyModelMessage(DrawerYG * pDrawer);
+ void setEmptyCountryName(char const * country);
static void logMessage(my::LogLevel, my::SrcPoint const &, string const &);
};