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:
authorDmitry Kunin <dkunin@mapswith.me>2013-07-29 17:03:55 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:04:12 +0300
commit237acea1779c39308c6d81e40620198e71c2e474 (patch)
tree896daedf8dc41e0195a582a72ea19d00a7324891 /map/bookmark.hpp
parent129178ca622dbe1dfec60ff8972795a7e7e35350 (diff)
[tracks] Base tracks stuff.
[track] Draw only points in screen rect. [track] DisplayList drawing. [track] Tracks now have separate screen. [track] Removed stub data. [track] LineString parsing from .kml. [track] Serialization to .kml
Diffstat (limited to 'map/bookmark.hpp')
-rw-r--r--map/bookmark.hpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/map/bookmark.hpp b/map/bookmark.hpp
index a2e04ad42a..ff48a7fb12 100644
--- a/map/bookmark.hpp
+++ b/map/bookmark.hpp
@@ -11,6 +11,8 @@
#include "../std/noncopyable.hpp"
#include "../std/iostream.hpp"
+#include "track.hpp"
+
class Bookmark
{
@@ -49,8 +51,13 @@ public:
class BookmarkCategory : private noncopyable
{
- string m_name;
+ /// @name Data
+ //@{
vector<Bookmark *> m_bookmarks;
+ vector<Track *> m_tracks;
+ //@}
+
+ string m_name;
bool m_visible;
/// Stores file name from which category was loaded
string m_file;
@@ -64,6 +71,7 @@ public:
~BookmarkCategory();
void ClearBookmarks();
+ void ClearTracks();
static string GetDefaultType();
@@ -73,6 +81,13 @@ public:
void ReplaceBookmark(size_t index, Bookmark const & bm);
//@}
+ /// @name Track routines
+ //@{
+ void AddTrack(Track const & track);
+ Track * GetTrack(size_t index) const;
+ inline size_t GetTracksCount() const { return m_tracks.size(); }
+ //@}
+
void SetVisible(bool isVisible) { m_visible = isVisible; }
bool IsVisible() const { return m_visible; }