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:
authorAlex Zolotarev <alex@maps.me>2016-04-06 14:00:39 +0300
committerAlex Zolotarev <alex@maps.me>2016-04-07 19:56:13 +0300
commite1c035e234812b37bc274705d5bac8d10d7089d4 (patch)
tree6619a3f2b32bc7fa370603deed13869f8a05d25f /indexer/editable_map_object.cpp
parent690601fd895caae11fec3ea3f36fca927a481878 (diff)
[editor] Method to show/hide Add Organisation button.
Diffstat (limited to 'indexer/editable_map_object.cpp')
-rw-r--r--indexer/editable_map_object.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indexer/editable_map_object.cpp b/indexer/editable_map_object.cpp
index fa7bb218f2..cd689ca92b 100644
--- a/indexer/editable_map_object.cpp
+++ b/indexer/editable_map_object.cpp
@@ -1,6 +1,7 @@
#include "indexer/classificator.hpp"
#include "indexer/cuisines.hpp"
#include "indexer/editable_map_object.hpp"
+#include "indexer/ftypes_matcher.hpp"
#include "base/macros.hpp"
@@ -9,6 +10,11 @@ namespace osm
bool EditableMapObject::IsNameEditable() const { return m_editableProperties.m_name; }
bool EditableMapObject::IsAddressEditable() const { return m_editableProperties.m_address; }
+bool EditableMapObject::ShouldDisplayAddOrganisationButton() const
+{
+ return ftypes::IsBuildingChecker::Instance()(m_types);
+}
+
vector<Props> EditableMapObject::GetEditableProperties() const
{
return MetadataToProps(m_editableProperties.m_metadata);