mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
CodeWindow: Hide GetMenuBar()
This eliminates public usage of the GetMenuBar() function in CodeWindow. The benefit of this is it also gets rid of the need to perform direct access across the config dialog and the main frame. It also gets rid of the use of the main_frame global. GetMenuBar() will be removed entirely from CodeWindow in a follow-up that also removes any related remnants of code made obsolete with its removal.
This commit is contained in:
@ -83,9 +83,6 @@ public:
|
||||
void Load();
|
||||
void Save();
|
||||
|
||||
// Parent interaction
|
||||
wxMenuBar* GetMenuBar();
|
||||
|
||||
bool UseInterpreter();
|
||||
bool BootToPause();
|
||||
bool AutomaticStart();
|
||||
@ -97,7 +94,6 @@ public:
|
||||
void NotifyMapLoaded();
|
||||
void OpenPages();
|
||||
|
||||
// Menu bar
|
||||
// FIXME: This belongs in a separate class.
|
||||
void TogglePanel(int id, bool show);
|
||||
wxPanel* GetUntypedPanel(int id) const;
|
||||
@ -127,6 +123,9 @@ public:
|
||||
int iNbAffiliation[IDM_DEBUG_WINDOW_LIST_END - IDM_DEBUG_WINDOW_LIST_START];
|
||||
|
||||
private:
|
||||
// Parent interaction
|
||||
wxMenuBar* GetMenuBar();
|
||||
|
||||
void OnCPUMode(wxCommandEvent& event);
|
||||
|
||||
void OnChangeFont(wxCommandEvent& event);
|
||||
|
Reference in New Issue
Block a user