OpenASIP
2.0
|
#include <ProximToolbox.hh>
Static Public Member Functions | |
static const TTAMachine::Machine & | machine () |
static const TTAProgram::Program & | program () |
static ProximMainFrame * | mainFrame () |
static ProximMachineStateWindow * | machineStateWindow () |
static ProximDisassemblyWindow * | disassemblyWindow () |
static void | addFramedWindow (wxWindow *window, const wxString &title, bool stayOnTop=false, const wxSize &minSize=wxSize(100, 100)) |
static SimulatorInterpreter * | interpreter () |
static TracedSimulatorFrontend * | frontend () |
static ProximLineReader & | lineReader () |
static bool | testExpression (wxWindow *parent, const std::string &expression) |
static bool | testCondition (wxWindow *parent, const std::string &condition) |
Protected Member Functions | |
ProximToolbox () | |
Instantiation not allowed. More... | |
Set of helper functions to access Proxim windows and simulation.
Definition at line 56 of file ProximToolbox.hh.
|
protected |
|
static |
Adds a new simulator window in it's own floating frame.
window | Window to add. |
title | Title of the frame. |
Definition at line 176 of file ProximToolbox.cc.
References mainFrame().
Referenced by ProximNewPortWindowCmd::Do(), ProximNewRegisterWindowCmd::Do(), ProximFindCmd::Do(), ProximShowRegistersCmd::Do(), ProximShowPortsCmd::Do(), and ProximMainFrame::onToggleWindow().
|
static |
Returns pointer to the program disassembly window.
Returns NULL if the disassembly window does not exist.
Definition at line 150 of file ProximToolbox.cc.
References ProximConstants::ID_DISASSEMBLY_WINDOW.
Referenced by DisasmTopCountAttrProvider::DisasmTopCountAttrProvider(), ClearDisassemblyHighlightCmd::Do(), HighlightExecPercentageCmd::Do(), HighlightTopExecCountsCmd::Do(), ProximBreakpointWindow::onBreakpointLookup(), FindWindow::onFindNext(), FindWindow::onFindPrev(), FindWindow::onInputText(), and DisasmExecCountFrame::onSelection().
|
static |
Returns pointer to the simulator's frontend.
Definition at line 223 of file ProximToolbox.cc.
Referenced by HighlightExecPercentageCmd::Do(), ProximSimulatorSettingsCmd::Do(), HighlightTopExecCountsCmd::Do(), ProximFindCmd::Do(), ProximFUDetailsCmd::Do(), ProximBusDetailsCmd::Do(), ProximFUPortDetailsCmd::Do(), ProximIUDetailsCmd::Do(), ProximRFDetailsCmd::Do(), ProximSocketDetailsCmd::Do(), ProximDisassemblyGridTable::GetAttr(), ProximDisassemblyGridTable::GetNumberCols(), ProximDisassemblyGridTable::GetNumberRows(), ProximDisassemblyGridTable::GetValue(), ClearDisassemblyHighlightCmd::isEnabled(), HighlightExecPercentageCmd::isEnabled(), HighlightTopExecCountsCmd::isEnabled(), ProximDisassemblyWindow::loadProgram(), machine(), ProximBreakpointWindow::onAddBreakpoint(), ProximBreakpointWindow::onAddWatch(), ProximDisassemblyWindow::onRightClick(), ProximMainFrame::onSimulatorEvent(), ProximMachineStateWindow::onToggleUtilizations(), program(), ProximBreakpointWindow::ProximBreakpointWindow(), ProximExecuteFileCmd::ProximExecuteFileCmd(), ProximQuitCmd::ProximQuitCmd(), ProximBreakpointWindow::refreshStopPoints(), ProximMachineStateWindow::setUtilizationHighlights(), and ProximMainFrame::updateSimulationStatus().
|
static |
Returns pointer to the simulator control language interpreter used by the simulator backend.
Definition at line 207 of file ProximToolbox.cc.
References ProximSimulationThread::interpreter().
Referenced by testCondition(), and testExpression().
|
static |
Returns reference to the line reader used by the simulator engine.
Definition at line 238 of file ProximToolbox.cc.
Referenced by ProximSimulatorSettingsCmd::Do(), ProximExecuteFileCmd::Do(), ProximQuitCmd::Do(), AddBreakpointDialog::onOK(), WatchPropertiesDialog::onOK(), AddWatchDialog::onOK(), BreakpointPropertiesDialog::onOK(), and ProximMainFrame::onToggleWindow().
|
static |
Returns the simulated machine.
Returns NullMachine, if a machine is not loaded in the simulator.
Definition at line 69 of file ProximToolbox.cc.
References frontend(), TTAMachine::NullMachine::instance(), and SimulatorFrontend::machine().
Referenced by AddWatchDialog::initialize(), AddWatchDialog::onASChoice(), AddWatchDialog::onFUChoice(), AddWatchDialog::onRFChoice(), ProximMachineStateWindow::ProximMachineStateWindow(), and ProximMachineStateWindow::setUtilizationHighlights().
|
static |
Returns pointer to the machine state window.
Returns NULL if the machine state window does not exist.
Definition at line 123 of file ProximToolbox.cc.
References ProximConstants::ID_MACHINE_STATE_WINDOW.
Referenced by ProximComponentStatusCmd::Do(), ProximSetMachineWinStatusCmd::Do(), ProximFUPortDetailsCmd::Do(), ProximRFDetailsCmd::Do(), ProximSocketDetailsCmd::Do(), ProximIUDetailsCmd::Do(), ProximBusDetailsCmd::Do(), ProximFUDetailsCmd::Do(), and ProximMachineCanvasTool::onMouseEvent().
|
static |
Returns pointer to the application main frame.
Definition at line 105 of file ProximToolbox.cc.
Referenced by addFramedWindow(), ProximNewPortWindowCmd::Do(), ProximNewRegisterWindowCmd::Do(), ProximFindCmd::Do(), ProximOptionsCmd::Do(), ProximShowPortsCmd::Do(), ProximShowRegistersCmd::Do(), and ProximSimulatorWindow::~ProximSimulatorWindow().
|
static |
Returns the simulated program.
Returns NullProgram, if a program is not loaded in the simulator.
Definition at line 88 of file ProximToolbox.cc.
References frontend(), TTAProgram::NullProgram::instance(), and SimulatorFrontend::program().
Referenced by ProximSetMachineWinStatusCmd::Do(), FindWindow::find(), ProximDebuggerWindow::onProgramLoaded(), ProximDisassemblyWindow::onProgramLoaded(), ProximDebuggerWindow::ProximDebuggerWindow(), and ProximDebuggerWindow::updateAnnotations().
|
static |
Tests condition script validity.
An error dialog is displayed if the script is not legal.
parent | Parent window for the possible error dialog to display. |
condition | Condition script to test. |
Definition at line 280 of file ProximToolbox.cc.
References Exception::errorMessage(), Script::execute(), interpreter(), and WxConversion::toWxString().
Referenced by WatchPropertiesDialog::onOK(), and BreakpointPropertiesDialog::onOK().
|
static |
Tests expression script validity.
An error dialog is displayed if the script is not legal.
parent | Parent window for the possible error dialog to display. |
expression | Expression script to test. |
Definition at line 252 of file ProximToolbox.cc.
References Exception::errorMessage(), Script::execute(), interpreter(), and WxConversion::toWxString().
Referenced by AddWatchDialog::onOK().