OpenASIP
2.0
|
#include <SimulatorSettingsDialog.hh>
Public Member Functions | |
SimulatorSettingsDialog (wxWindow *parent, wxWindowID id, SimulatorFrontend &simulator, ProximLineReader &lineReader) | |
virtual | ~SimulatorSettingsDialog () |
Private Types | |
enum | { ID_EXEC_TRACE = 10000, ID_BUS_TRACE, ID_PT_TRACKING, ID_RF_TRACKING, ID_FU_CONFLICT_DETECTION, ID_LABEL_HISTORY_SIZE, ID_PROFILE_DATA_SAVING, ID_UTILIZATION_DATA_SAVING, ID_NEXT_INSTRUCTION_PRINTING, ID_SIMULATION_TIME_STATISTICS, ID_HISTORY_SIZE, ID_SAVE_HISTORY, ID_HISTORY_FILE, ID_LINE } |
Widget IDs. More... | |
Private Member Functions | |
virtual bool | TransferDataToWindow () |
wxSizer * | createContents (wxWindow *parent, bool set_sizer, bool call_fit) |
void | onOK (wxCommandEvent &event) |
Private Attributes | |
SimulatorFrontend & | simulator_ |
Frontend of the simulator to configure. More... | |
ProximLineReader & | lineReader_ |
Line reader to configure. More... | |
bool | execTrace_ |
Execution trace enabled/disabled. More... | |
bool | busTrace_ |
Bus trace enabled/disabled. More... | |
bool | ptTrace_ |
Procedure transfer tracing enabled/disabled. More... | |
bool | rfTrace_ |
Register file access tracing enabled/disabled. More... | |
bool | fuConflictDetection_ |
FU conflict detection enabled/disabled. More... | |
bool | profileDataSaving_ |
Profile data saving enabled/disabled. More... | |
bool | utilizationDataSaving_ |
Utilization data saving enabled/disabled. More... | |
bool | nextInstructionPrinting_ |
Next instruction printing enabled/disabled. More... | |
bool | simulationTimeStatistics_ |
Profile data saving enabled/disabled. More... | |
bool | historySave_ |
Input history log file enabled/disabled. More... | |
int | historySize_ |
History log max size. More... | |
wxString | historyFile_ |
History log file name. More... | |
Dialog for modifying simulator settings.
Definition at line 44 of file SimulatorSettingsDialog.hh.
|
private |
Widget IDs.
Definition at line 59 of file SimulatorSettingsDialog.hh.
SimulatorSettingsDialog::SimulatorSettingsDialog | ( | wxWindow * | parent, |
wxWindowID | id, | ||
SimulatorFrontend & | simulator, | ||
ProximLineReader & | lineReader | ||
) |
The Constructor.
parent | Parent window of the dialog. |
id | Dialog window identifier. |
simulator | Simulator frontend to configure. |
Definition at line 54 of file SimulatorSettingsDialog.cc.
|
virtual |
|
private |
Creates the dialog widgets.
Source code generated by wxDesigner. Do not modify by hand!
parent | Parent dialog of the widgets. |
call_fit | If true, resize the dialog to fit the widgets. |
set_sizer | If true, set the created widgets as the dialog contents. |
Definition at line 237 of file SimulatorSettingsDialog.cc.
References ID_BUS_TRACE, ID_EXEC_TRACE, ID_FU_CONFLICT_DETECTION, ID_HISTORY_FILE, ID_HISTORY_SIZE, ID_LABEL_HISTORY_SIZE, ID_LINE, ID_NEXT_INSTRUCTION_PRINTING, ID_PROFILE_DATA_SAVING, ID_PT_TRACKING, ID_RF_TRACKING, ID_SAVE_HISTORY, ID_SIMULATION_TIME_STATISTICS, and ID_UTILIZATION_DATA_SAVING.
|
private |
Updates the simulator settings and closes the dialog when the OK-button is pressed.
Definition at line 127 of file SimulatorSettingsDialog.cc.
References busTrace_, SimulatorFrontend::busTracing(), execTrace_, SimulatorFrontend::executionTracing(), fuConflictDetection_, SimulatorFrontend::fuResourceConflictDetection(), historyFile_, historySave_, historySize_, ProximLineReader::input(), ProximLineReader::inputHistoryFilename(), LineReader::inputHistoryMaxLength(), lineReader_, SimulatorFrontend::nextInstructionPrinting(), nextInstructionPrinting_, SimulatorFrontend::procedureTransferTracing(), SimulatorFrontend::profileDataSaving(), profileDataSaving_, ptTrace_, SimulatorFrontend::rfAccessTracing(), rfTrace_, LineReader::saveInputHistoryToFile(), ProximConstants::SCL_DELIM, ProximConstants::SCL_SET, ProximConstants::SCL_SETTING_BUS_TRACE, ProximConstants::SCL_SETTING_EXEC_TRACE, ProximConstants::SCL_SETTING_FU_CONFLICT_DETECTION, ProximConstants::SCL_SETTING_HISTORY_FILE, ProximConstants::SCL_SETTING_HISTORY_SAVE, ProximConstants::SCL_SETTING_HISTORY_SIZE, ProximConstants::SCL_SETTING_NEXT_INSTRUCTION_PRINTING, ProximConstants::SCL_SETTING_PROCEDURE_TRANSFER_TRACE, ProximConstants::SCL_SETTING_PROFILE_DATA_SAVING, ProximConstants::SCL_SETTING_RF_TRACE, ProximConstants::SCL_SETTING_SIMULATION_TIME_STATISTICS, ProximConstants::SCL_SETTING_UTILIZATION_DATA_SAVING, SimulatorFrontend::simulationTimeStatistics(), simulationTimeStatistics_, simulator_, WxConversion::toString(), Conversion::toString(), SimulatorFrontend::utilizationDataSaving(), and utilizationDataSaving_.
|
privatevirtual |
Transfers settings data from the simulator frontend to the dialog widgets.
Definition at line 99 of file SimulatorSettingsDialog.cc.
References busTrace_, SimulatorFrontend::busTracing(), execTrace_, SimulatorFrontend::executionTracing(), fuConflictDetection_, SimulatorFrontend::fuResourceConflictDetection(), historyFile_, historySave_, historySize_, ProximLineReader::inputHistoryFilename(), LineReader::inputHistoryMaxLength(), lineReader_, SimulatorFrontend::nextInstructionPrinting(), nextInstructionPrinting_, SimulatorFrontend::procedureTransferTracing(), SimulatorFrontend::profileDataSaving(), profileDataSaving_, ptTrace_, SimulatorFrontend::rfAccessTracing(), rfTrace_, LineReader::saveInputHistoryToFile(), SimulatorFrontend::simulationTimeStatistics(), simulationTimeStatistics_, simulator_, WxConversion::toWxString(), SimulatorFrontend::utilizationDataSaving(), and utilizationDataSaving_.
|
private |
Bus trace enabled/disabled.
Definition at line 84 of file SimulatorSettingsDialog.hh.
Referenced by onOK(), and TransferDataToWindow().
|
private |
Execution trace enabled/disabled.
Definition at line 82 of file SimulatorSettingsDialog.hh.
Referenced by onOK(), and TransferDataToWindow().
|
private |
FU conflict detection enabled/disabled.
Definition at line 90 of file SimulatorSettingsDialog.hh.
Referenced by onOK(), and TransferDataToWindow().
|
private |
History log file name.
Definition at line 106 of file SimulatorSettingsDialog.hh.
Referenced by onOK(), and TransferDataToWindow().
|
private |
Input history log file enabled/disabled.
Definition at line 102 of file SimulatorSettingsDialog.hh.
Referenced by onOK(), and TransferDataToWindow().
|
private |
History log max size.
Definition at line 104 of file SimulatorSettingsDialog.hh.
Referenced by onOK(), and TransferDataToWindow().
|
private |
Line reader to configure.
Definition at line 79 of file SimulatorSettingsDialog.hh.
Referenced by onOK(), and TransferDataToWindow().
|
private |
Next instruction printing enabled/disabled.
Definition at line 97 of file SimulatorSettingsDialog.hh.
Referenced by onOK(), and TransferDataToWindow().
|
private |
Profile data saving enabled/disabled.
Definition at line 93 of file SimulatorSettingsDialog.hh.
Referenced by onOK(), and TransferDataToWindow().
|
private |
Procedure transfer tracing enabled/disabled.
Definition at line 86 of file SimulatorSettingsDialog.hh.
Referenced by onOK(), and TransferDataToWindow().
|
private |
Register file access tracing enabled/disabled.
Definition at line 88 of file SimulatorSettingsDialog.hh.
Referenced by onOK(), and TransferDataToWindow().
|
private |
Profile data saving enabled/disabled.
Definition at line 99 of file SimulatorSettingsDialog.hh.
Referenced by onOK(), and TransferDataToWindow().
|
private |
Frontend of the simulator to configure.
Definition at line 77 of file SimulatorSettingsDialog.hh.
Referenced by onOK(), and TransferDataToWindow().
|
private |
Utilization data saving enabled/disabled.
Definition at line 95 of file SimulatorSettingsDialog.hh.
Referenced by onOK(), and TransferDataToWindow().