# HG changeset patch # User Teemu Piippo # Date 1681046585 -10800 # Node ID 9d5cb5635c18684e39303504bf85abea4092353e # Parent 39fbdee0c0c8e2775503c8670dfaaefd1befc7ac Add undo, redo, cut, copy and paste actions to MainWindow which pass onto the editor widget diff -r 39fbdee0c0c8 -r 9d5cb5635c18 src/mainwindow.ui --- a/src/mainwindow.ui Sun Apr 09 16:01:57 2023 +0300 +++ b/src/mainwindow.ui Sun Apr 09 16:23:05 2023 +0300 @@ -6,7 +6,7 @@ 0 0 - 959 + 1333 695 @@ -44,7 +44,7 @@ 0 0 - 959 + 1333 38 @@ -78,7 +78,6 @@ - @@ -88,6 +87,13 @@ Edit + + + + + + + @@ -263,7 +269,6 @@ - @@ -313,6 +318,20 @@ + + + toolBar_2 + + + TopToolBarArea + + + false + + + + + @@ -399,14 +418,6 @@ Pick scene colours - - - Adjust grid to view - - - Ctrl+G - - @@ -594,6 +605,22 @@ Ctrl+V + + + Undo + + + Ctrl+Z + + + + + Redo + + + Ctrl+Y + + @@ -639,5 +666,85 @@ + + actionUndo + triggered() + modelEdit + undo() + + + -1 + -1 + + + 1041 + 163 + + + + + actionRedo + triggered() + modelEdit + redo() + + + -1 + -1 + + + 1041 + 163 + + + + + actionCut + triggered() + modelEdit + cut() + + + -1 + -1 + + + 1041 + 163 + + + + + actionCopy + triggered() + modelEdit + copy() + + + -1 + -1 + + + 1041 + 163 + + + + + actionPaste + triggered() + modelEdit + paste() + + + -1 + -1 + + + 1041 + 163 + + +