OpenASIP 2.2
|
#include <RFExternalPortDialog.hh>
Public Member Functions | |
RFExternalPortDialog (wxWindow *parent, wxWindowID id, HDB::RFExternalPort &implementation, const HDB::RFImplementation &rf) | |
virtual | ~RFExternalPortDialog () |
Private Types | |
enum | { ID_LABEL_NAME = 10000 , ID_NAME , ID_LABEL_WIDTH , ID_WIDTH , ID_LABEL_DESCRIPTION , ID_DESCRIPTION , ID_DIRECTION , ID_PARAMETER_DEPS , ID_LINE } |
Enumerated IDs for dialog widgets. More... | |
Private Member Functions | |
void | initialize () |
void | onOK (wxCommandEvent &event) |
wxSizer * | createContents (wxWindow *parent, bool call_fit, bool set_sizer) |
Creates the dialog contents. | |
Private Attributes | |
HDB::RFExternalPort & | port_ |
RF port implementation to modify. | |
const HDB::RFImplementation & | rf_ |
Parent RF implementation of the port. | |
wxString | name_ |
wxString | widthFormula_ |
wxString | description_ |
int | direction_ |
wxCheckListBox * | depList_ |
Dialog for editing RF external ports.
Definition at line 48 of file RFExternalPortDialog.hh.
|
private |
Enumerated IDs for dialog widgets.
Enumerator | |
---|---|
ID_LABEL_NAME | |
ID_NAME | |
ID_LABEL_WIDTH | |
ID_WIDTH | |
ID_LABEL_DESCRIPTION | |
ID_DESCRIPTION | |
ID_DIRECTION | |
ID_PARAMETER_DEPS | |
ID_LINE |
Definition at line 62 of file RFExternalPortDialog.hh.
RFExternalPortDialog::RFExternalPortDialog | ( | wxWindow * | parent, |
wxWindowID | id, | ||
HDB::RFExternalPort & | implementation, | ||
const HDB::RFImplementation & | rf | ||
) |
The Constructor.
parent | Parent window of the dialog. |
id | Window identifier for the dialog window. |
port | RF external port to modify. |
Definition at line 61 of file RFExternalPortDialog.cc.
|
virtual |
|
private |
Creates the dialog contents.
Creates the dialog contents.
Definition at line 171 of file RFExternalPortDialog.cc.
References ID_DESCRIPTION, ID_DIRECTION, ID_LABEL_DESCRIPTION, ID_LABEL_NAME, ID_LABEL_WIDTH, ID_LINE, ID_NAME, ID_PARAMETER_DEPS, and ID_WIDTH.
Referenced by initialize().
|
private |
Creates and initializes the dialog widgets.
Definition at line 80 of file RFExternalPortDialog.cc.
References createContents(), depList_, HDB::ExternalPort::description(), description_, HDB::ExternalPort::direction(), direction_, ID_DESCRIPTION, ID_DIRECTION, ID_NAME, ID_PARAMETER_DEPS, ID_WIDTH, HDB::ExternalPort::name(), HDB::Parameter::name, name_, HDB::RFImplementation::parameter(), HDB::RFImplementation::parameterCount(), HDB::ExternalPort::parameterDependency(), HDB::ExternalPort::parameterDependencyCount(), port_, rf_, WxConversion::toWxString(), HDB::ExternalPort::widthFormula(), and widthFormula_.
|
private |
Event handler for the dialog OK-button.
Definition at line 117 of file RFExternalPortDialog.cc.
References assert, HDB::BIDIR, depList_, description_, direction_, HDB::IN, name_, HDB::OUT, HDB::RFImplementation::parameterCount(), port_, rf_, HDB::ExternalPort::setDescription(), HDB::ExternalPort::setDirection(), HDB::ExternalPort::setName(), HDB::ExternalPort::setParameterDependency(), HDB::ExternalPort::setWidthFormula(), WxConversion::toString(), HDB::ExternalPort::unsetParameterDependency(), and widthFormula_.
|
private |
Definition at line 87 of file RFExternalPortDialog.hh.
Referenced by initialize(), and onOK().
|
private |
Definition at line 84 of file RFExternalPortDialog.hh.
Referenced by initialize(), and onOK().
|
private |
Definition at line 85 of file RFExternalPortDialog.hh.
Referenced by initialize(), and onOK().
|
private |
Definition at line 82 of file RFExternalPortDialog.hh.
Referenced by initialize(), and onOK().
|
private |
RF port implementation to modify.
Definition at line 78 of file RFExternalPortDialog.hh.
Referenced by initialize(), and onOK().
|
private |
Parent RF implementation of the port.
Definition at line 80 of file RFExternalPortDialog.hh.
Referenced by initialize(), and onOK().
|
private |
Definition at line 83 of file RFExternalPortDialog.hh.
Referenced by initialize(), and onOK().