From 75a9c780a7baabcfdc79de02865000253cd8d924 Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Tue, 26 Sep 2017 17:28:46 +0300 Subject: [PATCH] provide default editor popup menu - fix #290 --- dub.json | 2 +- src/dlangide/ui/newfile.d | 5 +++++ src/dlangide/ui/newproject.d | 4 ++++ views/VERSION | 2 +- 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/dub.json b/dub.json index 0344732..79af1b5 100644 --- a/dub.json +++ b/dub.json @@ -12,7 +12,7 @@ "stringImportPaths": ["views"], "dependencies": { - "dlangui": "==0.9.148", + "dlangui": "==0.9.149", "dsymbol": "~>0.2.9", "dcd": "~>0.9.1" }, diff --git a/src/dlangide/ui/newfile.d b/src/dlangide/ui/newfile.d index edbb98b..9407008 100644 --- a/src/dlangide/ui/newfile.d +++ b/src/dlangide/ui/newfile.d @@ -127,6 +127,11 @@ class NewFileDlg : Dialog { _edModuleName.enterKey.connect(&onEnterKey); _edLocation.enterKey.connect(&onEnterKey); + _edFileName.setDefaultPopupMenu(); + _edFilePath.setDefaultPopupMenu(); + _edModuleName.setDefaultPopupMenu(); + _edLocation.setDefaultPopupMenu(); + // fill templates dstring[] names; foreach(t; _templates) diff --git a/src/dlangide/ui/newproject.d b/src/dlangide/ui/newproject.d index 919a43a..d1463e5 100644 --- a/src/dlangide/ui/newproject.d +++ b/src/dlangide/ui/newproject.d @@ -202,6 +202,10 @@ class NewProjectDlg : Dialog { return true; }; + _edLocation.setDefaultPopupMenu(); + _edWorkspaceName.setDefaultPopupMenu(); + _edProjectName.setDefaultPopupMenu(); + addChild(content); addChild(createButtonsPanel([_newWorkspace ? ACTION_FILE_NEW_WORKSPACE : ACTION_FILE_NEW_PROJECT, ACTION_CANCEL], 0, 0)); } diff --git a/views/VERSION b/views/VERSION index d8788eb..547373d 100644 --- a/views/VERSION +++ b/views/VERSION @@ -1 +1 @@ -v0.7.98 \ No newline at end of file +v0.7.99 \ No newline at end of file