mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
48 lines
1.0 KiB
C++
48 lines
1.0 KiB
C++
// Copyright 2013 Dolphin Emulator Project
|
|
// Licensed under GPLv2
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <cstring>
|
|
#include <wx/defs.h>
|
|
#include <wx/grid.h>
|
|
#include <wx/string.h>
|
|
#include <wx/windowid.h>
|
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
class wxWindow;
|
|
|
|
class CDSPRegTable : public wxGridTableBase
|
|
{
|
|
private:
|
|
u64 m_CachedCounter;
|
|
u16 m_CachedRegs[32];
|
|
bool m_CachedRegHasChanged[32];
|
|
|
|
DECLARE_NO_COPY_CLASS(CDSPRegTable);
|
|
|
|
public:
|
|
CDSPRegTable()
|
|
{
|
|
memset(m_CachedRegs, 0, sizeof(m_CachedRegs));
|
|
memset(m_CachedRegHasChanged, 0, sizeof(m_CachedRegHasChanged));
|
|
}
|
|
|
|
int GetNumberCols(void) {return 2;}
|
|
int GetNumberRows(void) {return 32;}
|
|
bool IsEmptyCell(int row, int col) {return false;}
|
|
wxString GetValue(int row, int col);
|
|
void SetValue(int row, int col, const wxString &);
|
|
wxGridCellAttr *GetAttr(int, int, wxGridCellAttr::wxAttrKind);
|
|
void UpdateCachedRegs();
|
|
};
|
|
|
|
class DSPRegisterView : public wxGrid
|
|
{
|
|
public:
|
|
DSPRegisterView(wxWindow* parent, wxWindowID id);
|
|
void Update();
|
|
};
|