Go to the documentation of this file.
34 #ifndef TTA_MEMORY_CONTROL_HH
35 #define TTA_MEMORY_CONTROL_HH
59 const wxPoint& pos = wxDefaultPosition,
60 const wxSize& size = wxDefaultSize,
61 const wxString& name = _T(
"MemoryControl"));
68 void highlight(Word address,
unsigned count,
const wxColour& colour);
106 void onGoTo(wxCommandEvent& event);
110 void onSize(wxSizeEvent&);
112 void onChar(wxKeyEvent& event);
155 DECLARE_EVENT_TABLE()
void onChar(wxKeyEvent &event)
MemoryGridTable * table_
Grid contents.
static const std::string DATA_FLOAT
Data label for float format.
void highlight(Word address, unsigned count, const wxColour &colour)
unsigned mausPerCell_
Number of maus displayed in a cell.
wxChoice * dataMode_
Mode of the data in the cells.
static const std::string DATA_HEX
Data label for hexa format.
wxChoice * sizeMode_
Mode of the data size.
wxGrid * grid_
Grid in which the contents of the memory is written.
void onSizeModeChanged(wxCommandEvent &)
MemoryControl(wxWindow *parent, Memory *memory, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, const wxString &name=_T("MemoryControl"))
static const std::string DATA_BIN
Data label for binary format.
void onGoTo(wxCommandEvent &event)
Word end_
End point of memory.
static const std::string DATA_SIGNED_INT
Data label for signed int format.
static const std::string SIZE_EIGHT_MAUS
Size label for word size.
wxChoice * widthMode_
Grid width choicer.
int MAUSize_
Size of the minimum addressable unit.
void onWriteMemory(wxGridEvent &event)
MemoryControl & operator=(const MemoryControl &)
Assignment not allowed.
static const std::string SIZE_TWO_MAUS
Size label for half word size.
void setMemory(Memory *memory)
void onDataModeChanged(wxCommandEvent &)
static const std::string DATA_DOUBLE
Data label for double format.
void onWidthChanged(wxCommandEvent &)
static const wxString WIDTH_16
Table width label for 16 column mode.
wxBoxSizer * sizer_
Top level sizer of the window.
std::vector< unsigned > highlights_
static const wxString WIDTH_8
Table width label for 8 column mode.
static const wxString WIDTH_32
Table width label for 32 column mode.
Memory * memory_
Used for access to memory contents.
static const std::string SIZE_FOUR_MAUS
Size label for word size.
Word start_
Start point of memory.
static const std::string DATA_UNSIGNED_INT
Data label for unsigned int format.
void onSize(wxSizeEvent &)
static const std::string SIZE_MAU
Size label for byte size.
wxString goToAddress_
Go to address.