OpenASIP
2.0
|
#include <BlockImplementationDialog.hh>
Public Member Functions | |
BlockImplementationDialog (wxWindow *parent, const TTAMachine::Component &block, IDF::UnitImplementationLocation &impl) | |
virtual | ~BlockImplementationDialog () |
Private Types | |
enum | { ID_HDB_CHOICE, ID_BROWSE, ID_LIST, ID_LINE } |
Private Member Functions | |
wxSizer * | createContents (wxWindow *parent, bool call_fit, bool set_sizer) |
void | onBrowse (wxCommandEvent &event) |
void | onImplSelection (wxListEvent &event) |
void | onImplActivation (wxListEvent &e) |
void | doOK () |
void | onOK (wxCommandEvent &event) |
void | onHDBSelection (wxCommandEvent &event) |
Private Attributes | |
const TTAMachine::Component & | block_ |
IDF::UnitImplementationLocation & | impl_ |
wxListCtrl * | list_ |
wxChoice * | hdbChoice_ |
Static Private Attributes | |
static std::set< std::string > | hdbs_ |
Static set for hdb paths. More... | |
static int | selection_ = 0 |
Static variable for the hdb choicer selection. More... | |
static const std::string | defaultHDB_ |
Definition at line 49 of file BlockImplementationDialog.hh.
|
private |
Enumerator | |
---|---|
ID_HDB_CHOICE | |
ID_BROWSE | |
ID_LIST | |
ID_LINE |
Definition at line 80 of file BlockImplementationDialog.hh.
BlockImplementationDialog::BlockImplementationDialog | ( | wxWindow * | parent, |
const TTAMachine::Component & | block, | ||
IDF::UnitImplementationLocation & | impl | ||
) |
The Constructor.
parent | Parent window of the dialog. |
block | Block to select the implementation for. |
impl | IDF UnitImplementationLocation object for the block. |
Definition at line 86 of file BlockImplementationDialog.cc.
References dummy, StringTools::endsWith(), HDB::HDBRegistry::hdbCount(), HDB::HDBRegistry::hdbPath(), HDB::HDBRegistry::loadFromSearchPaths(), Environment::shortHDBPath(), and WxConversion::toWxString().
|
virtual |
|
private |
Creates the dialog widgets.
Definition at line 369 of file BlockImplementationDialog.cc.
References ID_BROWSE, ID_HDB_CHOICE, ID_LINE, and ID_LIST.
|
private |
Do the things that are done to close the dialog on ok
Definition at line 335 of file BlockImplementationDialog.cc.
References hdbChoice_, impl_, WidgetTools::lcStringSelection(), list_, Environment::longHDBPath(), IDF::UnitImplementationLocation::setHDBFile(), IDF::UnitImplementationLocation::setID(), Conversion::toInt(), and WxConversion::toString().
Referenced by onImplActivation(), and onOK().
|
private |
Event handler for the 'Browse...' button.
Opens a file dialog.
Definition at line 144 of file BlockImplementationDialog.cc.
References dummy, hdbChoice_, onHDBSelection(), Environment::shortHDBPath(), and WxConversion::toWxString().
|
private |
Event handler for the HDB choicer widget.
Definition at line 177 of file BlockImplementationDialog.cc.
References HDB::RFEntry::architecture(), HDB::FUEntry::architecture(), block_, Exception::errorMessage(), HDB::HDBManager::fuByEntryID(), HDB::HDBManager::fuEntriesByArchitecture(), TTAMachine::RegisterFile::guardLatency(), HDB::RFEntry::hasImplementation(), HDB::FUEntry::hasImplementation(), HDB::RFArchitecture::hasParameterizedSize(), HDB::RFArchitecture::hasParameterizedWidth(), HDB::FUArchitecture::hasParameterizedWidth(), hdbChoice_, hdbs_, HDB::RFEntry::implementation(), HDB::FUEntry::implementation(), TTAMachine::Port::inputSocket(), TTAMachine::RegisterFile::isUsedAsGuard(), TTAMachine::ImmediateUnit::latency(), list_, Environment::longHDBPath(), TTAMachine::RegisterFile::maxReads(), TTAMachine::RegisterFile::maxWrites(), HDB::HWBlockImplementation::moduleName(), TTAMachine::Component::name(), TTAMachine::Port::outputSocket(), TTAMachine::BaseRegisterFile::port(), TTAMachine::Unit::portCount(), HDB::HDBManager::rfByEntryID(), HDB::HDBManager::rfEntriesByArchitecture(), selection_, TTAMachine::BaseRegisterFile::size(), WxConversion::toString(), WxConversion::toWxString(), TTAMachine::BaseRegisterFile::width(), and TTAMachine::RegisterFile::zeroRegister().
Referenced by onBrowse().
|
private |
Event handler for list activation OK button.
Updates the UnitImplementationLocation object.
Definition at line 361 of file BlockImplementationDialog.cc.
References doOK().
|
private |
|
private |
Event handler for the OK button.
Updates the UnitImplementationLocation object.
Definition at line 351 of file BlockImplementationDialog.cc.
References doOK().
|
private |
Definition at line 67 of file BlockImplementationDialog.hh.
Referenced by onHDBSelection().
|
staticprivate |
Definition at line 78 of file BlockImplementationDialog.hh.
|
private |
Definition at line 70 of file BlockImplementationDialog.hh.
Referenced by doOK(), onBrowse(), and onHDBSelection().
|
staticprivate |
Static set for hdb paths.
Definition at line 73 of file BlockImplementationDialog.hh.
Referenced by onHDBSelection().
|
private |
Definition at line 68 of file BlockImplementationDialog.hh.
Referenced by doOK().
|
private |
Definition at line 69 of file BlockImplementationDialog.hh.
Referenced by doOK(), onHDBSelection(), and onImplSelection().
|
staticprivate |
Static variable for the hdb choicer selection.
Definition at line 75 of file BlockImplementationDialog.hh.
Referenced by onHDBSelection().