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
This commit is contained in:
hrydgard committed 2008-08-24 20:25:36 +00:00
1 parent 1b1f0ecae9
commit b9f5fd1f44
6 files changed
+140 -39

No files matched your search

+5 -4
View File
@@ -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();}