OpenASIP
2.0
|
#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. More... | |
wxHtmlWindow * | resultsWindow_ |
HTML-widget for validation result texts. More... | |
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.
|
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.
|
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, ProgrammabilityValidatorResults::error(), ProgrammabilityValidatorResults::errorCount(), Exception::errorMessage(), ProgrammabilityValidator::GLOBAL_CONNECTION_REGISTER_NOT_FOUND, ProgrammabilityValidator::MISSING_CONNECTION, WxConversion::toWxString(), and ProgrammabilityValidator::validate().
|
private |
Definition at line 64 of file ValidateMachineDialog.hh.
|
private |
Definition at line 65 of file ValidateMachineDialog.hh.
|
private |
Machine to be validated.
Definition at line 60 of file ValidateMachineDialog.hh.
|
private |
HTML-widget for validation result texts.
Definition at line 62 of file ValidateMachineDialog.hh.