[PD] enable to de/selecet several entities at once

see https://forum.freecadweb.org/viewtopic.php?f=19&t=43383
This commit is contained in:
donovaly
2020-02-15 04:07:09 +01:00
parent 27771fc6ee
commit 3877e18e06
5 changed files with 23 additions and 12 deletions

View File

@@ -131,6 +131,11 @@ void TaskDressUpParameters::onButtonRefAdd(bool checked)
Gui::Selection().clearSelection();
Gui::Selection().addSelectionGate(new ReferenceSelection(this->getBase(), allowEdges, allowFaces, false));
DressUpView->highlightReferences(true);
} else {
clearButtons(none);
exitSelectionMode();
showObject();
DressUpView->highlightReferences(false);
}
}
@@ -144,6 +149,12 @@ void TaskDressUpParameters::onButtonRefRemove(const bool checked)
Gui::Selection().addSelectionGate(new ReferenceSelection(this->getBase(), allowEdges, allowFaces, false));
DressUpView->highlightReferences(true);
}
else {
clearButtons(none);
exitSelectionMode();
showObject();
DressUpView->highlightReferences(false);
}
}
const std::vector<std::string> TaskDressUpParameters::getReferences() const