From 57070b2185a20fec4de26fe7deca0de5d9eafc63 Mon Sep 17 00:00:00 2001 From: Adrian Insaurralde Avalos Date: Wed, 19 Oct 2022 11:34:35 -0300 Subject: [PATCH] [Gui] Split "File" toolbar and add "Clipboard" toolbar "File" is split into "File", "Edit" and "Help" "Clipboard" is hidden by default --- src/Gui/Workbench.cpp | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/src/Gui/Workbench.cpp b/src/Gui/Workbench.cpp index 714f3ab3a5..d7120a6eb5 100644 --- a/src/Gui/Workbench.cpp +++ b/src/Gui/Workbench.cpp @@ -758,10 +758,19 @@ ToolBarItem* StdWorkbench::setupToolBars() const // File auto file = new ToolBarItem( root ); file->setCommand("File"); - *file << "Std_New" << "Std_Open" << "Std_Save" << "Separator" - << "Std_Undo" << "Std_Redo" << "Separator" - << "Std_Refresh" << "Separator" << "Std_WhatsThis"; + *file << "Std_New" << "Std_Open" << "Std_Save"; + // Edit + auto edit = new ToolBarItem( root ); + edit->setCommand("Edit"); + *edit << "Std_Undo" << "Std_Redo" + << "Separator" << "Std_Refresh"; + + // Clipboard + auto clipboard = new ToolBarItem( root , ToolBarItem::HideStyle::HIDDEN ); + clipboard->setCommand("Clipboard"); + *clipboard << "Std_Cut" << "Std_Copy" << "Std_Paste"; + // Workbench switcher if (WorkbenchSwitcher::isToolbar(WorkbenchSwitcher::getValue())) { auto wb = new ToolBarItem(root); @@ -789,6 +798,11 @@ ToolBarItem* StdWorkbench::setupToolBars() const structure->setCommand("Structure"); *structure << "Std_Part" << "Std_Group" << "Std_LinkMake" << "Std_LinkActions"; + // Help + auto help = new ToolBarItem( root ); + help->setCommand("Help"); + *help << "Std_WhatsThis"; + return root; }