From 6a7e6e773547c95f48def1d8d6728ff5bfde9491 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 30 Jun 2018 23:38:04 +0100 Subject: [PATCH] Fix a few more missing language-change updates. Fixes: lp:1779513 * https://bugs.launchpad.net/kicad/+bug/1779513 (cherry picked from commit 8389c5c) --- eeschema/lib_edit_frame.cpp | 16 ++++++++++++++++ eeschema/lib_edit_frame.h | 2 ++ eeschema/sch_edit_frame.cpp | 17 +++++++++++++++++ eeschema/sch_edit_frame.h | 3 +++ 4 files changed, 38 insertions(+) diff --git a/eeschema/lib_edit_frame.cpp b/eeschema/lib_edit_frame.cpp index 938a6c3a4f..b7e1551292 100644 --- a/eeschema/lib_edit_frame.cpp +++ b/eeschema/lib_edit_frame.cpp @@ -1788,3 +1788,19 @@ void LIB_EDIT_FRAME::CommonSettingsChanged() Layout(); SendSizeEvent(); } + + +void LIB_EDIT_FRAME::ShowChangedLanguage() +{ + // call my base class + SCH_BASE_FRAME::ShowChangedLanguage(); + + // tooltips in toolbars + ReCreateHToolbar(); + ReCreateVToolbar(); + ReCreateOptToolbar(); + + // status bar + UpdateMsgPanel(); +} + diff --git a/eeschema/lib_edit_frame.h b/eeschema/lib_edit_frame.h index 518f933f0d..6c87f3950c 100644 --- a/eeschema/lib_edit_frame.h +++ b/eeschema/lib_edit_frame.h @@ -720,6 +720,8 @@ public: */ void CommonSettingsChanged() override; + void ShowChangedLanguage() override; + private: ///> Helper screen used when no part is loaded SCH_SCREEN* m_dummyScreen; diff --git a/eeschema/sch_edit_frame.cpp b/eeschema/sch_edit_frame.cpp index d73c135fba..2a696d912d 100644 --- a/eeschema/sch_edit_frame.cpp +++ b/eeschema/sch_edit_frame.cpp @@ -1508,3 +1508,20 @@ void SCH_EDIT_FRAME::CommonSettingsChanged() Layout(); SendSizeEvent(); } + + +void SCH_EDIT_FRAME::ShowChangedLanguage() +{ + // call my base class + SCH_BASE_FRAME::ShowChangedLanguage(); + + // tooltips in toolbars + ReCreateHToolbar(); + ReCreateVToolbar(); + ReCreateOptToolbar(); + + // status bar + UpdateMsgPanel(); +} + + diff --git a/eeschema/sch_edit_frame.h b/eeschema/sch_edit_frame.h index 0565be4f10..5f90359573 100644 --- a/eeschema/sch_edit_frame.h +++ b/eeschema/sch_edit_frame.h @@ -1523,6 +1523,9 @@ public: */ void CommonSettingsChanged() override; + void ShowChangedLanguage() override; + + ///> Probe cursor, used by circuit simulator const static wxCursor CURSOR_PROBE;