OpenASIP
2.0
|
#include <RFImplementationDialog.hh>
Public Member Functions | |
RFImplementationDialog (wxWindow *parent, wxWindowID id, HDB::RFImplementation &implementation) | |
virtual | ~RFImplementationDialog () |
Private Types | |
enum | { ID_LABEL_NAME = 10000, ID_NAME, ID_LABEL_CLK_PORT, ID_CLK_PORT, ID_LABEL_RESET_PORT, ID_RESET_PORT, ID_LABEL_GLOCK_PORT, ID_GLOCK_PORT, ID_LABEL_GUARD_PORT, ID_GUARD_PORT, ID_LABEL_SIZE_PARAMETER, ID_SIZE_PARAMETER, ID_LABEL_WIDTH_PARAMETER, ID_WIDTH_PARAMETER, ID_LABEL_SAC, ID_SAC, ID_PORT_LIST, ID_ADD_PORT, ID_MODIFY_PORT, ID_DELETE_PORT, ID_SOURCE_LIST, ID_ADD_SOURCE, ID_DELETE_SOURCE, ID_MOVE_SOURCE_UP, ID_MOVE_SOURCE_DOWN, ID_LINE, ID_EXTERNAL_PORT_LIST, ID_ADD_EXTERNAL_PORT, ID_EDIT_EXTERNAL_PORT, ID_DELETE_EXTERNAL_PORT, ID_PARAMETER_LIST, ID_EDIT_PARAMETER, ID_ADD_PARAMETER, ID_DELETE_PARAMETER, ID_SIZE_CHOICE, ID_WIDTH_CHOICE } |
Window indentifiers for dialog widgets. More... | |
enum | { RBOX_FALSE = 0, RBOX_TRUE } |
Private Member Functions | |
void | onOK (wxCommandEvent &event) |
void | update () |
HDB::RFPortImplementation * | selectedPort () |
HDB::RFExternalPort * | selectedExternalPort () |
HDB::RFImplementation::Parameter | selectedParameter () |
void | onSACchoise (wxCommandEvent &event) |
void | onPortSelection (wxListEvent &event) |
void | onAddPort (wxCommandEvent &event) |
void | onModifyPort (wxCommandEvent &event) |
void | onDeletePort (wxCommandEvent &event) |
void | onExternalPortActivation (wxListEvent &event) |
void | onExternalPortSelection (wxListEvent &event) |
void | onAddExternalPort (wxCommandEvent &event) |
void | onEditExternalPort (wxCommandEvent &event) |
void | onDeleteExternalPort (wxCommandEvent &event) |
void | onParameterActivation (wxListEvent &event) |
void | onParameterSelection (wxListEvent &event) |
void | onAddParameter (wxCommandEvent &event) |
void | onEditParameter (wxCommandEvent &event) |
void | onDeleteParameter (wxCommandEvent &event) |
void | onSourceFileSelection (wxListEvent &event) |
void | onAddSourceFile (wxCommandEvent &event) |
void | onDeleteSourceFile (wxCommandEvent &event) |
void | onMoveSourceFileUp (wxCommandEvent &) |
void | onMoveSourceFileDown (wxCommandEvent &) |
void | onSizeChoice (wxCommandEvent &event) |
void | onWidthChoice (wxCommandEvent &event) |
wxString | getWidthParameter () |
wxString | getSizeParameter () |
wxSizer * | createContents (wxWindow *parent, bool call_fit, bool set_sizer) |
Private Attributes | |
HDB::RFImplementation & | implementation_ |
RF Implementation to modify. More... | |
wxListCtrl * | portList_ |
Pointer to the port list widget. More... | |
wxListCtrl * | sourceList_ |
Pointer to the source file list widget. More... | |
wxListCtrl * | externalPortList_ |
Pointer to the external port list widget. More... | |
wxListCtrl * | parameterList_ |
Pointer to the parameter list widget. More... | |
wxChoice * | sizeChoice_ |
Pointer to size parameter choice widget. More... | |
wxChoice * | widthChoice_ |
Pointer to width parameter choice widget. More... | |
wxString | name_ |
wxString | clkPort_ |
wxString | rstPort_ |
wxString | gLockPort_ |
wxString | guardPort_ |
bool | sacParam_ |
Dialog for editing RF implementations.
Definition at line 45 of file RFImplementationDialog.hh.
|
private |
Window indentifiers for dialog widgets.
Definition at line 95 of file RFImplementationDialog.hh.
|
private |
Enumerator | |
---|---|
RBOX_FALSE | |
RBOX_TRUE |
Definition at line 135 of file RFImplementationDialog.hh.
RFImplementationDialog::onPortSelection RFImplementationDialog::onSourceFileSelection RFImplementationDialog::onAddExternalPort RFImplementationDialog::onDeleteExternalPort RFImplementationDialog::onExternalPortActivation RFImplementationDialog::onParameterSelection RFImplementationDialog::onParameterSelection RFImplementationDialog::RFImplementationDialog | ( | wxWindow * | parent, |
wxWindowID | id, | ||
HDB::RFImplementation & | implementation | ||
) |
The Constructor.
parent | Parent window of the dialog. |
id | Window identifier for the dialog window. |
implementation | RF implementation to modify. |
Definition at line 125 of file RFImplementationDialog.cc.
References assert, and WxConversion::toWxString().
|
virtual |
|
private |
|
private |
Returns name of currently selected size parameter.
Definition at line 800 of file RFImplementationDialog.cc.
|
private |
Returns name of currently selected width parameter.
Definition at line 812 of file RFImplementationDialog.cc.
|
private |
Event handler for the add external port button.
Opens a RFExternalPortDialog for adding a new external port.
Definition at line 439 of file RFImplementationDialog.cc.
References HDB::IN.
|
private |
Event handler for the add parameter button.
Opens a ImplementationParameterDialog for adding a new parameter.
Definition at line 547 of file RFImplementationDialog.cc.
References HDB::Parameter::name, WxConversion::toWxString(), HDB::Parameter::type, and HDB::Parameter::value.
|
private |
Event handler for the add port button.
Opens a RFPortImplementationdialog for adding a new port.
Definition at line 275 of file RFImplementationDialog.cc.
References HDB::IN.
|
private |
Event handler for the add source file button.
Opens a source file dialog for adding a new implementation file to the list.
Definition at line 646 of file RFImplementationDialog.cc.
References HDB::BlockImplementationFile::VHDL.
|
private |
Event handler for the delete external port button.
Deletes the selected external port.
Definition at line 480 of file RFImplementationDialog.cc.
|
private |
Event handler for the delete parameter button.
Deletes the selected parameter.
Definition at line 624 of file RFImplementationDialog.cc.
References HDB::Parameter::name, and HDB::ExternalPort::unsetParameterDependency().
|
private |
Event handler for the delete port button.
Deletes the selected port.
Definition at line 311 of file RFImplementationDialog.cc.
|
private |
Event handler for the delete source file button.
Removes the selected source file.
Definition at line 668 of file RFImplementationDialog.cc.
References WidgetTools::lcStringSelection(), and HDB::BlockImplementationFile::pathToFile().
|
private |
Event handler for the edit external port button.
Opens a RFExternalPort for modifying the selected external port.
Definition at line 460 of file RFImplementationDialog.cc.
|
private |
Event handler for the edit parameter button.
Opens a ImplementationParamaeterDialog for modifying the selected parameter.
Definition at line 594 of file RFImplementationDialog.cc.
References HDB::Parameter::name, HDB::ExternalPort::setParameterDependency(), HDB::Parameter::type, HDB::ExternalPort::unsetParameterDependency(), and HDB::Parameter::value.
|
private |
Event handler for the activate external port list item
Opens a RFExternalPort for modifying the selected external port.
Definition at line 407 of file RFImplementationDialog.cc.
References assert.
|
private |
Event handler for the external port list selection changes.
Updates edit/delete external port enabeld/disabled states.
Definition at line 423 of file RFImplementationDialog.cc.
|
private |
Event handler for the modify port button.
Modifies the selected port.
Definition at line 329 of file RFImplementationDialog.cc.
|
private |
Event handler for the move source file down button.
Moves the selected source file down on the files list.
Definition at line 734 of file RFImplementationDialog.cc.
References WidgetTools::lcStringSelection(), HDB::BlockImplementationFile::pathToFile(), and HDB::BlockImplementationFile::VHDL.
|
private |
Event handler for the move source file up button.
Moves the selected source file up on the files list.
Definition at line 687 of file RFImplementationDialog.cc.
References WidgetTools::lcStringSelection(), HDB::BlockImplementationFile::pathToFile(), and HDB::BlockImplementationFile::VHDL.
|
private |
Event handler for the OK button.
Validates the dialog data and updates the RFImplementation object string attributes.
Definition at line 824 of file RFImplementationDialog.cc.
References WxConversion::toString().
|
private |
Event handler for the parameter list activation.
Opens a RFImplementationParamaeterDialog for modifying the selected parameter.
Definition at line 500 of file RFImplementationDialog.cc.
References HDB::Parameter::name, HDB::ExternalPort::setParameterDependency(), HDB::Parameter::type, HDB::ExternalPort::unsetParameterDependency(), and HDB::Parameter::value.
|
private |
Event handler for the parameter list selection changes.
Updates edit/delete parameter enabled/disabled states.
Definition at line 530 of file RFImplementationDialog.cc.
|
private |
Event handler for the port list selection changes.
Updates the delete port button enabled/disabled state.
Definition at line 295 of file RFImplementationDialog.cc.
|
private |
|
private |
|
private |
Event handler for the source file list selection changes.
Updates delete source file button enabeld/disabled states.
Definition at line 781 of file RFImplementationDialog.cc.
References WidgetTools::lcStringSelection().
|
private |
|
private |
Returns pointer to the external port selected in the external port list.
Definition at line 368 of file RFImplementationDialog.cc.
|
private |
Returns copy of the selected parameter in the parameter list.
Definition at line 388 of file RFImplementationDialog.cc.
|
private |
Returns pointer to the port selected in the port list.
Definition at line 348 of file RFImplementationDialog.cc.
|
private |
Definition at line 199 of file RFImplementationDialog.cc.
References dummy, HDB::Parameter::name, WxConversion::toWxString(), HDB::Parameter::type, and HDB::Parameter::value.
|
private |
Definition at line 157 of file RFImplementationDialog.hh.
|
private |
Pointer to the external port list widget.
Definition at line 148 of file RFImplementationDialog.hh.
|
private |
Definition at line 159 of file RFImplementationDialog.hh.
|
private |
Definition at line 160 of file RFImplementationDialog.hh.
|
private |
RF Implementation to modify.
Definition at line 141 of file RFImplementationDialog.hh.
|
private |
Definition at line 156 of file RFImplementationDialog.hh.
|
private |
Pointer to the parameter list widget.
Definition at line 150 of file RFImplementationDialog.hh.
|
private |
Pointer to the port list widget.
Definition at line 144 of file RFImplementationDialog.hh.
|
private |
Definition at line 158 of file RFImplementationDialog.hh.
|
private |
Definition at line 161 of file RFImplementationDialog.hh.
|
private |
Pointer to size parameter choice widget.
Definition at line 152 of file RFImplementationDialog.hh.
|
private |
Pointer to the source file list widget.
Definition at line 146 of file RFImplementationDialog.hh.
|
private |
Pointer to width parameter choice widget.
Definition at line 154 of file RFImplementationDialog.hh.