mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
CodeWindow: Eliminate explicit menu item updating from CodeWindow
Gets rid of more menu-related code from CodeWindow and puts it back in CFrame where it belongs. This turns the previous menu update function within CodeWindow into one that simply updates the debugger font for its managed controls. It also improves how the font is actually updated. Previously, fonts would change, however this wouldn't actually reflect onto the respective controls until a refresh or update event occurred. Since codeview, callstack, symbols, callers, and calls windows are all managed by a wxAuiManager instance, calling Update() on it after the font has been set will reflect font changes immediately.
This commit is contained in:
@ -179,6 +179,8 @@ private:
|
||||
|
||||
void BindEvents();
|
||||
void BindMenuBarEvents();
|
||||
void BindDebuggerMenuBarEvents();
|
||||
void BindDebuggerMenuBarUpdateEvents();
|
||||
|
||||
wxToolBar* OnCreateToolBar(long style, wxWindowID id, const wxString& name) override;
|
||||
wxMenuBar* CreateMenuBar() const;
|
||||
@ -235,6 +237,11 @@ private:
|
||||
|
||||
void OnReloadThemeBitmaps(wxCommandEvent& event);
|
||||
|
||||
void OnEnableMenuItemIfCoreInitialized(wxUpdateUIEvent& event);
|
||||
void OnEnableMenuItemIfCoreUninitialized(wxUpdateUIEvent& event);
|
||||
void OnEnableMenuItemIfCorePaused(wxUpdateUIEvent& event);
|
||||
void OnEnableMenuItemIfCPUCanStep(wxUpdateUIEvent& event);
|
||||
|
||||
void OnOpen(wxCommandEvent& event); // File menu
|
||||
void DoOpen(bool Boot);
|
||||
void OnRefresh(wxCommandEvent& event);
|
||||
|
Reference in New Issue
Block a user