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:
authorMikhail Gorbushin <m.gorbushin@corp.mail.ru>2019-06-15 19:02:36 +0300
committermpimenov <mpimenov@users.noreply.github.com>2019-06-17 16:40:55 +0300
commitc57ed6add93b062d19090303a4164ca28544fae6 (patch)
treea2c179ac4ccd2bd659937d13e5cdcec747b3ea06 /qt/draw_widget.hpp
parent4025f9f9f16c216983f08b1854f918bcb539efa8 (diff)
[qt] add box mode
Diffstat (limited to 'qt/draw_widget.hpp')
-rw-r--r--qt/draw_widget.hpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/qt/draw_widget.hpp b/qt/draw_widget.hpp
index dbc5bee990..7c9fc68e4c 100644
--- a/qt/draw_widget.hpp
+++ b/qt/draw_widget.hpp
@@ -109,7 +109,8 @@ private:
void UpdateCountryStatus(storage::CountryId const & countryId);
- void VisualizeMwmsBordersInRect(m2::RectD const & rect, bool withPoints, bool fromPackedPolygon);
+ void VisualizeMwmsBordersInRect(m2::RectD const & rect, bool withVertices,
+ bool fromPackedPolygon, bool boundingBox);
m2::PointD GetCoordsFromSettingsIfExists(bool start, m2::PointD const & pt);
@@ -128,9 +129,11 @@ public:
CityBoundaries,
CityRoads,
MwmsBordersByPolyFiles,
- MwmsBordersWithPointsByPolyFiles,
+ MwmsBordersWithVerticesByPolyFiles,
MwmsBordersByPackedPolygon,
- MwmsBordersWithPointsByPackedPolygon
+ MwmsBordersWithVerticesByPackedPolygon,
+ BoundingBoxByPolyFiles,
+ BoundingBoxByPackedPolygon,
};
void SetSelectionMode(SelectionMode mode) { m_currentSelectionMode = {mode}; }
@@ -139,6 +142,7 @@ public:
SelectionMode GetSelectionMode() const { return *m_currentSelectionMode; }
private:
+ void ProcessSelectionMode();
boost::optional<SelectionMode> m_currentSelectionMode;
RouteMarkType m_routePointAddMode = RouteMarkType::Finish;