convert the register window to wxGrid, allows multiplatform colors. fix wxw debug build error msg.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1454 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Shawn Hoffman
2008-12-09 05:29:14 +00:00
parent 5ede71fb84
commit 668337eb84
8 changed files with 2541 additions and 165 deletions

View File

@ -18,30 +18,35 @@
#ifndef __REGISTERVIEW_h__
#define __REGISTERVIEW_h__
#include <wx/listctrl.h>
#include <wx/grid.h>
#include "Common.h"
class CRegTable
: public wxGridTableBase
{
public:
CRegTable(){;}
int GetNumberCols(void){return 4;}
int GetNumberRows(void){return 16;}
bool IsEmptyCell(int, int){return false;}
wxString GetValue(int, int);
void SetValue(int, int, const wxString &);
wxGridCellAttr *GetAttr(int, int, wxGridCellAttr::wxAttrKind);
private:
DECLARE_NO_COPY_CLASS(CRegTable);
};
class CRegisterView
: public wxListCtrl
: public wxGrid
{
public:
CRegisterView(wxWindow* parent, const wxWindowID id, const wxPoint& pos, const wxSize& size, long style);
CRegisterView(wxWindow* parent, wxWindowID id);
void Update();
void Refresh();
private:
DECLARE_EVENT_TABLE()
u32 m_CachedRegs[32];
bool m_CachedRegHasChanged[32];
#ifdef _WIN32
virtual bool MSWDrawSubItem(wxPaintDC& rPainDC, int item, int subitem);
#endif
};
#endif