ENH:Gizmo shortcut key added

Change-Id: I4d089ef521b16d3ffedd07ba8b22043b899fe7b2
(cherry picked from commit 2f425b8321b3d24d24928185d0c33d54a3a9126b)
This commit is contained in:
xiangdong.yang 2022-07-28 10:15:33 +08:00 committed by Lane.Wei
parent 7ced9f4e23
commit cd907bbc9a
8 changed files with 9 additions and 9 deletions

View file

@ -5067,7 +5067,7 @@ bool GLCanvas3D::_init_main_toolbar()
item.name = "add";
item.icon_filename = "toolbar_open.svg";
item.tooltip = _utf8(L("Add"));
item.tooltip = _utf8(L("Add")) + " [" + GUI::shortkey_ctrl_prefix() + "I]";
item.sprite_id = 0;
item.left.action_callback = [this]() { if (m_canvas != nullptr) wxPostEvent(m_canvas, SimpleEvent(EVT_GLTOOLBAR_ADD)); };
item.enabling_callback = []()->bool {return wxGetApp().plater()->can_add_model(); };
@ -5105,7 +5105,7 @@ bool GLCanvas3D::_init_main_toolbar()
item.name = "arrange";
item.icon_filename = "toolbar_arrange.svg";
item.tooltip = _utf8(L("Auto arrange"));
item.tooltip = _utf8(L("Arrange all objects")) + " [A]\n" + _utf8(L("Arrange objects on selected plates")) + " [Shift+A]";
item.sprite_id++;
item.left.action_callback = []() {};
item.enabling_callback = []()->bool { return wxGetApp().plater()->can_arrange(); };