From 2e1920abad9be8ac7032aadda843457e1ef08104 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 24 Nov 2018 14:43:01 +0000 Subject: [PATCH] Add tooltips to library manager dialogs. Fixes: lp:1804930 * https://bugs.launchpad.net/kicad/+bug/1804930 --- eeschema/dialogs/panel_sym_lib_table_base.cpp | 10 ++++++++++ eeschema/dialogs/panel_sym_lib_table_base.fbp | 10 +++++----- pcbnew/dialogs/panel_fp_lib_table_base.cpp | 10 ++++++++++ pcbnew/dialogs/panel_fp_lib_table_base.fbp | 10 +++++----- 4 files changed, 30 insertions(+), 10 deletions(-) diff --git a/eeschema/dialogs/panel_sym_lib_table_base.cpp b/eeschema/dialogs/panel_sym_lib_table_base.cpp index deef93714b..63c4f07005 100644 --- a/eeschema/dialogs/panel_sym_lib_table_base.cpp +++ b/eeschema/dialogs/panel_sym_lib_table_base.cpp @@ -134,21 +134,31 @@ PANEL_SYM_LIB_TABLE_BASE::PANEL_SYM_LIB_TABLE_BASE( wxWindow* parent, wxWindowID bSizer51 = new wxBoxSizer( wxHORIZONTAL ); m_append_button = new wxBitmapButton( m_top_sizer->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 30,30 ), wxBU_AUTODRAW ); + m_append_button->SetToolTip( _("Add empty row to table") ); + bSizer51->Add( m_append_button, 0, wxRIGHT|wxLEFT, 5 ); m_browse_button = new wxBitmapButton( m_top_sizer->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 30,30 ), wxBU_AUTODRAW ); + m_browse_button->SetToolTip( _("Add existing library to table") ); + bSizer51->Add( m_browse_button, 0, wxRIGHT, 5 ); m_move_up_button = new wxBitmapButton( m_top_sizer->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 30,30 ), wxBU_AUTODRAW ); + m_move_up_button->SetToolTip( _("Move up") ); + bSizer51->Add( m_move_up_button, 0, wxRIGHT, 5 ); m_move_down_button = new wxBitmapButton( m_top_sizer->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 30,30 ), wxBU_AUTODRAW ); + m_move_down_button->SetToolTip( _("Move down") ); + bSizer51->Add( m_move_down_button, 0, wxRIGHT, 5 ); bSizer51->Add( 0, 0, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 ); m_delete_button = new wxBitmapButton( m_top_sizer->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 30,30 ), wxBU_AUTODRAW ); + m_delete_button->SetToolTip( _("Remove library from table") ); + bSizer51->Add( m_delete_button, 0, wxRIGHT|wxLEFT, 5 ); diff --git a/eeschema/dialogs/panel_sym_lib_table_base.fbp b/eeschema/dialogs/panel_sym_lib_table_base.fbp index a8dfa4dc60..724ee9320a 100644 --- a/eeschema/dialogs/panel_sym_lib_table_base.fbp +++ b/eeschema/dialogs/panel_sym_lib_table_base.fbp @@ -1082,7 +1082,7 @@ wxBU_AUTODRAW ; forward_declare 0 - + Add empty row to table wxFILTER_NONE wxDefaultValidator @@ -1175,7 +1175,7 @@ wxBU_AUTODRAW ; forward_declare 0 - + Add existing library to table wxFILTER_NONE wxDefaultValidator @@ -1268,7 +1268,7 @@ wxBU_AUTODRAW ; forward_declare 0 - + Move up wxFILTER_NONE wxDefaultValidator @@ -1361,7 +1361,7 @@ wxBU_AUTODRAW ; forward_declare 0 - + Move down wxFILTER_NONE wxDefaultValidator @@ -1464,7 +1464,7 @@ wxBU_AUTODRAW ; forward_declare 0 - + Remove library from table wxFILTER_NONE wxDefaultValidator diff --git a/pcbnew/dialogs/panel_fp_lib_table_base.cpp b/pcbnew/dialogs/panel_fp_lib_table_base.cpp index 5db7495c65..6d23daf28a 100644 --- a/pcbnew/dialogs/panel_fp_lib_table_base.cpp +++ b/pcbnew/dialogs/panel_fp_lib_table_base.cpp @@ -133,21 +133,31 @@ PANEL_FP_LIB_TABLE_BASE::PANEL_FP_LIB_TABLE_BASE( wxWindow* parent, wxWindowID i bButtonsSizer = new wxBoxSizer( wxHORIZONTAL ); m_append_button = new wxBitmapButton( m_top_sizer->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 30,30 ), wxBU_AUTODRAW ); + m_append_button->SetToolTip( _("Add empty row to table") ); + bButtonsSizer->Add( m_append_button, 0, wxRIGHT|wxLEFT, 5 ); m_browse_button = new wxBitmapButton( m_top_sizer->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 30,30 ), wxBU_AUTODRAW ); + m_browse_button->SetToolTip( _("Add existing library to table") ); + bButtonsSizer->Add( m_browse_button, 0, wxRIGHT, 5 ); m_move_up_button = new wxBitmapButton( m_top_sizer->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 30,30 ), wxBU_AUTODRAW ); + m_move_up_button->SetToolTip( _("Move up") ); + bButtonsSizer->Add( m_move_up_button, 0, wxRIGHT, 5 ); m_move_down_button = new wxBitmapButton( m_top_sizer->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 30,30 ), wxBU_AUTODRAW ); + m_move_down_button->SetToolTip( _("Move down") ); + bButtonsSizer->Add( m_move_down_button, 0, wxRIGHT, 5 ); bButtonsSizer->Add( 0, 0, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 ); m_delete_button = new wxBitmapButton( m_top_sizer->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 30,30 ), wxBU_AUTODRAW ); + m_delete_button->SetToolTip( _("Remove library from table") ); + bButtonsSizer->Add( m_delete_button, 0, wxRIGHT|wxLEFT, 5 ); diff --git a/pcbnew/dialogs/panel_fp_lib_table_base.fbp b/pcbnew/dialogs/panel_fp_lib_table_base.fbp index 96c0eca5f2..eb8df649d9 100644 --- a/pcbnew/dialogs/panel_fp_lib_table_base.fbp +++ b/pcbnew/dialogs/panel_fp_lib_table_base.fbp @@ -1082,7 +1082,7 @@ wxBU_AUTODRAW ; forward_declare 0 - + Add empty row to table wxFILTER_NONE wxDefaultValidator @@ -1175,7 +1175,7 @@ wxBU_AUTODRAW ; forward_declare 0 - + Add existing library to table wxFILTER_NONE wxDefaultValidator @@ -1268,7 +1268,7 @@ wxBU_AUTODRAW ; forward_declare 0 - + Move up wxFILTER_NONE wxDefaultValidator @@ -1361,7 +1361,7 @@ wxBU_AUTODRAW ; forward_declare 0 - + Move down wxFILTER_NONE wxDefaultValidator @@ -1464,7 +1464,7 @@ wxBU_AUTODRAW ; forward_declare 0 - + Remove library from table wxFILTER_NONE wxDefaultValidator