Link: change sub-element linking mechanism

Previous multi-sub-element linking (e.g. Face, Edge) is supported
through SubElements of type PropertyStringList, which does not support
geometry element update tracking. This patch changes it to use
PropertyXLink's new multi-subname capability.
This commit is contained in:
Zheng, Lei
2019-09-01 19:45:57 +08:00
committed by wmayer
parent 4042d83362
commit f57283f598
6 changed files with 139 additions and 101 deletions

View File

@@ -222,9 +222,9 @@ public:
bool canDropObjects() const override;
bool canDragAndDropObject(App::DocumentObject*) const override;
bool canDropObjectEx(App::DocumentObject *obj, App::DocumentObject *owner,
const char *subname, const std::vector<std::string> &elements) const override;
const char *subname, const std::vector<std::string> &subElements) const override;
std::string dropObjectEx(App::DocumentObject*, App::DocumentObject*,
const char *subname, const std::vector<std::string> &elements) override;
const char *subname, const std::vector<std::string> &subElements) override;
bool onDelete(const std::vector<std::string> &) override;
bool canDelete(App::DocumentObject* obj) const override;