OpenASIP
2.0
|
#include <ProximUnitWindow.hh>
Public Member Functions | |
ProximUnitWindow (ProximMainFrame *parent, int id) | |
virtual | ~ProximUnitWindow () |
Public Member Functions inherited from ProximSimulatorWindow | |
virtual void | reset () |
Protected Attributes | |
SimulatorFrontend * | simulator_ |
Simulator instance . More... | |
wxChoice * | unitChoice_ |
Unit choicer widget. More... | |
wxChoice * | modeChoice_ |
Value display mode choicer widget. More... | |
wxListCtrl * | valueList_ |
List widget for the values. More... | |
Static Protected Attributes | |
static const wxString | MODE_INT = _T("Int") |
String for the mode choicer integer mode. More... | |
static const wxString | MODE_UNSIGNED = _T("Unsigned") |
String for the mode choicer unsigned integer mode. More... | |
static const wxString | MODE_HEX = _T("Hex") |
String for the mode choicer hexadecimal mode. More... | |
static const wxString | MODE_BIN = _T("Binary") |
String for the mode choicer binary mode. More... | |
Private Types | |
enum | { ID_UNIT_CHOICE = 10000, ID_MODE_CHOICE, ID_HELP, ID_CLOSE, ID_LINE, ID_VALUE_LIST } |
Private Member Functions | |
void | onProgramLoaded (const SimulatorEvent &event) |
void | onSimulationStop (const SimulatorEvent &event) |
void | onChoice (wxCommandEvent &event) |
void | onClose (wxCommandEvent &event) |
wxSizer * | createContents (wxWindow *parent, bool call_fit, bool set_sizer) |
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 () |
Parent class for windows displaying list information of the Proxim machine state window units.
This window listens to SimulatorEvents and updates the window contents automatically.
Definition at line 51 of file ProximUnitWindow.hh.
|
private |
Enumerator | |
---|---|
ID_UNIT_CHOICE | |
ID_MODE_CHOICE | |
ID_HELP | |
ID_CLOSE | |
ID_LINE | |
ID_VALUE_LIST |
Definition at line 87 of file ProximUnitWindow.hh.
ProximUnitWindow::ProximUnitWindow | ( | ProximMainFrame * | parent, |
int | id | ||
) |
Constructor.
parent | Parent window of the window. |
id | Window identifier. |
Definition at line 67 of file ProximUnitWindow.cc.
|
virtual |
|
private |
Creates the window contents.
Code generated by wxWidgets.
parent | Parent window of the dialog contents. |
call_fit | If true, created contents are fit inside the parent window. |
set_sizer | If true, created top level sizer is set as the parent window contents. |
Definition at line 169 of file ProximUnitWindow.cc.
References ID_CLOSE, ID_HELP, ID_LINE, ID_MODE_CHOICE, ID_UNIT_CHOICE, and ID_VALUE_LIST.
|
private |
Event handler for the dialog mode and unit choicers.
Updates the values list.
Definition at line 139 of file ProximUnitWindow.cc.
References update().
|
private |
Event handler for the Close button.
Closes the window by destroying the parent frame of the window.
Definition at line 149 of file ProximUnitWindow.cc.
|
private |
Event handler which is called when a new program is loaded in the simulator.
Definition at line 109 of file ProximUnitWindow.cc.
References reinitialize().
|
private |
Event handler for simulation stop.
Updates the value list.
Definition at line 128 of file ProximUnitWindow.cc.
References update().
|
privatevirtual |
Called when the unit choicer needs to be reinitialized.
Reimplemented in ProximRegisterWindow, and ProximPortWindow.
Definition at line 101 of file ProximUnitWindow.cc.
Referenced by onProgramLoaded().
|
privatevirtual |
Called when the value list needs to be updated.
Reimplemented in ProximRegisterWindow, and ProximPortWindow.
Definition at line 118 of file ProximUnitWindow.cc.
Referenced by onChoice(), and onSimulationStop().
|
staticprotected |
String for the mode choicer binary mode.
Definition at line 73 of file ProximUnitWindow.hh.
Referenced by ProximRegisterWindow::loadImmediateUnit(), ProximRegisterWindow::loadRegisterFile(), and ProximPortWindow::update().
|
staticprotected |
String for the mode choicer hexadecimal mode.
Definition at line 71 of file ProximUnitWindow.hh.
Referenced by ProximRegisterWindow::loadImmediateUnit(), ProximRegisterWindow::loadRegisterFile(), and ProximPortWindow::update().
|
staticprotected |
String for the mode choicer integer mode.
Definition at line 67 of file ProximUnitWindow.hh.
Referenced by ProximRegisterWindow::loadImmediateUnit(), ProximRegisterWindow::loadRegisterFile(), and ProximPortWindow::update().
|
staticprotected |
String for the mode choicer unsigned integer mode.
Definition at line 69 of file ProximUnitWindow.hh.
Referenced by ProximRegisterWindow::loadImmediateUnit(), ProximRegisterWindow::loadRegisterFile(), and ProximPortWindow::update().
|
protected |
Value display mode choicer widget.
Definition at line 62 of file ProximUnitWindow.hh.
Referenced by ProximRegisterWindow::loadImmediateUnit(), ProximRegisterWindow::loadRegisterFile(), ProximRegisterWindow::ProximRegisterWindow(), ProximPortWindow::update(), and ProximRegisterWindow::update().
|
protected |
Simulator instance .
Definition at line 58 of file ProximUnitWindow.hh.
Referenced by ProximRegisterWindow::loadImmediateUnit(), ProximRegisterWindow::loadRegisterFile(), ProximPortWindow::ProximPortWindow(), ProximRegisterWindow::ProximRegisterWindow(), ProximPortWindow::reinitialize(), ProximRegisterWindow::reinitialize(), ProximPortWindow::update(), and ProximRegisterWindow::update().
|
protected |
Unit choicer widget.
Definition at line 60 of file ProximUnitWindow.hh.
Referenced by ProximPortWindow::reinitialize(), ProximRegisterWindow::reinitialize(), ProximPortWindow::showFunctionUnit(), ProximRegisterWindow::showImmediateUnit(), ProximRegisterWindow::showRegisterFile(), ProximPortWindow::update(), and ProximRegisterWindow::update().
|
protected |
List widget for the values.
Definition at line 64 of file ProximUnitWindow.hh.
Referenced by ProximRegisterWindow::loadImmediateUnit(), ProximRegisterWindow::loadRegisterFile(), ProximPortWindow::ProximPortWindow(), ProximRegisterWindow::ProximRegisterWindow(), and ProximPortWindow::update().