summaryrefslogtreecommitdiff
path: root/Source/Core/DebuggerWX/src/CodeView.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/DebuggerWX/src/CodeView.h')
-rw-r--r--Source/Core/DebuggerWX/src/CodeView.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/Core/DebuggerWX/src/CodeView.h b/Source/Core/DebuggerWX/src/CodeView.h
index 506dcb2c99..0ff8c696d7 100644
--- a/Source/Core/DebuggerWX/src/CodeView.h
+++ b/Source/Core/DebuggerWX/src/CodeView.h
@@ -24,11 +24,12 @@
#include <wx/wx.h>
+DECLARE_EVENT_TYPE(wxEVT_CODEVIEW_CHANGE, -1);
+
class CCodeView
: public wxControl
{
public:
-
CCodeView(DebugInterface* debuginterface, wxWindow* parent, wxWindowID Id = -1, const wxSize& Size = wxDefaultSize);
wxSize DoGetBestSize() const;
void OnPaint(wxPaintEvent& event);
@@ -39,21 +40,21 @@ class CCodeView
void OnMouseUpR(wxMouseEvent& event);
void OnPopupMenu(wxCommandEvent& event);
-
u32 GetSelection() {return(selection);}
-
void Center(u32 addr)
{
curAddress = addr;
+ selection = addr;
redraw();
}
-
private:
+ void RaiseEvent();
int YToAddress(int y);
+ u32 AddrToBranch(u32 addr);
void redraw() {Refresh();}