Browse Source

Fix a few more missing language-change updates.

Fixes: lp:1779513
* https://bugs.launchpad.net/kicad/+bug/1779513

(cherry picked from commit 8389c5c)
pull/17/head
Jeff Young 8 years ago
parent
commit
6a7e6e7735
  1. 16
      eeschema/lib_edit_frame.cpp
  2. 2
      eeschema/lib_edit_frame.h
  3. 17
      eeschema/sch_edit_frame.cpp
  4. 3
      eeschema/sch_edit_frame.h

16
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();
}

2
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;

17
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();
}

3
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;

Loading…
Cancel
Save