diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-11-07 11:34:04 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-11-07 11:34:04 +0100 |
| commit | dbb9034d864fc42f92a66b08a0734edc3dc73e8c (patch) | |
| tree | b5498e51945c1bb47f8b01a40fdc1c24087ea725 /Samples/common/src/SampleBaseForEditor.cs | |
| parent | 325573e4c0328189cf2353b31fc68780224bbc57 (diff) | |
doc, remplated menubar for showcase, disposable cursorParent in sliderdevel2
Diffstat (limited to 'Samples/common/src/SampleBaseForEditor.cs')
| -rw-r--r-- | Samples/common/src/SampleBaseForEditor.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Samples/common/src/SampleBaseForEditor.cs b/Samples/common/src/SampleBaseForEditor.cs index b207eea3..5c87226d 100644 --- a/Samples/common/src/SampleBaseForEditor.cs +++ b/Samples/common/src/SampleBaseForEditor.cs @@ -127,7 +127,7 @@ namespace Samples public ActionCommand CMDNew, CMDOpen, CMDSave, CMDSaveAs, CMDQuit, CMDShowLeftPane, CMDUndo, CMDRedo, CMDCut, CMDCopy, CMDPaste, CMDHelp, CMDAbout, CMDOptions; - public CommandGroup EditorCommands => new CommandGroup (CMDUndo, CMDRedo, CMDCut, CMDCopy, CMDPaste, CMDSave, CMDSaveAs); + public CommandGroup EditorFileCommands, EditorEditCommands, EditorAllCommands; protected virtual void initCommands () { CMDNew = new ActionCommand ("New", new Action (onNewFile), "#Icons.blank-file.svg"); @@ -139,6 +139,11 @@ namespace Samples CMDCut = new ActionCommand ("Cut", new Action (cut), "#Icons.scissors.svg", false); CMDCopy = new ActionCommand ("Copy", new Action (copy), "#Icons.copy-file.svg", false); CMDPaste= new ActionCommand ("Paste", new Action (paste), "#Icons.paste-on-document.svg", false); + + EditorFileCommands = new CommandGroup ("File", CMDSave, CMDSaveAs, CMDQuit); + EditorEditCommands = new CommandGroup ("Edit", CMDUndo, CMDRedo, CMDCut, CMDCopy, CMDPaste); + + EditorAllCommands = new CommandGroup (EditorFileCommands, EditorEditCommands); } |