From ee92fa51bc24257ab4e5e8c34f5e244fa777b379 Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Wed, 20 Mar 2019 15:54:30 -0400 Subject: [PATCH] Symbol editor: improve tooltip in symbol properties dialog. Make the "Define as power symbol" checkbox tooltip more descriptive so the user has a better understanding of enabling this option. Fixes lp:1804932 https://bugs.launchpad.net/kicad/+bug/1804932 (cherry picked from commit a7c8df5666a943fc5eb6b6abb915572444c75e2a) --- eeschema/dialogs/dialog_edit_component_in_lib_base.cpp | 4 ++-- eeschema/dialogs/dialog_edit_component_in_lib_base.fbp | 4 +++- eeschema/dialogs/dialog_edit_component_in_lib_base.h | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/eeschema/dialogs/dialog_edit_component_in_lib_base.cpp b/eeschema/dialogs/dialog_edit_component_in_lib_base.cpp index 60bdfce02a..3b3da75eb4 100644 --- a/eeschema/dialogs/dialog_edit_component_in_lib_base.cpp +++ b/eeschema/dialogs/dialog_edit_component_in_lib_base.cpp @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version Dec 1 2018) +// C++ code generated with wxFormBuilder (version Mar 20 2019) // http://www.wxformbuilder.org/ // // PLEASE DO *NOT* EDIT THIS FILE! @@ -168,7 +168,7 @@ DIALOG_EDIT_COMPONENT_IN_LIBRARY_BASE::DIALOG_EDIT_COMPONENT_IN_LIBRARY_BASE( wx sbSizerSymbol->Add( m_AsConvertButt, 0, wxRIGHT|wxLEFT, 5 ); m_OptionPower = new wxCheckBox( sbSizerSymbol->GetStaticBox(), wxID_ANY, _("Define as power symbol"), wxDefaultPosition, wxDefaultSize, 0 ); - m_OptionPower->SetToolTip( _("Check this option when the symbol is a power symbol") ); + m_OptionPower->SetToolTip( _("Setting this option makes the symbol in question appear in the\n\"add power port\" dialog. It will lock the value text to protect it\nfrom editing in Eeschema. The symbol will not be included in\nthe BOM and cannot be assigned a footprint.") ); sbSizerSymbol->Add( m_OptionPower, 0, wxALL, 5 ); diff --git a/eeschema/dialogs/dialog_edit_component_in_lib_base.fbp b/eeschema/dialogs/dialog_edit_component_in_lib_base.fbp index b1c70914ce..0b3cbb3a90 100644 --- a/eeschema/dialogs/dialog_edit_component_in_lib_base.fbp +++ b/eeschema/dialogs/dialog_edit_component_in_lib_base.fbp @@ -14,6 +14,7 @@ dialog_edit_component_in_lib_base 1000 none + 1 DIALOG_EDIT_COMPONENT_IN_LIBRARY_FBP @@ -25,6 +26,7 @@ 1 1 UI + 0 0 0 @@ -1155,7 +1157,7 @@ 0 - Check this option when the symbol is a power symbol + Setting this option makes the symbol in question appear in the "add power port" dialog. It will lock the value text to protect it from editing in Eeschema. The symbol will not be included in the BOM and cannot be assigned a footprint. wxFILTER_NONE wxDefaultValidator diff --git a/eeschema/dialogs/dialog_edit_component_in_lib_base.h b/eeschema/dialogs/dialog_edit_component_in_lib_base.h index 34ceb05a64..ac2e03bf97 100644 --- a/eeschema/dialogs/dialog_edit_component_in_lib_base.h +++ b/eeschema/dialogs/dialog_edit_component_in_lib_base.h @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version Dec 1 2018) +// C++ code generated with wxFormBuilder (version Mar 20 2019) // http://www.wxformbuilder.org/ // // PLEASE DO *NOT* EDIT THIS FILE!