DolphinWX: Make some debugger functions/vars private

Some classes expose things that aren't used outside of them (and in some cases, shouldn't be exposed).
This commit is contained in:
Lioncash 2015-04-27 20:36:09 -04:00
parent 4bf4778cd7
commit 263e64e939
6 changed files with 49 additions and 46 deletions

View File

@ -30,19 +30,10 @@ class CCodeView : public wxControl
public: public:
CCodeView(DebugInterface* debuginterface, SymbolDB *symbol_db, CCodeView(DebugInterface* debuginterface, SymbolDB *symbol_db,
wxWindow* parent, wxWindowID Id = wxID_ANY); wxWindow* parent, wxWindowID Id = wxID_ANY);
void OnPaint(wxPaintEvent& event);
void OnErase(wxEraseEvent& event);
void OnScrollWheel(wxMouseEvent& event);
void OnMouseDown(wxMouseEvent& event);
void OnMouseMove(wxMouseEvent& event);
void OnMouseUpL(wxMouseEvent& event);
void OnMouseUpR(wxMouseEvent& event);
void OnPopupMenu(wxCommandEvent& event);
void InsertBlrNop(int);
void ToggleBreakpoint(u32 address); void ToggleBreakpoint(u32 address);
u32 GetSelection() u32 GetSelection() const
{ {
return m_selection; return m_selection;
} }
@ -60,6 +51,16 @@ public:
} }
private: private:
void OnPaint(wxPaintEvent& event);
void OnErase(wxEraseEvent& event);
void OnScrollWheel(wxMouseEvent& event);
void OnMouseDown(wxMouseEvent& event);
void OnMouseMove(wxMouseEvent& event);
void OnMouseUpL(wxMouseEvent& event);
void OnMouseUpR(wxMouseEvent& event);
void OnPopupMenu(wxCommandEvent& event);
void InsertBlrNop(int);
void RaiseEvent(); void RaiseEvent();
int YToAddress(int y); int YToAddress(int y);

View File

@ -75,10 +75,6 @@ public:
void UpdateManager(); void UpdateManager();
// Menu bar // Menu bar
// -------------------
void OnCPUMode(wxCommandEvent& event); // CPU Mode menu
void OnJITOff(wxCommandEvent& event);
void ToggleCodeWindow(bool bShow); void ToggleCodeWindow(bool bShow);
void ToggleRegisterWindow(bool bShow); void ToggleRegisterWindow(bool bShow);
void ToggleWatchWindow(bool bShow); void ToggleWatchWindow(bool bShow);
@ -88,14 +84,6 @@ public:
void ToggleSoundWindow(bool bShow); void ToggleSoundWindow(bool bShow);
void ToggleVideoWindow(bool bShow); void ToggleVideoWindow(bool bShow);
void OnChangeFont(wxCommandEvent& event);
void OnCodeStep(wxCommandEvent& event);
void OnAddrBoxChange(wxCommandEvent& event);
void OnSymbolsMenu(wxCommandEvent& event);
void OnJitMenu(wxCommandEvent& event);
void OnProfilerMenu(wxCommandEvent& event);
// Sub dialogs // Sub dialogs
CRegisterWindow* m_RegisterWindow; CRegisterWindow* m_RegisterWindow;
CWatchWindow* m_WatchWindow; CWatchWindow* m_WatchWindow;
@ -111,6 +99,16 @@ public:
int iNbAffiliation[IDM_CODE_WINDOW - IDM_LOG_WINDOW + 1]; int iNbAffiliation[IDM_CODE_WINDOW - IDM_LOG_WINDOW + 1];
private: private:
void OnCPUMode(wxCommandEvent& event);
void OnChangeFont(wxCommandEvent& event);
void OnCodeStep(wxCommandEvent& event);
void OnAddrBoxChange(wxCommandEvent& event);
void OnSymbolsMenu(wxCommandEvent& event);
void OnJitMenu(wxCommandEvent& event);
void OnProfilerMenu(wxCommandEvent& event);
void OnSymbolListChange(wxCommandEvent& event); void OnSymbolListChange(wxCommandEvent& event);
void OnSymbolListContextMenu(wxContextMenuEvent& event); void OnSymbolListContextMenu(wxContextMenuEvent& event);
void OnCallstackListChange(wxCommandEvent& event); void OnCallstackListChange(wxCommandEvent& event);

View File

