Change storage of window menu label translation

Use member variable instead of global variable
This commit is contained in:
utelle
2018-08-31 23:28:53 +02:00
committed by Vadim Zeitlin
parent 9907ca13f9
commit 9a9176a1be
2 changed files with 34 additions and 14 deletions

View File

@@ -85,6 +85,12 @@ public:
virtual void RemoveMDIChild(wxMDIChildFrame *child);
#endif // wxUSE_MENUS
// called by AddWindowMenu to remember the translation of the window menu label
void SetWindowMenuLabelTranslated();
// called by AddWindowMenu and RemoveWindowMenu to get the last used translation of the window menu label
const wxString GetWindowMenuLabelTranslated() const;
// handlers
// --------
@@ -150,6 +156,9 @@ private:
// it was "handled", see OnActivate() and HandleActivate()
bool m_activationNotHandled;
// holds the current translation for the window menu label
wxString m_windowMenuLabelTranslated;
friend class WXDLLIMPEXP_FWD_CORE wxMDIChildFrame;