[TD]add extensions for drag and drop

This commit is contained in:
wandererfan
2022-11-27 22:23:12 -05:00
committed by WandererFan
parent 7ce5c2dcf4
commit da06fc45a2
16 changed files with 656 additions and 51 deletions

View File

@@ -470,6 +470,19 @@ bool DrawPage::canUpdate() const
return result;
}
//true if object belongs to this page
bool DrawPage::hasObject(App::DocumentObject* obj)
{
for (auto& outObj : getOutList()) {
//TODO: check if pointer comparision is reliable enough
if (outObj == obj) {
return true;
}
}
return false;
}
//allow/prevent drawing updates for all Pages
bool DrawPage::GlobalUpdateDrawings(void)
{