OpenASIP
2.0
|
#include <CostEstimationDataDialog.hh>
Public Member Functions | |
CostEstimationDataDialog (wxWindow *parent, wxWindowID id, HDB::HDBManager &hdb, RowID pluginID, RowID dataID) | |
virtual | ~CostEstimationDataDialog () |
Private Types | |
enum | { ID_ENTRY_TYPE = 10000, ID_ENTRY_ID, ID_NAME, ID_VALUE, ID_TEXT, ID_LINE } |
widget IDs More... | |
Private Member Functions | |
virtual bool | TransferDataToWindow () |
void | onOK (wxCommandEvent &event) |
void | onEntryTypeSelection (wxCommandEvent &event) |
wxSizer * | createContents (wxWindow *parent, bool call_fit, bool set_sizer) |
Private Attributes | |
HDB::HDBManager & | hdb_ |
HDB Containing the data. More... | |
RowID | pluginID_ |
ID of the data's parent plugin. More... | |
RowID | dataID_ |
ID of the data to modify, or -1 if new data is being added. More... | |
wxChoice * | typeChoice_ |
Entry reference type choice widget. More... | |
wxChoice * | idChoice_ |
Entry reference id choice widget. More... | |
wxString | name_ |
Name of the data. More... | |
wxString | value_ |
Value of the data. More... | |
Static Private Attributes | |
static const wxString | ENTRY_TYPE_NONE = _T("None") |
static const wxString | ENTRY_TYPE_FU = _T("FU") |
static const wxString | ENTRY_TYPE_RF = _T("RF") |
static const wxString | ENTRY_TYPE_BUS = _T("Bus") |
static const wxString | ENTRY_TYPE_SOCKET = _T("Socket") |
Dialog for adding and modifying cost function plugin data.
Definition at line 46 of file CostEstimationDataDialog.hh.
|
private |
widget IDs
Enumerator | |
---|---|
ID_ENTRY_TYPE | |
ID_ENTRY_ID | |
ID_NAME | |
ID_VALUE | |
ID_TEXT | |
ID_LINE |
Definition at line 62 of file CostEstimationDataDialog.hh.
CostEstimationDataDialog::CostEstimationDataDialog | ( | wxWindow * | parent, |
wxWindowID | id, | ||
HDB::HDBManager & | hdb, | ||
RowID | pluginID, | ||
RowID | dataID | ||
) |
The Constructor.
parent | Parent window of the dialog. |
id | Window identifier for the dialog. |
hdb | HDBManager where the data is added/modified. |
dataID | ID of the cost data to modify or -1 if a new data is being added. |
Definition at line 63 of file CostEstimationDataDialog.cc.
|
virtual |
|
private |
Creates the dialog widgets.
Definition at line 239 of file CostEstimationDataDialog.cc.
|
private |
Event handler for the entry type choicer selections.
Definition at line 137 of file CostEstimationDataDialog.cc.
References WxConversion::toWxString().
|
private |
Event handler for the ok-button.
Definition at line 183 of file CostEstimationDataDialog.cc.
References CostEstimationData::setBusReference(), CostEstimationData::setFUReference(), CostEstimationData::setName(), CostEstimationData::setPluginID(), CostEstimationData::setRFReference(), CostEstimationData::setSocketReference(), CostEstimationData::setValue(), Conversion::toInt(), and WxConversion::toString().
|
privatevirtual |
Transfers data to the dialog widgets.
Definition at line 102 of file CostEstimationDataDialog.cc.
References CostEstimationData::busReference(), dummy, CostEstimationData::fuReference(), CostEstimationData::hasBusReference(), CostEstimationData::hasFUReference(), CostEstimationData::hasRFReference(), CostEstimationData::hasSocketReference(), CostEstimationData::name(), CostEstimationData::rfReference(), CostEstimationData::socketReference(), DataObject::stringValue(), WxConversion::toWxString(), and CostEstimationData::value().
|
private |
ID of the data to modify, or -1 if new data is being added.
Definition at line 76 of file CostEstimationDataDialog.hh.
|
staticprivate |
Definition at line 89 of file CostEstimationDataDialog.hh.
|
staticprivate |
Definition at line 87 of file CostEstimationDataDialog.hh.
|
staticprivate |
Definition at line 86 of file CostEstimationDataDialog.hh.
|
staticprivate |
Definition at line 88 of file CostEstimationDataDialog.hh.
|
staticprivate |
Definition at line 90 of file CostEstimationDataDialog.hh.
|
private |
HDB Containing the data.
Definition at line 72 of file CostEstimationDataDialog.hh.
|
private |
Entry reference id choice widget.
Definition at line 80 of file CostEstimationDataDialog.hh.
|
private |
Name of the data.
Definition at line 82 of file CostEstimationDataDialog.hh.
|
private |
ID of the data's parent plugin.
Definition at line 74 of file CostEstimationDataDialog.hh.
|
private |
Entry reference type choice widget.
Definition at line 78 of file CostEstimationDataDialog.hh.
|
private |
Value of the data.
Definition at line 84 of file CostEstimationDataDialog.hh.