Added bring to front and send to back

This commit is contained in:
Yousef Khadadeh 2026-01-20 11:59:03 +03:00
parent c3cc09e6b4
commit 0821f0840e
5 changed files with 143 additions and 0 deletions

View file

@ -369,6 +369,18 @@ void DrawingProgramSelection::deselect_all() {
}
}
void DrawingProgramSelection::push_selection_to_front() {
auto selectedVec = selectedSet;
deselect_all();
drawP.layerMan.push_components_to(selectedVec, false);
}
void DrawingProgramSelection::push_selection_to_back() {
auto selectedVec = selectedSet;
deselect_all();
drawP.layerMan.push_components_to(selectedVec, true);
}
void DrawingProgramSelection::delete_all() {
if(is_something_selected()) {
auto selectedSetTemp = selectedSet;