submitting just because I want to move these files

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3515 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hrydgard 2009-06-20 20:21:35 +00:00
parent a19f907b32
commit b7e5fb6ef2
2 changed files with 47 additions and 48 deletions

View File

@ -21,6 +21,7 @@
#include "HW/Memmap.h" // for Write_U32 #include "HW/Memmap.h" // for Write_U32
#include "Common.h" #include "Common.h"
#include "StringUtil.h" #include "StringUtil.h"
#include "Debugger/DebugInterface.h"
#include "Host.h" #include "Host.h"
#include "CodeView.h" #include "CodeView.h"

View File

@ -20,71 +20,69 @@
#include "Debugger.h" #include "Debugger.h"
#include "Common.h" #include "Common.h"
#include "Debugger/DebugInterface.h"
#include <vector> #include <vector>
DECLARE_EVENT_TYPE(wxEVT_CODEVIEW_CHANGE, -1); DECLARE_EVENT_TYPE(wxEVT_CODEVIEW_CHANGE, -1);
class CCodeView class DebugInterface;
: public wxControl
class CCodeView : public wxControl
{ {
public: public:
CCodeView(DebugInterface* debuginterface, wxWindow* parent, wxWindowID Id = -1, const wxSize& Size = wxDefaultSize); CCodeView(DebugInterface* debuginterface, wxWindow* parent, wxWindowID Id = -1, const wxSize& Size = wxDefaultSize);
wxSize DoGetBestSize() const; wxSize DoGetBestSize() const;
void OnPaint(wxPaintEvent& event); void OnPaint(wxPaintEvent& event);
void OnErase(wxEraseEvent& event); void OnErase(wxEraseEvent& event);
void OnMouseDown(wxMouseEvent& event); void OnMouseDown(wxMouseEvent& event);
void OnMouseMove(wxMouseEvent& event); void OnMouseMove(wxMouseEvent& event);
void OnMouseUpL(wxMouseEvent& event); void OnMouseUpL(wxMouseEvent& event);
void OnMouseUpR(wxMouseEvent& event); void OnMouseUpR(wxMouseEvent& event);
void OnPopupMenu(wxCommandEvent& event); void OnPopupMenu(wxCommandEvent& event);
void InsertBlrNop(int); void InsertBlrNop(int);
u32 GetSelection() {return(selection);} u32 GetSelection() {return(selection);}
struct BlrStruct // for IDM_INSERTBLR struct BlrStruct // for IDM_INSERTBLR
{ {
u32 Address; u32 Address;
u32 OldValue; u32 OldValue;
}; };
std::vector<BlrStruct> BlrList; std::vector<BlrStruct> BlrList;
void Center(u32 addr) void Center(u32 addr)
{ {
curAddress = addr; curAddress = addr;
selection = addr; selection = addr;
redraw(); redraw();
} }
private: private:
void RaiseEvent();
int YToAddress(int y);
void RaiseEvent(); u32 AddrToBranch(u32 addr);
int YToAddress(int y);
u32 AddrToBranch(u32 addr); void redraw() {Refresh();}
void redraw() {Refresh();} DebugInterface* debugger;
int curAddress;
int align;
int rowHeight;
DebugInterface* debugger; u32 selection;
u32 oldSelection;
bool selectionChanged;
bool selecting;
bool hasFocus;
bool showHex;
int curAddress; int lx, ly;
int align; void _MoveTo(int x, int y) {lx = x; ly = y;}
int rowHeight; void _LineTo(wxPaintDC &dc, int x, int y);
u32 selection; DECLARE_EVENT_TABLE()
u32 oldSelection;
bool selectionChanged;
bool selecting;
bool hasFocus;
bool showHex;
int lx, ly;
void _MoveTo(int x, int y) {lx = x; ly = y;}
void _LineTo(wxPaintDC &dc, int x, int y);
DECLARE_EVENT_TABLE()
}; };
#endif /*CODEVIEW_H_*/ #endif /*CODEVIEW_H_*/