OpenASIP
2.0
|
#include <SimulationInfoDialog.hh>
Public Member Functions | |
SimulationInfoDialog (wxWindow *parent, OperationContext *context) | |
virtual | ~SimulationInfoDialog () |
virtual void | handleEvent (OSEdInformer::EventId id) |
Public Member Functions inherited from OSEdListener | |
OSEdListener () | |
virtual | ~OSEdListener () |
Private Types | |
enum | { ID_LISTCTRL } |
Private Member Functions | |
SimulationInfoDialog (const SimulationInfoDialog &) | |
Copying not allowed. More... | |
SimulationInfoDialog & | operator= (const SimulationInfoDialog &) |
Assignment not allowed. More... | |
wxSizer * | createContents (wxWindow *parent, bool call_fit, bool set_sizer) |
virtual bool | TransferDataToWindow () |
void | setTexts () |
void | updateList () |
Private Attributes | |
wxListCtrl * | infoList_ |
List for showing simulation statistics. More... | |
SimulateDialog * | parent_ |
Parent window. More... | |
OperationContext * | context_ |
Operation context for retrieving simulation data. More... | |
Dialog that holds additional information about simulation.
Definition at line 48 of file SimulationInfoDialog.hh.
|
private |
SimulationInfoDialog::SimulationInfoDialog | ( | wxWindow * | parent, |
OperationContext * | context | ||
) |
Constructor.
parent | Parent window. |
context | Operation context. |
Definition at line 55 of file SimulationInfoDialog.cc.
References createContents(), OSEdConstants::DEFAULT_COLUMN_WIDTH, ID_LISTCTRL, infoList_, OSEdTextGenerator::instance(), parent_, setTexts(), Texts::TextGenerator::text(), WxConversion::toWxString(), OSEdTextGenerator::TXT_LABEL_PC, OSEdTextGenerator::TXT_LABEL_RA, OSEdTextGenerator::TXT_LABEL_SYS_CALL_HANDLER, and OSEdTextGenerator::TXT_LABEL_SYS_CALL_NUMBER.
|
virtual |
Destructor.
Definition at line 108 of file SimulationInfoDialog.cc.
References DialogPosition::DIALOG_SIMULATION_INFO, and DialogPosition::setPosition().
|
private |
Copying not allowed.
|
private |
Creates the contents of the dialog.
NOTE! This function was generated by wxDesigner.
parent | Parent window. |
call_fit | If true fits the contenst inside the dialog. |
set_sizer | If true sets the main sizer as dialog contents. |
Definition at line 192 of file SimulationInfoDialog.cc.
References ID_LISTCTRL.
Referenced by SimulationInfoDialog().
|
virtual |
Updates the list which contains information about simulation.
This method is called when trigger button is pushed in parent dialog (SimulateDialog).
id | The id of the event. |
Implements OSEdListener.
Definition at line 166 of file SimulationInfoDialog.cc.
References context_, OSEdInformer::EVENT_REGISTER, OSEdInformer::EVENT_RESET, OperationContext::programCounter(), OperationContext::returnAddress(), and updateList().
|
private |
Assignment not allowed.
|
private |
Sets the texts for the widgets.
Definition at line 93 of file SimulationInfoDialog.cc.
References OSEdTextGenerator::instance(), Texts::TextGenerator::text(), WxConversion::toWxString(), and OSEdTextGenerator::TXT_SIMULATION_INFO_DIALOG_TITLE.
Referenced by SimulationInfoDialog().
|
privatevirtual |
Transfer data to dialog.
Definition at line 121 of file SimulationInfoDialog.cc.
References updateList().
|
private |
Updates the list of information.
Definition at line 130 of file SimulationInfoDialog.cc.
References context_, SimulateDialog::formattedValue(), infoList_, NullSimValue::instance(), parent_, OperationContext::programCounter(), OperationContext::returnAddress(), WxConversion::toWxString(), and SimValue::uIntWordValue().
Referenced by handleEvent(), and TransferDataToWindow().
|
private |
Operation context for retrieving simulation data.
Definition at line 78 of file SimulationInfoDialog.hh.
Referenced by handleEvent(), and updateList().
|
private |
List for showing simulation statistics.
Definition at line 74 of file SimulationInfoDialog.hh.
Referenced by SimulationInfoDialog(), and updateList().
|
private |
Parent window.
Definition at line 76 of file SimulationInfoDialog.hh.
Referenced by SimulationInfoDialog(), and updateList().