OpenASIP
2.0
|
#include <OTAOperationDialog.hh>
Public Member Functions | |
OTAOperationDialog (wxWindow *parent, TTAMachine::OperationTriggeredFormat *format) | |
virtual | ~OTAOperationDialog () |
Private Types | |
enum | { ID_LABEL_OTA_OPERATION = 10000, ID_OTA_OPERATION, ID_LIST, ID_OP_FILTER, ID_LINE, ID_OP_FILTER_LABEL } |
Private Member Functions | |
wxSizer * | createContents (wxWindow *parent, bool call_fit, bool set_sizer) |
virtual bool | TransferDataToWindow () |
virtual bool | TransferDataFromWindow () |
void | onOK (wxCommandEvent &event) |
void | onOperationFilterChange (wxCommandEvent &event) |
void | onSelectOperation (wxCommandEvent &event) |
int | numberOfInputs () const |
int | numberOfOutputs () const |
bool | validFormatName () const |
std::set< TCEString > | addRISCVBaseOperations (std::set< TCEString > opset) const |
Private Attributes | |
TCEString | operation_ |
Name of the selected operation. More... | |
wxListBox * | operationList_ |
Operation list widget. More... | |
TCEString | opNameFilter_ = "" |
A string to filter opset list. More... | |
TTAMachine::OperationTriggeredFormat * | format_ |
Dialog for editing telplate slot properties.
Definition at line 42 of file OTAOperationDialog.hh.
|
private |
Enumerator | |
---|---|
ID_LABEL_OTA_OPERATION | |
ID_OTA_OPERATION | |
ID_LIST | |
ID_OP_FILTER | |
ID_LINE | |
ID_OP_FILTER_LABEL |
Definition at line 75 of file OTAOperationDialog.hh.
OTAOperationDialog::OTAOperationDialog | ( | wxWindow * | parent, |
TTAMachine::OperationTriggeredFormat * | format | ||
) |
The Constructor.
parent | Parent window of the dialog. |
format | OperationTriggeredFormat format to edit. |
operation | Operation to edit, NULL if a new operation is being added. |
Definition at line 70 of file OTAOperationDialog.cc.
|
virtual |
|
private |
Definition at line 131 of file OTAOperationDialog.cc.
References operationNameTable, riscvBTypeOperations, riscvITypeOperations, riscvJTypeOperations, riscvRTypeOperations, riscvSTypeOperations, and riscvUTypeOperations.
|
private |
Creates the dialog widgets.
parent | Parent window of the widgets. |
Definition at line 276 of file OTAOperationDialog.cc.
|
private |
Definition at line 90 of file OTAOperationDialog.cc.
|
private |
|
private |
|
private |
Event handler for opset filtering.
Definition at line 257 of file OTAOperationDialog.cc.
References TransferDataToWindow().
|
private |
Event handler for the operation list selections.
Enables and disables the OK button. Displays operation description and ports count.
Definition at line 246 of file OTAOperationDialog.cc.
References WxConversion::toString().
|
privatevirtual |
Reads user choices from the dialog widgets.
Definition at line 216 of file OTAOperationDialog.cc.
References WxConversion::toString().
|
privatevirtual |
Transfers data to the opset list.
Definition at line 170 of file OTAOperationDialog.cc.
References MapTools::containsValue(), TTAMachine::Machine::Navigator< ComponentType >::count(), TTAMachine::Machine::Navigator< ComponentType >::item(), TCEString::lower(), TTAMachine::HWOperation::name(), TTAMachine::HWOperation::numberOfInputs(), TTAMachine::HWOperation::numberOfOutputs(), TTAMachine::FunctionUnit::operation(), TTAMachine::FunctionUnit::operationCount(), operationNameTable, and WxConversion::toWxString().
Referenced by onOperationFilterChange().
|
private |
Definition at line 118 of file OTAOperationDialog.cc.
|
private |
Definition at line 72 of file OTAOperationDialog.hh.
|
private |
Name of the selected operation.
Definition at line 66 of file OTAOperationDialog.hh.
|
private |
Operation list widget.
Definition at line 68 of file OTAOperationDialog.hh.
|
private |
A string to filter opset list.
Definition at line 70 of file OTAOperationDialog.hh.