OpenASIP
2.0
|
#include <MachineDialog.hh>
Public Member Functions | |
MachineDialog (wxWindow *parent, TTAMachine::Machine &machine) | |
virtual | ~MachineDialog () |
Private Types | |
enum | { ID_ENDIANESS_CHOICE = 10000 } |
Private Member Functions | |
wxSizer * | createContents (wxWindow *parent, bool call_fit, bool set_sizer) |
virtual bool | TransferDataToWindow () |
void | onOK (wxCommandEvent &event) |
void | onCancel (wxCommandEvent &event) |
Private Attributes | |
TTAMachine::Machine & | machine_ |
The machine to modify. More... | |
wxChoice * | endianessChoise_ |
Dialog for editing processor wide properties.
Definition at line 48 of file MachineDialog.hh.
|
private |
Enumerator | |
---|---|
ID_ENDIANESS_CHOICE |
Definition at line 63 of file MachineDialog.hh.
MachineDialog::MachineDialog | ( | wxWindow * | parent, |
TTAMachine::Machine & | machine | ||
) |
The Constructor.
parent | Parent window of the dialog. |
machine | The machine to modify. |
Definition at line 54 of file MachineDialog.cc.
References createContents(), endianessChoise_, and TransferDataToWindow().
|
virtual |
|
private |
Creates contents of the dialog window.
parent | Parent dialog of the contents. |
call_fit | If true, fits sizer in dialog window. |
set_sizer | If true, sets sizer as dialog's sizer. |
Definition at line 120 of file MachineDialog.cc.
References endianessChoise_, ID_ENDIANESS_CHOICE, and TRUE.
Referenced by MachineDialog().
|
private |
Event handler for Cancel button press.
Definition at line 106 of file MachineDialog.cc.
|
private |
Event handler for Ok button press.
Definition at line 96 of file MachineDialog.cc.
References endianessChoise_, LITTLEENDIAN, machine_, and TTAMachine::Machine::setLittleEndian().
|
privatevirtual |
Transfers data from the port object to the dialog widgets.
Definition at line 80 of file MachineDialog.cc.
References assert, BIGENDIAN, endianessChoise_, TTAMachine::Machine::isLittleEndian(), LITTLEENDIAN, and machine_.
Referenced by MachineDialog().
|
private |
Definition at line 61 of file MachineDialog.hh.
Referenced by createContents(), MachineDialog(), onOK(), and TransferDataToWindow().
|
private |
The machine to modify.
Definition at line 60 of file MachineDialog.hh.
Referenced by onOK(), and TransferDataToWindow().