From 965482bd7f94d63be19cc80eaa1d7c57b5e4b66d Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Thu, 14 Jan 2021 22:34:56 +0000 Subject: [PATCH] Improve some tooltips. Fixes https://gitlab.com/kicad/code/kicad/issues/7116 --- pcbnew/dialogs/panel_setup_mask_and_paste_base.cpp | 4 ++++ pcbnew/dialogs/panel_setup_mask_and_paste_base.fbp | 4 ++-- pcbnew/toolbars_pcb_editor.cpp | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/pcbnew/dialogs/panel_setup_mask_and_paste_base.cpp b/pcbnew/dialogs/panel_setup_mask_and_paste_base.cpp index af33c21f9e..3ce5fe7276 100644 --- a/pcbnew/dialogs/panel_setup_mask_and_paste_base.cpp +++ b/pcbnew/dialogs/panel_setup_mask_and_paste_base.cpp @@ -66,6 +66,8 @@ PANEL_SETUP_MASK_AND_PASTE_BASE::PANEL_SETUP_MASK_AND_PASTE_BASE( wxWindow* pare fgGridSolderMaskSizer->Add( m_MaskMinWidthLabel, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 ); m_MaskMinWidthCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); + m_MaskMinWidthCtrl->SetToolTip( _("Minimum distance between openings in the solder mask. Pad openings closer than this distance will be plotted as a single opening.") ); + fgGridSolderMaskSizer->Add( m_MaskMinWidthCtrl, 0, wxEXPAND|wxALL, 5 ); m_MaskMinWidthUnits = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 ); @@ -103,6 +105,8 @@ PANEL_SETUP_MASK_AND_PASTE_BASE::PANEL_SETUP_MASK_AND_PASTE_BASE( wxWindow* pare fgGridSolderMaskSizer->Add( m_staticTextRatio, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 ); m_SolderPasteMarginRatioCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); + m_SolderPasteMarginRatioCtrl->SetToolTip( _("Additional clearance as a percentage of the pad size.") ); + fgGridSolderMaskSizer->Add( m_SolderPasteMarginRatioCtrl, 0, wxEXPAND|wxALL, 5 ); m_SolderPasteRatioMarginUnits = new wxStaticText( this, wxID_ANY, _("%"), wxDefaultPosition, wxDefaultSize, 0 ); diff --git a/pcbnew/dialogs/panel_setup_mask_and_paste_base.fbp b/pcbnew/dialogs/panel_setup_mask_and_paste_base.fbp index 452f19b5ad..d80ea35479 100644 --- a/pcbnew/dialogs/panel_setup_mask_and_paste_base.fbp +++ b/pcbnew/dialogs/panel_setup_mask_and_paste_base.fbp @@ -520,7 +520,7 @@ 0 - + Minimum distance between openings in the solder mask. Pad openings closer than this distance will be plotted as a single opening. wxFILTER_NONE wxDefaultValidator @@ -922,7 +922,7 @@ 0 - + Additional clearance as a percentage of the pad size. wxFILTER_NONE wxDefaultValidator diff --git a/pcbnew/toolbars_pcb_editor.cpp b/pcbnew/toolbars_pcb_editor.cpp index d4aa3f8de9..87a7f99d1b 100644 --- a/pcbnew/toolbars_pcb_editor.cpp +++ b/pcbnew/toolbars_pcb_editor.cpp @@ -507,8 +507,8 @@ void PCB_EDIT_FRAME::ReCreateAuxiliaryToolbar() // Creates box to display and choose strategy to handle tracks an vias sizes: m_auxiliaryToolBar->AddTool( ID_AUX_TOOLBAR_PCB_SELECT_AUTO_WIDTH, wxEmptyString, KiScaledBitmap( auto_track_width_xpm, this ), - _( "Auto track width: when starting on an existing track " - "use its width\notherwise, use current width setting" ), + _( "When routing from an existing track use its width instead " + "of the current width setting" ), wxITEM_CHECK ); // Add the box to display and select the current grid size: