OpenASIP  2.0
ProximDisassemblyGridTable.hh
Go to the documentation of this file.
1 /*
2  Copyright (c) 2002-2009 Tampere University.
3 
4  This file is part of TTA-Based Codesign Environment (TCE).
5 
6  Permission is hereby granted, free of charge, to any person obtaining a
7  copy of this software and associated documentation files (the "Software"),
8  to deal in the Software without restriction, including without limitation
9  the rights to use, copy, modify, merge, publish, distribute, sublicense,
10  and/or sell copies of the Software, and to permit persons to whom the
11  Software is furnished to do so, subject to the following conditions:
12 
13  The above copyright notice and this permission notice shall be included in
14  all copies or substantial portions of the Software.
15 
16  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19  THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22  DEALINGS IN THE SOFTWARE.
23  */
24 /**
25  * @file ProximDisassemblyGridTable.hh
26  *
27  * Declaration of ProximDisassemblyGridTable class.
28  *
29  * @author Veli-Pekka Jääskeläinen 2006 (vjaaskel-no.spam-cs.tut.fi)
30  * @note rating: red
31  */
32 
33 #ifndef TTA_PROXIM_DISASSEMBLY_GRID_TABLE_HH
34 #define TTA_PROXIM_DISASSEMBLY_GRID_TABLE_HH
35 
36 #include "DisassemblyGridTable.hh"
37 
38 class StopPointManager;
39 class InstructionMemory;
41 
42 /**
43  * A specialized DisassemblyGridTable class, which adds a column with
44  * breakpoint labels and arrow displaying the current instruction
45  * to the disassembly grid.
46  */
48 public:
51 
52  virtual wxString GetValue(int row, int col);
53  virtual int GetNumberCols();
54  virtual int GetNumberRows();
55  virtual wxString GetColLabelValue(int col);
56  virtual wxGridCellAttr* GetAttr(
57  int row, int col, wxGridCellAttr::wxAttrKind kind);
58 
60  void setCurrentInstruction(Word address);
63  void showPCArrow();
64  void hidePCArrow();
65 
66 private:
67  /// Program counter value.
69  /// Stoppoint manager managing program breakpoints.
71  /// True, if the current istrcution arrow should be displayed.
73  ///
75 };
76 
77 #endif
ProximDisassemblyGridTable::GetNumberRows
virtual int GetNumberRows()
Definition: ProximDisassemblyGridTable.cc:144
ProximDisassemblyGridTable::ProximDisassemblyGridTable
ProximDisassemblyGridTable()
Definition: ProximDisassemblyGridTable.cc:49
ProximDisassemblyGridTable::moveCellAttrProvider
ProximDisasmAttrProvider * moveCellAttrProvider() const
Definition: ProximDisassemblyGridTable.cc:219
InstructionMemory
Definition: InstructionMemory.hh:54
ProximDisassemblyGridTable::GetColLabelValue
virtual wxString GetColLabelValue(int col)
Definition: ProximDisassemblyGridTable.cc:160
ProximDisassemblyGridTable::showPCArrow
void showPCArrow()
Definition: ProximDisassemblyGridTable.cc:172
ProximDisasmAttrProvider
Definition: ProximDisasmAttrProvider.hh:44
ProximDisassemblyGridTable::currentInstruction_
Word currentInstruction_
Program counter value.
Definition: ProximDisassemblyGridTable.hh:68
ProximDisassemblyGridTable::showPCArrow_
bool showPCArrow_
True, if the current istrcution arrow should be displayed.
Definition: ProximDisassemblyGridTable.hh:72
ProximDisassemblyGridTable::~ProximDisassemblyGridTable
~ProximDisassemblyGridTable()
Definition: ProximDisassemblyGridTable.cc:59
StopPointManager
Definition: StopPointManager.hh:50
ProximDisassemblyGridTable::GetNumberCols
virtual int GetNumberCols()
Definition: ProximDisassemblyGridTable.cc:128
DisassemblyGridTable
Definition: DisassemblyGridTable.hh:54
ProximDisassemblyGridTable::setCurrentInstruction
void setCurrentInstruction(Word address)
Definition: ProximDisassemblyGridTable.cc:191
ProximDisassemblyGridTable::attrProvider_
ProximDisasmAttrProvider * attrProvider_
Definition: ProximDisassemblyGridTable.hh:74
ProximDisassemblyGridTable::bpManager_
StopPointManager * bpManager_
Stoppoint manager managing program breakpoints.
Definition: ProximDisassemblyGridTable.hh:70
ProximDisassemblyGridTable::hidePCArrow
void hidePCArrow()
Definition: ProximDisassemblyGridTable.cc:180
ProximDisassemblyGridTable::setStopPointManager
void setStopPointManager(StopPointManager &manager)
Definition: ProximDisassemblyGridTable.cc:71
ProximDisassemblyGridTable::GetAttr
virtual wxGridCellAttr * GetAttr(int row, int col, wxGridCellAttr::wxAttrKind kind)
Definition: ProximDisassemblyGridTable.cc:232
ProximDisassemblyGridTable
Definition: ProximDisassemblyGridTable.hh:47
ProximDisassemblyGridTable::GetValue
virtual wxString GetValue(int row, int col)
Definition: ProximDisassemblyGridTable.cc:86
ProximDisassemblyGridTable::setMoveCellAttrProvider
void setMoveCellAttrProvider(ProximDisasmAttrProvider *attrProvider)
Definition: ProximDisassemblyGridTable.cc:204
DisassemblyGridTable.hh