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:
Lioncash
2016-11-03 23:43:35 -04:00
parent 5ae6c21c2e
commit 5d4c714662
4 changed files with 19 additions and 18 deletions

View File

@ -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);