OpenASIP 2.2
|
#include <BlockImplementationFileDialog.hh>
Public Member Functions | |
BlockImplementationFileDialog (wxWindow *parent, wxWindowID id, HDB::BlockImplementationFile &file) | |
virtual | ~BlockImplementationFileDialog () |
Private Types | |
enum | { ID_LABEL_PATH = 10000 , ID_PATH , ID_LABEL_FORMAT , ID_FORMAT , ID_BROWSE , ID_LINE } |
Enumerated IDs for dialog widgets. More... | |
Private Member Functions | |
void | onBrowse (wxCommandEvent &event) |
void | onOK (wxCommandEvent &event) |
wxSizer * | createContents (wxWindow *parent, bool call_fit, bool set_sizer) |
Creates the dialog contents. | |
Private Attributes | |
HDB::BlockImplementationFile & | file_ |
BlockImplementationFile object to modify. | |
wxString | path_ |
Block implementation file path. | |
int | format_ |
Selected implementation file type. | |
Dialog for editing BlockImplementationFile objects.
Definition at line 44 of file BlockImplementationFileDialog.hh.
|
private |
Enumerated IDs for dialog widgets.
Enumerator | |
---|---|
ID_LABEL_PATH | |
ID_PATH | |
ID_LABEL_FORMAT | |
ID_FORMAT | |
ID_BROWSE | |
ID_LINE |
Definition at line 56 of file BlockImplementationFileDialog.hh.
BlockImplementationFileDialog::BlockImplementationFileDialog | ( | wxWindow * | parent, |
wxWindowID | id, | ||
HDB::BlockImplementationFile & | file | ||
) |
The Constructor.
parent | Parent window of the dialog. |
id | Window identifier for the dialog window. |
file | BlockImplementationFile object to modify. |
Definition at line 64 of file BlockImplementationFileDialog.cc.
References WxConversion::toWxString().
|
virtual |
|
private |
Creates the dialog contents.
Creates the dialog contents.
Definition at line 185 of file BlockImplementationFileDialog.cc.
References ID_BROWSE, ID_FORMAT, ID_LABEL_FORMAT, ID_LABEL_PATH, ID_LINE, and ID_PATH.
|
private |
Event handler for the Browse-button.
Displays a wxFileDialog for selecting the implementation file.
Definition at line 93 of file BlockImplementationFileDialog.cc.
References FileSystem::directoryOfPath(), HDB::HDBManager::fileName(), ID_FORMAT, path_, WxConversion::toString(), WxConversion::toWxString(), and Environment::vhdlPaths().
|
private |
Event handler for the dialog OK-button.
Definition at line 134 of file BlockImplementationFileDialog.cc.
References file_, HDB::HDBManager::fileName(), FileSystem::findFileInSearchPaths(), format_, Application::logStream(), path_, HDB::BlockImplementationFile::setFormat(), HDB::BlockImplementationFile::setPathToFile(), WxConversion::toString(), WxConversion::toWxString(), and Environment::vhdlPaths().
|
private |
BlockImplementationFile object to modify.
Definition at line 69 of file BlockImplementationFileDialog.hh.
Referenced by onOK().
|
private |
Selected implementation file type.
Definition at line 74 of file BlockImplementationFileDialog.hh.
Referenced by onOK().
|
private |
Block implementation file path.
Definition at line 72 of file BlockImplementationFileDialog.hh.
Referenced by onBrowse(), and onOK().