|
OpenASIP 2.2
|
#include <ProximPortWindow.hh>


Public Member Functions | |
| ProximPortWindow (ProximMainFrame *parent, int id) | |
| virtual | ~ProximPortWindow () |
| void | showFunctionUnit (const std::string &name) |
Public Member Functions inherited from ProximUnitWindow | |
| ProximUnitWindow (ProximMainFrame *parent, int id) | |
| virtual | ~ProximUnitWindow () |
Public Member Functions inherited from ProximSimulatorWindow | |
| virtual void | reset () |
Private Member Functions | |
| virtual void | reinitialize () |
| virtual void | update () |
Additional Inherited Members | |
Protected Member Functions inherited from ProximSimulatorWindow | |
| ProximSimulatorWindow (ProximMainFrame *mainFrame, wxWindowID id=-1, wxPoint pos=wxDefaultPosition, wxSize size=wxDefaultSize, long style=wxTAB_TRAVERSAL) | |
| virtual | ~ProximSimulatorWindow () |
Protected Attributes inherited from ProximUnitWindow | |
| SimulatorFrontend * | simulator_ |
| Simulator instance . | |
| wxChoice * | unitChoice_ |
| Unit choicer widget. | |
| wxChoice * | modeChoice_ |
| Value display mode choicer widget. | |
| wxListCtrl * | valueList_ |
| List widget for the values. | |
Static Protected Attributes inherited from ProximUnitWindow | |
| static const wxString | MODE_INT = _T("Int") |
| String for the mode choicer integer mode. | |
| static const wxString | MODE_UNSIGNED = _T("Unsigned") |
| String for the mode choicer unsigned integer mode. | |
| static const wxString | MODE_HEX = _T("Hex") |
| String for the mode choicer hexadecimal mode. | |
| static const wxString | MODE_BIN = _T("Binary") |
| String for the mode choicer binary mode. | |
Proxim subwindow which displays function unit port values.
This window listens to SimulatorEvents and updates the window contents automatically.
Definition at line 47 of file ProximPortWindow.hh.
| ProximPortWindow::ProximPortWindow | ( | ProximMainFrame * | parent, |
| int | id | ||
| ) |
Constructor.
| parent | Parent window of the window. |
| id | Window identifier. |
Definition at line 64 of file ProximPortWindow.cc.
References SimulatorFrontend::hasSimulationEnded(), SimulatorFrontend::isSimulationInitialized(), SimulatorFrontend::isSimulationStopped(), reinitialize(), ProximUnitWindow::simulator_, and ProximUnitWindow::valueList_.

|
virtual |
|
privatevirtual |
Sets the available function unit selections in the function unit choice.
Reimplemented from ProximUnitWindow.
Definition at line 91 of file ProximPortWindow.cc.
References TTAMachine::Machine::controlUnit(), TTAMachine::Machine::Navigator< ComponentType >::count(), TTAMachine::Machine::functionUnitNavigator(), TTAMachine::Machine::Navigator< ComponentType >::item(), SimulatorFrontend::machine(), TTAMachine::Component::name(), ProximUnitWindow::simulator_, WxConversion::toWxString(), ProximUnitWindow::unitChoice_, and update().
Referenced by ProximPortWindow().

| void ProximPortWindow::showFunctionUnit | ( | const std::string & | name | ) |
Changes unit selection to function unit with given name.
| name | Name of the function unit to select. |
Definition at line 117 of file ProximPortWindow.cc.
References WxConversion::toWxString(), ProximUnitWindow::unitChoice_, and update().
Referenced by ProximShowPortsCmd::Do().

|
privatevirtual |
Updates the value list with port values of the selected function unit.
Reimplemented from ProximUnitWindow.
Definition at line 126 of file ProximPortWindow.cc.
References TTAMachine::Machine::controlUnit(), TTAMachine::Machine::functionUnitNavigator(), SimValue::intValue(), TTAMachine::Machine::Navigator< ComponentType >::item(), SimulatorFrontend::machine(), SimulatorFrontend::machineState(), ProximUnitWindow::MODE_BIN, ProximUnitWindow::MODE_HEX, ProximUnitWindow::MODE_INT, ProximUnitWindow::MODE_UNSIGNED, ProximUnitWindow::modeChoice_, TTAMachine::Component::name(), TTAMachine::Port::name(), TTAMachine::FunctionUnit::port(), TTAMachine::Unit::portCount(), MachineState::portState(), ProximUnitWindow::simulator_, Conversion::toBinString(), Conversion::toHexString(), WxConversion::toWxString(), ProximUnitWindow::unitChoice_, SimValue::unsignedValue(), RegisterState::value(), and ProximUnitWindow::valueList_.
Referenced by reinitialize(), and showFunctionUnit().
