ENH: optimize per-object setting menu

1. allow setting process parameters when multiple objects are selected
2. refine texts of per-object setting item

Signed-off-by: yifan.wu <yifan.wu@bambulab.com>
Change-Id: I6ef748d147da049ff8088c9308e51f18ae201397
This commit is contained in:
yifan.wu 2022-12-05 16:03:53 +08:00 committed by Lane.Wei
parent bb70b60dbc
commit d0d5a82938
2 changed files with 9 additions and 3 deletions

View File

@ -1269,6 +1269,7 @@ wxMenu* MenuFactory::multi_selection_menu()
append_menu_item_change_filament(menu);
append_menu_item_set_printable(menu);
append_menu_item_per_object_process(menu);
menu->AppendSeparator();
append_menu_items_convert_unit(menu);
menu->AppendSeparator();
@ -1380,14 +1381,19 @@ void MenuFactory::append_menu_item_center(wxMenu* menu)
void MenuFactory::append_menu_item_per_object_process(wxMenu* menu)
{
const std::vector<wxString> names = {_L("Edit Object Process"), _L("Edit Object Process")};
const std::vector<wxString> names = { _L("Edit Process Settings"), _L("Edit Process Settings") };
append_menu_item(menu, wxID_ANY, names[0], names[1],
[](wxCommandEvent&) {
wxGetApp().obj_list()->switch_to_object_process();
}, "", nullptr,
[]() {
Selection& selection = plater()->canvas3D()->get_selection();
return selection.is_single_full_object() || selection.is_single_full_instance() || selection.is_single_volume();
return selection.is_single_full_object() ||
selection.is_multiple_full_object() ||
selection.is_single_full_instance() ||
selection.is_multiple_full_instance() ||
selection.is_single_volume() ||
selection.is_multiple_volume();
}, m_parent);
}

View File

@ -2072,7 +2072,7 @@ void ObjectList::switch_to_object_process()
// Show Dialog
if (wxGetApp().app_config->get("do_not_show_object_process_tips").empty()) {
TipsDialog dlg(wxGetApp().mainframe, _L("Edit Object Process"), _L("Switch to per-object setting mode to edit object process."), "do_not_show_object_process_tips");
TipsDialog dlg(wxGetApp().mainframe, _L("Edit Process Settings"), _L("Switch to per-object setting mode to edit process settings of selected objects."), "do_not_show_object_process_tips");
dlg.ShowModal();
}
}