2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Copyright 2013-2015, Rene Gollent, rene@gollent.com.
4 * Distributed under the terms of the MIT License.
6 #ifndef REGISTERS_VIEW_H
7 #define REGISTERS_VIEW_H
11 #include "table/Table.h"
19 class RegistersView
: public BGroupView
, private TableListener
{
21 RegistersView(Architecture
* architecture
);
24 static RegistersView
* Create(Architecture
* architecture
);
27 virtual void MessageReceived(BMessage
* message
);
29 void SetCpuState(CpuState
* cpuState
);
31 void LoadSettings(const BMessage
& settings
);
32 status_t
SaveSettings(BMessage
& settings
);
35 class RegisterValueColumn
;
36 class RegisterTableModel
;
40 virtual void TableRowInvoked(Table
* table
, int32 rowIndex
);
42 virtual void TableCellMouseDown(Table
* table
, int32 rowIndex
,
43 int32 columnIndex
, BPoint screenWhere
,
47 status_t
_AddFormatItem(BMenu
* menu
, int32 format
);
50 Architecture
* fArchitecture
;
52 Table
* fRegisterTable
;
53 RegisterTableModel
* fRegisterTableModel
;
57 #endif // REGISTERS_VIEW_H