OpenASIP 2.2
|
#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. | |
wxListCtrl * | portList_ |
Pointer to the port list widget. | |
wxListCtrl * | sourceList_ |
Pointer to the source file list widget. | |
wxListCtrl * | externalPortList_ |
Pointer to the external port list widget. | |
wxListCtrl * | parameterList_ |
Pointer to the parameter list widget. | |
wxChoice * | sizeChoice_ |
Pointer to size parameter choice widget. | |
wxChoice * | widthChoice_ |
Pointer to width parameter choice widget. | |
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 |
Creates the dialog contents.
Definition at line 860 of file RFImplementationDialog.cc.
References ID_ADD_EXTERNAL_PORT, ID_ADD_PARAMETER, ID_ADD_PORT, ID_ADD_SOURCE, ID_CLK_PORT, ID_DELETE_EXTERNAL_PORT, ID_DELETE_PARAMETER, ID_DELETE_PORT, ID_DELETE_SOURCE, ID_EDIT_EXTERNAL_PORT, ID_EDIT_PARAMETER, ID_EXTERNAL_PORT_LIST, ID_GLOCK_PORT, ID_GUARD_PORT, ID_LABEL_CLK_PORT, ID_LABEL_GLOCK_PORT, ID_LABEL_GUARD_PORT, ID_LABEL_NAME, ID_LABEL_RESET_PORT, ID_LABEL_SAC, ID_LABEL_SIZE_PARAMETER, ID_LABEL_WIDTH_PARAMETER, ID_LINE, ID_MODIFY_PORT, ID_MOVE_SOURCE_DOWN, ID_MOVE_SOURCE_UP, ID_NAME, ID_PARAMETER_LIST, ID_PORT_LIST, ID_RESET_PORT, ID_SAC, ID_SIZE_CHOICE, ID_SOURCE_LIST, and ID_WIDTH_CHOICE.
|
private |
Returns name of currently selected size parameter.
Definition at line 800 of file RFImplementationDialog.cc.
References sizeChoice_.
|
private |
Returns name of currently selected width parameter.
Definition at line 812 of file RFImplementationDialog.cc.
References widthChoice_.
|
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::RFImplementation::deleteExternalPort(), implementation_, HDB::IN, and update().
|
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::RFImplementation::addParameter(), implementation_, HDB::Parameter::name, WxConversion::toWxString(), HDB::Parameter::type, update(), 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::RFImplementation::deletePort(), implementation_, HDB::IN, and update().
|
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::HWBlockImplementation::addImplementationFile(), implementation_, update(), and 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.
References HDB::RFImplementation::deleteExternalPort(), implementation_, selectedExternalPort(), and update().
|
private |
Event handler for the delete parameter button.
Deletes the selected parameter.
Definition at line 624 of file RFImplementationDialog.cc.
References HDB::RFImplementation::externalPort(), HDB::RFImplementation::externalPortCount(), implementation_, HDB::Parameter::name, HDB::RFImplementation::removeParameter(), selectedParameter(), HDB::ExternalPort::unsetParameterDependency(), and update().
|
private |
Event handler for the delete port button.
Deletes the selected port.
Definition at line 311 of file RFImplementationDialog.cc.
References HDB::RFImplementation::deletePort(), implementation_, selectedPort(), and update().
|
private |
Event handler for the delete source file button.
Removes the selected source file.
Definition at line 668 of file RFImplementationDialog.cc.
References HDB::HWBlockImplementation::file(), implementation_, HDB::HWBlockImplementation::implementationFileCount(), WidgetTools::lcStringSelection(), HDB::BlockImplementationFile::pathToFile(), HDB::HWBlockImplementation::removeImplementationFile(), sourceList_, and update().
|
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.
References implementation_, selectedExternalPort(), and update().
|
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::RFImplementation::addParameter(), HDB::RFImplementation::externalPort(), HDB::RFImplementation::externalPortCount(), implementation_, HDB::Parameter::name, HDB::RFImplementation::removeParameter(), selectedParameter(), HDB::ExternalPort::setParameterDependency(), HDB::Parameter::type, HDB::ExternalPort::unsetParameterDependency(), update(), 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, implementation_, selectedExternalPort(), and update().
|
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.
References ID_DELETE_EXTERNAL_PORT, ID_EDIT_EXTERNAL_PORT, and selectedExternalPort().
Referenced by update().
|
private |
Event handler for the modify port button.
Modifies the selected port.
Definition at line 329 of file RFImplementationDialog.cc.
References selectedPort(), and update().
|
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 HDB::HWBlockImplementation::addImplementationFile(), HDB::HWBlockImplementation::file(), implementation_, HDB::HWBlockImplementation::implementationFileCount(), WidgetTools::lcStringSelection(), HDB::BlockImplementationFile::pathToFile(), HDB::HWBlockImplementation::removeImplementationFile(), sourceList_, update(), 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 HDB::HWBlockImplementation::addImplementationFile(), HDB::HWBlockImplementation::file(), implementation_, HDB::HWBlockImplementation::implementationFileCount(), WidgetTools::lcStringSelection(), HDB::BlockImplementationFile::pathToFile(), HDB::HWBlockImplementation::removeImplementationFile(), sourceList_, update(), 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 clkPort_, getSizeParameter(), getWidthParameter(), gLockPort_, guardPort_, implementation_, name_, rstPort_, sacParam_, HDB::HWBlockImplementation::setClkPort(), HDB::HWBlockImplementation::setGlockPort(), HDB::RFImplementation::setGuardPort(), HDB::HWBlockImplementation::setModuleName(), HDB::HWBlockImplementation::setRstPort(), HDB::RFImplementation::setSeparateAddressCycleParameter(), HDB::RFImplementation::setSizeParameter(), HDB::RFImplementation::setWidthParameter(), and 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::RFImplementation::addParameter(), HDB::RFImplementation::externalPort(), HDB::RFImplementation::externalPortCount(), implementation_, HDB::Parameter::name, HDB::RFImplementation::removeParameter(), selectedParameter(), HDB::ExternalPort::setParameterDependency(), HDB::Parameter::type, HDB::ExternalPort::unsetParameterDependency(), update(), 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.
References ID_DELETE_PARAMETER, ID_EDIT_PARAMETER, and selectedParameter().
Referenced by update().
|
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.
References ID_DELETE_PORT, ID_MODIFY_PORT, and selectedPort().
Referenced by update().
|
private |
Definition at line 264 of file RFImplementationDialog.cc.
References assert, RBOX_FALSE, RBOX_TRUE, and sacParam_.
|
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 ID_DELETE_SOURCE, ID_MOVE_SOURCE_DOWN, ID_MOVE_SOURCE_UP, WidgetTools::lcStringSelection(), and sourceList_.
|
private |
|
private |
Returns pointer to the external port selected in the external port list.
Definition at line 368 of file RFImplementationDialog.cc.
References HDB::RFImplementation::externalPort(), externalPortList_, and implementation_.
Referenced by onDeleteExternalPort(), onEditExternalPort(), onExternalPortActivation(), and onExternalPortSelection().
|
private |
Returns copy of the selected parameter in the parameter list.
Definition at line 388 of file RFImplementationDialog.cc.
References implementation_, HDB::RFImplementation::parameter(), and parameterList_.
Referenced by onDeleteParameter(), onEditParameter(), onParameterActivation(), and onParameterSelection().
|
private |
Returns pointer to the port selected in the port list.
Definition at line 348 of file RFImplementationDialog.cc.
References implementation_, HDB::RFImplementation::port(), and portList_.
Referenced by onDeletePort(), onModifyPort(), and onPortSelection().
|
private |
Definition at line 199 of file RFImplementationDialog.cc.
References dummy, HDB::RFImplementation::externalPort(), HDB::RFImplementation::externalPortCount(), externalPortList_, HDB::HWBlockImplementation::file(), getSizeParameter(), getWidthParameter(), implementation_, HDB::HWBlockImplementation::implementationFileCount(), HDB::ExternalPort::name(), HDB::Parameter::name, HDB::PortImplementation::name(), onExternalPortSelection(), onParameterSelection(), onPortSelection(), HDB::RFImplementation::parameter(), HDB::RFImplementation::parameterCount(), parameterList_, HDB::BlockImplementationFile::pathToFile(), HDB::RFImplementation::port(), HDB::RFImplementation::portCount(), portList_, sizeChoice_, sourceList_, WxConversion::toWxString(), HDB::Parameter::type, HDB::Parameter::value, and widthChoice_.
Referenced by onAddExternalPort(), onAddParameter(), onAddPort(), onAddSourceFile(), onDeleteExternalPort(), onDeleteParameter(), onDeletePort(), onDeleteSourceFile(), onEditExternalPort(), onEditParameter(), onExternalPortActivation(), onModifyPort(), onMoveSourceFileDown(), onMoveSourceFileUp(), and onParameterActivation().
|
private |
Definition at line 157 of file RFImplementationDialog.hh.
Referenced by onOK().
|
private |
Pointer to the external port list widget.
Definition at line 148 of file RFImplementationDialog.hh.
Referenced by selectedExternalPort(), and update().
|
private |
Definition at line 159 of file RFImplementationDialog.hh.
Referenced by onOK().
|
private |
Definition at line 160 of file RFImplementationDialog.hh.
Referenced by onOK().
|
private |
RF Implementation to modify.
Definition at line 141 of file RFImplementationDialog.hh.
Referenced by onAddExternalPort(), onAddParameter(), onAddPort(), onAddSourceFile(), onDeleteExternalPort(), onDeleteParameter(), onDeletePort(), onDeleteSourceFile(), onEditExternalPort(), onEditParameter(), onExternalPortActivation(), onMoveSourceFileDown(), onMoveSourceFileUp(), onOK(), onParameterActivation(), selectedExternalPort(), selectedParameter(), selectedPort(), and update().
|
private |
Definition at line 156 of file RFImplementationDialog.hh.
Referenced by onOK().
|
private |
Pointer to the parameter list widget.
Definition at line 150 of file RFImplementationDialog.hh.
Referenced by selectedParameter(), and update().
|
private |
Pointer to the port list widget.
Definition at line 144 of file RFImplementationDialog.hh.
Referenced by selectedPort(), and update().
|
private |
Definition at line 158 of file RFImplementationDialog.hh.
Referenced by onOK().
|
private |
Definition at line 161 of file RFImplementationDialog.hh.
Referenced by onOK(), and onSACchoise().
|
private |
Pointer to size parameter choice widget.
Definition at line 152 of file RFImplementationDialog.hh.
Referenced by getSizeParameter(), and update().
|
private |
Pointer to the source file list widget.
Definition at line 146 of file RFImplementationDialog.hh.
Referenced by onDeleteSourceFile(), onMoveSourceFileDown(), onMoveSourceFileUp(), onSourceFileSelection(), and update().
|
private |
Pointer to width parameter choice widget.
Definition at line 154 of file RFImplementationDialog.hh.
Referenced by getWidthParameter(), and update().