107 wxBoxSizer* sizer =
new wxBoxSizer(wxVERTICAL);
119 wxSizer* sizer = GetSizer();
127 codeGrid_ =
new wxGrid(
this, -1, wxDefaultPosition, wxDefaultSize);
132 codeGrid_->SetSelectionMode(wxGrid::wxGridSelectRows);
141 codeGrid_->SetDefaultCellFont(*wxSMALL_FONT);
157 wxSizer* sizer = GetSizer();
213 wxMenu* contextMenu =
new wxMenu();
219 contextMenu->AppendSeparator();
221 contextMenu->AppendSeparator();
237 unsigned bpAddress = bp->
address();
238 if (bpAddress == address) {
240 wxMenu* bpSubMenu =
new wxMenu();
245 wxString infoLabel = _T(
"info");
246 bpSubMenu->Append(itemID, infoLabel);
252 wxString deleteLabel = _T(
"delete");
253 bpSubMenu->Append(itemID, deleteLabel);
259 "disablebp " + handleStr;
260 wxString disableLabel = _T(
"disable");
261 bpSubMenu->Append(itemID, disableLabel);
264 "enablebp " + handleStr;
265 wxString enableLabel = _T(
"enable");
266 bpSubMenu->Append(itemID, enableLabel);
272 contextMenu->Append(0, menuLabel, bpSubMenu);
277 PopupMenu(contextMenu, event.GetPosition());
292 wxGetApp().simulation()->lineReader().input(command);
306 wxGetApp().simulation()->lineReader().input(command);
320 wxGetApp().simulation()->lineReader().input(command);
329 Word pc = wxGetApp().simulation()->frontend()->programCounter();
381 wxGetApp().simulation()->lineReader().input(command);
#define assert(condition)
END_EVENT_TABLE() using namespace IDF
find Finds info of the inner loops in the program
EVT_MENU_RANGE(ProximConstants::COMMAND_FIRST, ProximConstants::COMMAND_LAST, ProximMainFrame::onCommandEvent) EVT_MENU_RANGE(ProximConstants
#define EVT_SIMULATOR_COMMAND_DONE(id, fn)
#define EVT_SIMULATOR_PROGRAM_LOADED(id, fn)
#define EVT_SIMULATOR_STOP(id, fn)
virtual InstructionAddress address() const
static std::string toString(const T &source)
void loadProgram(const TTAProgram::Program &program)
int rowOfAddress(Word address)
Word addressOfRow(int row)
static const std::string SCL_RUN_UNTIL
Command for running until specified instruciton is encoutnered.
static const std::string SCL_SET_BREAKPOINT
Command for setting breakpoints in the simulator control language.
static const std::string SCL_SET_TEMP_BP
Command for setting temporary breakpointss in the sim.con.language.
void setMoveCellAttrProvider(ProximDisasmAttrProvider *attrProvider)
void setStopPointManager(StopPointManager &manager)
void setCurrentInstruction(Word address)
ProximDisasmAttrProvider * moveCellAttrProvider() const
void onSimulatorStop(const SimulatorEvent &event)
std::map< unsigned, std::string > menuCommand_
A map which contains command strings for context menu items.
void onSimulatorCommand(SimulatorEvent &event)
void loadProgram(const TTAProgram::Program &program)
ProximDisassemblyGridTable * codeTable_
Grid table which handles on-the-fly disassembly of the loaded program.
void setMoveAttrProvider(ProximDisasmAttrProvider *attrProvider)
void showAddress(unsigned address)
void onRunUntil(wxCommandEvent &event)
void onSetTempBp(wxCommandEvent &event)
virtual ~ProximDisassemblyWindow()
wxGrid * codeGrid_
The grid disapleying the disassembly.
void onMappedMenuCommand(wxCommandEvent &event)
void onRightClick(wxGridEvent &event)
void onSetBreakpoint(wxCommandEvent &event)
void onProgramLoaded(const SimulatorEvent &event)
StopPointManager & stopPointManager()
unsigned int stopPointCount()
const StopPoint & stopPointWithHandleConst(unsigned int handle) const
unsigned int stopPointHandle(unsigned int index)
virtual bool isEnabled() const
static wxString toWxString(const std::string &source)