OpenASIP
2.0
|
#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. More... | |
Private Attributes | |
HDB::BlockImplementationFile & | file_ |
BlockImplementationFile object to modify. More... | |
wxString | path_ |
Block implementation file path. More... | |
int | format_ |
Selected implementation file type. More... | |
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.
|
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(), WxConversion::toString(), WxConversion::toWxString(), and Environment::vhdlPaths().
|
private |
Event handler for the dialog OK-button.
Definition at line 134 of file BlockImplementationFileDialog.cc.
References HDB::HDBManager::fileName(), FileSystem::findFileInSearchPaths(), Application::logStream(), WxConversion::toString(), WxConversion::toWxString(), and Environment::vhdlPaths().
|
private |
BlockImplementationFile object to modify.
Definition at line 69 of file BlockImplementationFileDialog.hh.
|
private |
Selected implementation file type.
Definition at line 74 of file BlockImplementationFileDialog.hh.
|
private |
Block implementation file path.
Definition at line 72 of file BlockImplementationFileDialog.hh.