Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuSanka <yusanka@gmail.com>2019-07-08 11:57:35 +0300
committerYuSanka <yusanka@gmail.com>2019-07-08 11:57:35 +0300
commit7b6229289d144d1f24feb53cda31973a64e34ff8 (patch)
treeb09065e0144b43009589ccb942420742b2e9abf7 /src/slic3r/GUI/MainFrame.cpp
parentfb725502b7a6f7fd645d83ab640e22e0581d413d (diff)
Added undo/redo to the "Edit" menu
Diffstat (limited to 'src/slic3r/GUI/MainFrame.cpp')
-rw-r--r--src/slic3r/GUI/MainFrame.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/slic3r/GUI/MainFrame.cpp b/src/slic3r/GUI/MainFrame.cpp
index d800f6f38..67b336a0e 100644
--- a/src/slic3r/GUI/MainFrame.cpp
+++ b/src/slic3r/GUI/MainFrame.cpp
@@ -503,6 +503,14 @@ void MainFrame::init_menubar()
menu_icon("delete_all_menu"), nullptr, [this](){return can_delete_all(); }, this);
editMenu->AppendSeparator();
+ append_menu_item(editMenu, wxID_ANY, _(L("&Undo")) + sep + GUI::shortkey_ctrl_prefix() + sep_space + "Z",
+ _(L("Undo")), [this](wxCommandEvent&) { m_plater->undo(); },
+ "undo", nullptr, [this](){return m_plater->can_undo(); }, this);
+ append_menu_item(editMenu, wxID_ANY, _(L("&Redo")) + sep + GUI::shortkey_ctrl_prefix() + sep_space + "Y",
+ _(L("Redo")), [this](wxCommandEvent&) { m_plater->redo(); },
+ "undo", nullptr, [this](){return m_plater->can_redo(); }, this);
+
+ editMenu->AppendSeparator();
append_menu_item(editMenu, wxID_ANY, _(L("&Copy")) + sep + GUI::shortkey_ctrl_prefix() + sep_space + "C",
_(L("Copy selection to clipboard")), [this](wxCommandEvent&) { m_plater->copy_selection_to_clipboard(); },
menu_icon("copy_menu"), nullptr, [this](){return m_plater->can_copy_to_clipboard(); }, this);