|
OpenASIP 2.2
|
#include <ValidateMachineDialog.hh>


Public Member Functions | |
| ValidateMachineDialog (wxWindow *parent, const TTAMachine::Machine &machine) | |
| ~ValidateMachineDialog () | |
Private Types | |
| enum | { ID_VALIDATE = 10000 , ID_CLOSE , ID_RESULTS , ID_LINE , ID_CHECK_ANSI_C , ID_CHECK_GLOBAL_CONN_REGISTER } |
Private Member Functions | |
| wxSizer * | createContents (wxWindow *parent, bool call_fit, bool set_sizer) |
| void | onValidate (wxCommandEvent &event) |
| void | onClose (wxCommandEvent &event) |
| void | onCheck (wxCommandEvent &event) |
Private Attributes | |
| const TTAMachine::Machine & | machine_ |
| Machine to be validated. | |
| wxHtmlWindow * | resultsWindow_ |
| HTML-widget for validation result texts. | |
| wxCheckBox * | checkAnsiC_ |
| wxCheckBox * | checkGlobalConnReg_ |
Dialog for listing and editing address spaces of the machine.
Definition at line 47 of file ValidateMachineDialog.hh.
|
private |
| Enumerator | |
|---|---|
| ID_VALIDATE | |
| ID_CLOSE | |
| ID_RESULTS | |
| ID_LINE | |
| ID_CHECK_ANSI_C | |
| ID_CHECK_GLOBAL_CONN_REGISTER | |
Definition at line 68 of file ValidateMachineDialog.hh.
| ValidateMachineDialog::ValidateMachineDialog | ( | wxWindow * | parent, |
| const TTAMachine::Machine & | machine | ||
| ) |
The Constructor.
| parent | Parent window of the dialog. |
| machine | Machine containing the address spaces. |
Definition at line 59 of file ValidateMachineDialog.cc.
| ValidateMachineDialog::~ValidateMachineDialog | ( | ) |
|
private |
Creates the dialog window contents.
This method was generated with wxDesigner, thus the ugly code and too long lines.
| parent | The dialog window. |
| call_fit | If true, fits the contents inside the dialog. |
| set_sizer | If true, sets the main sizer as dialog contents. |
Definition at line 181 of file ValidateMachineDialog.cc.
References ID_CHECK_ANSI_C, ID_CHECK_GLOBAL_CONN_REGISTER, ID_CLOSE, ID_LINE, ID_RESULTS, ID_VALIDATE, and resultsWindow_.
|
private |
Event handler for the checkbox check toggles.
Disables the Validate-button if no checkboxes are checked.
Definition at line 95 of file ValidateMachineDialog.cc.
References checkAnsiC_, checkGlobalConnReg_, and ID_VALIDATE.
|
private |
Event handler for the Close-button.
Closes the dialog.
Definition at line 164 of file ValidateMachineDialog.cc.
|
private |
Event handler for the Validate-button.
Validates the machine using a ProgrammabilityValidator. Only checks that are selected with the checkboxes are ran.
Definition at line 113 of file ValidateMachineDialog.cc.
References assert, checkAnsiC_, checkGlobalConnReg_, ProgrammabilityValidatorResults::error(), ProgrammabilityValidatorResults::errorCount(), Exception::errorMessage(), ProgrammabilityValidator::GLOBAL_CONNECTION_REGISTER_NOT_FOUND, machine_, ProgrammabilityValidator::MISSING_CONNECTION, resultsWindow_, WxConversion::toWxString(), and ProgrammabilityValidator::validate().

|
private |
Definition at line 64 of file ValidateMachineDialog.hh.
Referenced by onCheck(), and onValidate().
|
private |
Definition at line 65 of file ValidateMachineDialog.hh.
Referenced by onCheck(), and onValidate().
|
private |
Machine to be validated.
Definition at line 60 of file ValidateMachineDialog.hh.
Referenced by onValidate().
|
private |
HTML-widget for validation result texts.
Definition at line 62 of file ValidateMachineDialog.hh.
Referenced by createContents(), and onValidate().