From e185c2a935240304ffe9e20958773f07d61ed311 Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Thu, 12 Feb 2015 15:24:47 +0300 Subject: [PATCH] tooltips for toolbar buttons --- src/dlangide/ui/commands.d | 2 ++ src/dlangide/ui/frame.d | 2 +- views/res/i18n/en.ini | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/dlangide/ui/commands.d b/src/dlangide/ui/commands.d index 9a92f09..f3c1d40 100644 --- a/src/dlangide/ui/commands.d +++ b/src/dlangide/ui/commands.d @@ -17,6 +17,7 @@ enum IDEActions : int { FileClose, FileExit, EditPreferences, + BuildConfigurations, BuildWorkspace, RebuildWorkspace, CleanWorkspace, @@ -59,6 +60,7 @@ const Action ACTION_FILE_EXIT = new Action(IDEActions.FileExit, "MENU_FILE_EXIT" const Action ACTION_WORKSPACE_BUILD = new Action(IDEActions.BuildWorkspace, "MENU_BUILD_WORKSPACE_BUILD"c); const Action ACTION_WORKSPACE_REBUILD = new Action(IDEActions.RebuildWorkspace, "MENU_BUILD_WORKSPACE_REBUILD"c); const Action ACTION_WORKSPACE_CLEAN = new Action(IDEActions.CleanWorkspace, "MENU_BUILD_WORKSPACE_CLEAN"c); +const Action ACTION_BUILD_CONFIGURATIONS = new Action(IDEActions.BuildConfigurations, "MENU_BUILD_CONFIGURATIONS"c); const Action ACTION_PROJECT_BUILD = new Action(IDEActions.BuildProject, "MENU_BUILD_PROJECT_BUILD"c, "run-build", KeyCode.F7, 0); const Action ACTION_PROJECT_REBUILD = new Action(IDEActions.RebuildProject, "MENU_BUILD_PROJECT_REBUILD"c, "run-build-clean", KeyCode.F7, KeyFlag.Control); const Action ACTION_PROJECT_CLEAN = new Action(IDEActions.CleanProject, "MENU_BUILD_PROJECT_CLEAN"c, null); diff --git a/src/dlangide/ui/frame.d b/src/dlangide/ui/frame.d index 93be601..e94e9ee 100644 --- a/src/dlangide/ui/frame.d +++ b/src/dlangide/ui/frame.d @@ -374,7 +374,7 @@ class IDEFrame : AppFrame { } return true; }; - cbBuildConfiguration.action = ACTION_PROJECT_BUILD; + cbBuildConfiguration.action = ACTION_BUILD_CONFIGURATIONS; tb.addControl(cbBuildConfiguration); tb.addButtons(ACTION_PROJECT_BUILD); diff --git a/views/res/i18n/en.ini b/views/res/i18n/en.ini index 91529fd..a069f2f 100644 --- a/views/res/i18n/en.ini +++ b/views/res/i18n/en.ini @@ -23,6 +23,7 @@ MENU_EDIT_TOGGLE_LINE_COMMENT=Toggle line comment MENU_EDIT_TOGGLE_BLOCK_COMMENT=Toggle block comment MENU_EDIT_ADVANCED=Advanced... MENU_EDIT_PREFERENCES=&Preferences +MENU_BUILD_CONFIGURATIONS=Build configurations MENU_BUILD=&BUILD MENU_BUILD_WORKSPACE_BUILD=Build Workspace MENU_BUILD_WORKSPACE_REBUILD=Rebuild Workspace