From e1debd3a4c43032489a6680a32541e423a854a12 Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Fri, 12 Apr 2019 14:30:28 +0200 Subject: [PATCH] Added icons for 3D and preview menu items --- resources/icons/editor_menu.svg | 20 +++++++++++++ resources/icons/preview_menu.svg | 48 ++++++++++++++++++++++++++++++++ src/slic3r/GUI/MainFrame.cpp | 4 +-- 3 files changed, 70 insertions(+), 2 deletions(-) create mode 100644 resources/icons/editor_menu.svg create mode 100644 resources/icons/preview_menu.svg diff --git a/resources/icons/editor_menu.svg b/resources/icons/editor_menu.svg new file mode 100644 index 000000000..3485f6187 --- /dev/null +++ b/resources/icons/editor_menu.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + diff --git a/resources/icons/preview_menu.svg b/resources/icons/preview_menu.svg new file mode 100644 index 000000000..5e10c8357 --- /dev/null +++ b/resources/icons/preview_menu.svg @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/slic3r/GUI/MainFrame.cpp b/src/slic3r/GUI/MainFrame.cpp index a6b5ed6be..afffebbb3 100644 --- a/src/slic3r/GUI/MainFrame.cpp +++ b/src/slic3r/GUI/MainFrame.cpp @@ -414,9 +414,9 @@ void MainFrame::init_menubar() if (m_plater) { windowMenu->AppendSeparator(); wxMenuItem* item_3d = append_menu_item(windowMenu, wxID_HIGHEST + 5, _(L("3&D")) + "\tCtrl+5", _(L("Show the 3D editing view")), - [this](wxCommandEvent&) { m_plater->select_view_3D("3D"); }, ""); + [this](wxCommandEvent&) { m_plater->select_view_3D("3D"); }, "editor_menu"); wxMenuItem* item_preview = append_menu_item(windowMenu, wxID_HIGHEST + 6, _(L("Pre&view")) + "\tCtrl+6", _(L("Show the 3D slices preview")), - [this](wxCommandEvent&) { m_plater->select_view_3D("Preview"); }, ""); + [this](wxCommandEvent&) { m_plater->select_view_3D("Preview"); }, "preview_menu"); Bind(wxEVT_UPDATE_UI, [this](wxUpdateUIEvent& evt) { evt.Enable(can_change_view()); }, item_3d->GetId()); Bind(wxEVT_UPDATE_UI, [this](wxUpdateUIEvent& evt) { evt.Enable(can_change_view()); }, item_preview->GetId());