OpenASIP
2.0
|
#include <ProximDisassemblyGridTable.hh>
Public Member Functions | |
ProximDisassemblyGridTable () | |
~ProximDisassemblyGridTable () | |
virtual wxString | GetValue (int row, int col) |
virtual int | GetNumberCols () |
virtual int | GetNumberRows () |
virtual wxString | GetColLabelValue (int col) |
virtual wxGridCellAttr * | GetAttr (int row, int col, wxGridCellAttr::wxAttrKind kind) |
void | setStopPointManager (StopPointManager &manager) |
void | setCurrentInstruction (Word address) |
void | setMoveCellAttrProvider (ProximDisasmAttrProvider *attrProvider) |
ProximDisasmAttrProvider * | moveCellAttrProvider () const |
void | showPCArrow () |
void | hidePCArrow () |
Public Member Functions inherited from DisassemblyGridTable | |
DisassemblyGridTable () | |
virtual | ~DisassemblyGridTable () |
virtual bool | IsEmptyCell (int row, int col) |
virtual wxString | GetRowLabelValue (int row) |
virtual void | SetValue (int row, int col, const wxString &value) |
virtual bool | CanHaveAttributes () |
int | rowOfAddress (Word address) |
Word | addressOfRow (int row) |
void | loadProgram (const TTAProgram::Program &program) |
Private Attributes | |
Word | currentInstruction_ |
Program counter value. More... | |
StopPointManager * | bpManager_ |
Stoppoint manager managing program breakpoints. More... | |
bool | showPCArrow_ |
True, if the current istrcution arrow should be displayed. More... | |
ProximDisasmAttrProvider * | attrProvider_ |
Additional Inherited Members | |
Protected Attributes inherited from DisassemblyGridTable | |
const TTAProgram::Program * | program_ |
Program loaded in the table. More... | |
A specialized DisassemblyGridTable class, which adds a column with breakpoint labels and arrow displaying the current instruction to the disassembly grid.
Definition at line 47 of file ProximDisassemblyGridTable.hh.
ProximDisassemblyGridTable::ProximDisassemblyGridTable | ( | ) |
The Constructor.
Definition at line 49 of file ProximDisassemblyGridTable.cc.
ProximDisassemblyGridTable::~ProximDisassemblyGridTable | ( | ) |
The Destructor.
Definition at line 59 of file ProximDisassemblyGridTable.cc.
References attrProvider_.
|
virtual |
Returns cell style attributes for a cell with given row and column.
@paran row Row of the grid cell.
col | Column of the grid cell. |
Definition at line 232 of file ProximDisassemblyGridTable.cc.
References DisassemblyGridTable::addressOfRow(), attrProvider_, ProximToolbox::frontend(), and ProximDisasmAttrProvider::moveCellAttr().
|
virtual |
Returns label for a column.
col | Column index. |
Reimplemented from DisassemblyGridTable.
Definition at line 160 of file ProximDisassemblyGridTable.cc.
References DisassemblyGridTable::GetColLabelValue().
|
virtual |
Returns number of columns in the grid.
Reimplemented from DisassemblyGridTable.
Definition at line 128 of file ProximDisassemblyGridTable.cc.
References ProximToolbox::frontend(), and DisassemblyGridTable::GetNumberCols().
|
virtual |
Returns number of rows in the grid.
Reimplemented from DisassemblyGridTable.
Definition at line 144 of file ProximDisassemblyGridTable.cc.
References ProximToolbox::frontend(), and DisassemblyGridTable::GetNumberRows().
|
virtual |
Returns text value of a cell.
row | Row of the cell. |
col | Column of the cell. |
Reimplemented from DisassemblyGridTable.
Definition at line 86 of file ProximDisassemblyGridTable.cc.
References Breakpoint::address(), bpManager_, currentInstruction_, ProximToolbox::frontend(), DisassemblyGridTable::GetValue(), showPCArrow_, StopPointManager::stopPointCount(), StopPointManager::stopPointHandle(), StopPointManager::stopPointWithHandleConst(), and WxConversion::toWxString().
void ProximDisassemblyGridTable::hidePCArrow | ( | ) |
Turns off showing of the arrow displaying the current instruction.
Definition at line 180 of file ProximDisassemblyGridTable.cc.
References showPCArrow_.
ProximDisasmAttrProvider * ProximDisassemblyGridTable::moveCellAttrProvider | ( | ) | const |
Returns the move cell attribute provider.
Definition at line 219 of file ProximDisassemblyGridTable.cc.
References attrProvider_.
void ProximDisassemblyGridTable::setCurrentInstruction | ( | Word | address | ) |
Sets address of the current instruction.
address | Address of the current instruction. |
Definition at line 191 of file ProximDisassemblyGridTable.cc.
References currentInstruction_.
void ProximDisassemblyGridTable::setMoveCellAttrProvider | ( | ProximDisasmAttrProvider * | attrProvider | ) |
Sets the cell attribute provider for cell's containing move disassembly.
ProximDisassemblyGridTable take ownership of the pointer and deletes the object when it's no longer needed.
attrProvider | New move cell attribute provider. |
Definition at line 204 of file ProximDisassemblyGridTable.cc.
References attrProvider_.
void ProximDisassemblyGridTable::setStopPointManager | ( | StopPointManager & | bpManager | ) |
Sets the breakpoint manager containing program breakpoints to display.
bpManager | Breakpoint manager of the program. |
Definition at line 71 of file ProximDisassemblyGridTable.cc.
References bpManager_.
void ProximDisassemblyGridTable::showPCArrow | ( | ) |
Turns on showing of the arrow displaying the current instruction.
Definition at line 172 of file ProximDisassemblyGridTable.cc.
References showPCArrow_.
|
private |
Definition at line 74 of file ProximDisassemblyGridTable.hh.
Referenced by GetAttr(), moveCellAttrProvider(), setMoveCellAttrProvider(), and ~ProximDisassemblyGridTable().
|
private |
Stoppoint manager managing program breakpoints.
Definition at line 70 of file ProximDisassemblyGridTable.hh.
Referenced by GetValue(), and setStopPointManager().
|
private |
Program counter value.
Definition at line 68 of file ProximDisassemblyGridTable.hh.
Referenced by GetValue(), and setCurrentInstruction().
|
private |
True, if the current istrcution arrow should be displayed.
Definition at line 72 of file ProximDisassemblyGridTable.hh.
Referenced by GetValue(), hidePCArrow(), and showPCArrow().