Restore select all plates as its own action (#12256)

restore select all plates as its own function

Co-authored-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
Yves
2026-02-13 16:24:59 +08:00
committed by GitHub
parent 5093a3dab3
commit 1952442e18
2 changed files with 14 additions and 2 deletions

View File

@@ -3272,8 +3272,12 @@ void GLCanvas3D::on_char(wxKeyEvent& evt)
#else /* __APPLE__ */ #else /* __APPLE__ */
case WXK_CONTROL_A: case WXK_CONTROL_A:
#endif /* __APPLE__ */ #endif /* __APPLE__ */
if (!is_in_painting_mode && !m_layers_editing.is_enabled()) if (!is_in_painting_mode && !m_layers_editing.is_enabled()) {
post_event(SimpleEvent(EVT_GLCANVAS_SELECT_CURR_PLATE_ALL)); if (evt.ShiftDown())
post_event(SimpleEvent(EVT_GLCANVAS_SELECT_ALL));
else
post_event(SimpleEvent(EVT_GLCANVAS_SELECT_CURR_PLATE_ALL));
}
break; break;
#ifdef __APPLE__ #ifdef __APPLE__
case 'c': case 'c':

View File

@@ -1581,6 +1581,14 @@ void MenuFactory::create_plate_menu()
return !plate->get_objects().empty(); return !plate->get_objects().empty();
}, m_parent); }, m_parent);
// select objects on all plates
append_menu_item(menu, wxID_ANY, _L("Select All Plates"), _L("select all objects on all plates"),
[](wxCommandEvent&) {
plater()->select_all();
}, "", nullptr, []() {
return !plater()->model().objects.empty();
}, m_parent);
// delete objects on current plate // delete objects on current plate
append_menu_item(menu, wxID_ANY, _L("Delete All"), _L("delete all objects on current plate"), append_menu_item(menu, wxID_ANY, _L("Delete All"), _L("delete all objects on current plate"),
[](wxCommandEvent&) { [](wxCommandEvent&) {