DolphinWX: Get rid of some magic numbers in MemoryView and MemoryWindow

This commit is contained in:
Lioncash
2015-07-09 07:47:51 -04:00
parent 638b108f44
commit 81878d7b56
3 changed files with 22 additions and 13 deletions

View File

@ -9,6 +9,11 @@
class DebugInterface;
enum class MemoryDataType
{
U8, U16, U32
};
class CMemoryView : public wxControl
{
public:
@ -22,8 +27,12 @@ public:
curAddress = addr;
Refresh();
}
int dataType; // u8,u16,u32
int curAddress; // Will be accessed by parent
void SetDataType(MemoryDataType data_type)
{
dataType = data_type;
Refresh();
}
private:
void OnPaint(wxPaintEvent& event);
@ -47,6 +56,8 @@ private:
bool selecting;
int memory;
int curAddress;
MemoryDataType dataType;
enum EViewAsType
{