summaryrefslogtreecommitdiff
path: root/Source/Core/DebuggerWX/src/CodeView.h
diff options
context:
space:
mode:
authorhrydgard <hrydgard@gmail.com>2008-08-24 20:25:36 +0000
committerhrydgard <hrydgard@gmail.com>2008-08-24 20:25:36 +0000
commitb9f5fd1f4418c47b24d142cd2c67cb399404335d (patch)
tree2a5ef16f8660fbdc53998b366d1ab3cbcb46845b /Source/Core/DebuggerWX/src/CodeView.h
parent1b1f0ecae965e58babaa8092d056f74c4344c610 (diff)
Very simple call tree browser added to code window, bottom left.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@298 8ced0084-cf51-0410-be5f-012b33b47a6e
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();}