@ -16,16 +16,9 @@ class CMemoryView : public wxControl
{ {
public: public:
CMemoryView(DebugInterface* debuginterface, wxWindow* parent); CMemoryView(DebugInterface* debuginterface, wxWindow* parent);
void OnPaint(wxPaintEvent& event);
void OnMouseDownL(wxMouseEvent& event);
void OnMouseMove(wxMouseEvent& event);
void OnMouseUpL(wxMouseEvent& event);
void OnMouseDownR(wxMouseEvent& event);
void OnScrollWheel(wxMouseEvent& event);
void OnPopupMenu(wxCommandEvent& event);
u32 GetSelection() { return selection ; } u32 GetSelection() const { return selection ; }
int GetMemoryType() { return memory; } int GetMemoryType() const { return memory; }
void Center(u32 addr) void Center(u32 addr)
{ {
@ -36,6 +29,14 @@ public:
int curAddress; // Will be accessed by parent int curAddress; // Will be accessed by parent
private: private:
void OnPaint(wxPaintEvent& event);
void OnMouseDownL(wxMouseEvent& event);
void OnMouseMove(wxMouseEvent& event);
void OnMouseUpL(wxMouseEvent& event);
void OnMouseDownR(wxMouseEvent& event);
void OnScrollWheel(wxMouseEvent& event);
void OnPopupMenu(wxCommandEvent& event);
int YToAddress(int y); int YToAddress(int y);
void OnResize(wxSizeEvent& event); void OnResize(wxSizeEvent& event);

View File

@ -32,12 +32,6 @@ public:
long style = wxTAB_TRAVERSAL | wxBORDER_NONE, long style = wxTAB_TRAVERSAL | wxBORDER_NONE,
const wxString& name = _("Memory")); const wxString& name = _("Memory"));
wxCheckBox* chk8;
wxCheckBox* chk16;
wxCheckBox* chk32;
wxButton* btnSearch;
wxCheckBox* chkAscii;
wxCheckBox* chkHex;
void Save(IniFile& _IniFile) const; void Save(IniFile& _IniFile) const;
void Load(IniFile& _IniFile); void Load(IniFile& _IniFile);
@ -49,13 +43,6 @@ public:
private: private:
DECLARE_EVENT_TABLE() DECLARE_EVENT_TABLE()
CMemoryView* memview;
wxListBox* symbols;
wxButton* buttonGo;
wxTextCtrl* addrbox;
wxTextCtrl* valbox;
void U8(wxCommandEvent& event); void U8(wxCommandEvent& event);
void U16(wxCommandEvent& event); void U16(wxCommandEvent& event);
void U32(wxCommandEvent& event); void U32(wxCommandEvent& event);
@ -71,4 +58,18 @@ private:
void OnDumpMemory(wxCommandEvent& event); void OnDumpMemory(wxCommandEvent& event);
void OnDumpMem2(wxCommandEvent& event); void OnDumpMem2(wxCommandEvent& event);
void OnDumpFakeVMEM(wxCommandEvent& event); void OnDumpFakeVMEM(wxCommandEvent& event);
wxCheckBox* chk8;
wxCheckBox* chk16;
wxCheckBox* chk32;
wxButton* btnSearch;
wxCheckBox* chkAscii;
wxCheckBox* chkHex;
CMemoryView* memview;
wxListBox* symbols;
wxButton* buttonGo;
wxTextCtrl* addrbox;
wxTextCtrl* valbox;
}; };

View File

@ -71,10 +71,11 @@ class CRegisterView : public wxGrid
public: public:
CRegisterView(wxWindow* parent, wxWindowID id = wxID_ANY); CRegisterView(wxWindow* parent, wxWindowID id = wxID_ANY);
void Update() override; void Update() override;
private:
void OnMouseDownR(wxGridEvent& event); void OnMouseDownR(wxGridEvent& event);
void OnPopupMenu(wxCommandEvent& event); void OnPopupMenu(wxCommandEvent& event);
private:
u32 m_selectedAddress = 0; u32 m_selectedAddress = 0;
// Owned by wx. Deleted implicitly upon destruction. // Owned by wx. Deleted implicitly upon destruction.

View File

@ -46,10 +46,11 @@ class CWatchView : public wxGrid
public: public:
CWatchView(wxWindow* parent, wxWindowID id = wxID_ANY); CWatchView(wxWindow* parent, wxWindowID id = wxID_ANY);
void Update() override; void Update() override;
private:
void OnMouseDownR(wxGridEvent& event); void OnMouseDownR(wxGridEvent& event);
void OnPopupMenu(wxCommandEvent& event); void OnPopupMenu(wxCommandEvent& event);
private:
u32 m_selectedAddress = 0; u32 m_selectedAddress = 0;
u32 m_selectedRow = 0; u32 m_selectedRow = 0;
CWatchTable* m_watch_table; CWatchTable* m_watch_table;