From d25c9b43d967298fac02b992f81edea81e7d721c Mon Sep 17 00:00:00 2001 From: D4p0up Date: Sun, 3 Jun 2018 23:42:04 +0200 Subject: [PATCH] Eeschema: Added help string to select button. Added highlight text string to help_common_strings.h MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------2.14.1" This is a multi-part message in MIME format. --------------2.14.1 Content-Type: text/plain; charset=UTF-8; format=fixed Content-Transfer-Encoding: 8bit Fixes: lp:1497737 * https://bugs.launchpad.net/kicad/+bug/1497737 modified: ../../eeschema/help_common_strings.h modified: ../../eeschema/tool_sch.cpp --- eeschema/help_common_strings.h | 2 ++ eeschema/tool_sch.cpp | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) --------------2.14.1 Content-Type: text/x-patch; name="0001-Eeschema.patch" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="0001-Eeschema.patch" diff --git a/eeschema/help_common_strings.h b/eeschema/help_common_strings.h index 6d87a5168..203912fb2 100644 --- a/eeschema/help_common_strings.h +++ b/eeschema/help_common_strings.h @@ -48,6 +48,8 @@ #define HELP_DELETE_ITEMS _( "Delete item" ) // Schematic editor: +#define HELP_SELECT _( "Select item" ) +#define HELP_HIGHLIGHT _( "Highlight net" ) #define HELP_FIND _( "Find symbols and text" ) #define HELP_REPLACE _( "Find and replace text in schematic items" ) #define HELP_PLACE_COMPONENTS _( "Place symbol" ) diff --git a/eeschema/tool_sch.cpp b/eeschema/tool_sch.cpp index c8e2f04af..ed181626a 100644 --- a/eeschema/tool_sch.cpp +++ b/eeschema/tool_sch.cpp @@ -197,11 +197,11 @@ void SCH_EDIT_FRAME::ReCreateVToolbar() // Set up toolbar m_drawToolBar->AddTool( ID_NO_TOOL_SELECTED, wxEmptyString, KiScaledBitmap( cursor_xpm, this ), - wxEmptyString, wxITEM_CHECK ); + HELP_SELECT, wxITEM_CHECK ); m_drawToolBar->AddTool( ID_HIGHLIGHT, wxEmptyString, KiScaledBitmap( net_highlight_schematic_xpm, this ), - _( "Highlight net" ), wxITEM_CHECK ); + HELP_HIGHLIGHT, wxITEM_CHECK ); m_drawToolBar->AddTool( ID_SCH_PLACE_COMPONENT, wxEmptyString, KiScaledBitmap( add_component_xpm, this ), HELP_PLACE_COMPONENTS, --------------2.14.1--