OpenASIP
2.0
|
#include <CallExplorerPlugin.hh>
Public Member Functions | |
CallExplorerPluginWindow (wxWindow *parent, TTAMachine::Machine &machine, Model &model) | |
virtual | ~CallExplorerPluginWindow () |
Private Types | |
enum | { ID_TEXT = 10000, ID_PLUGIN_CHOOSER, ID_DESCRIPTION_FIELD, ID_PARAM_LIST, ID_EDIT, ID_RUN } |
Private Member Functions | |
virtual bool | TransferDataToWindow () |
void | onClose (wxCommandEvent &event) |
void | onEdit (wxCommandEvent &) |
void | onRun (wxCommandEvent &event) |
void | onSelectPlugin (wxCommandEvent &event) |
void | onParamActivate (wxListEvent &event) |
void | onParamSelect (wxListEvent &event) |
void | onParamDeSelect (wxListEvent &event) |
void | doEdit () |
void | updateParameterList () |
void | setTexts () |
ExplorerPluginParameter | getParam (int paramNum) |
wxSizer * | createContents (wxWindow *parent, bool call_fit, bool set_sizer) |
Private Attributes | |
TTAMachine::Machine & | machine_ |
Machine that is being modified. More... | |
Model & | model_ |
The model. More... | |
wxComboBox * | pluginNames_ |
Plugin names combo box. More... | |
wxTextCtrl * | pluginDescription_ |
description text field More... | |
wxListCtrl * | parameterList_ |
Parameter list;. More... | |
wxButton * | editButton |
Edit button. More... | |
wxButton * | runButton |
Run button. More... | |
int | selectedParam_ |
Selected parameter, or -1. More... | |
DesignSpaceExplorer | explorer_ |
std::vector< DesignSpaceExplorerPlugin * > | plugins_ |
DesignSpaceExplorerPlugin * | selectedPlugin_ |
Explorer plugin call window.
Definition at line 52 of file CallExplorerPlugin.hh.
|
private |
Enumerator | |
---|---|
ID_TEXT | |
ID_PLUGIN_CHOOSER | |
ID_DESCRIPTION_FIELD | |
ID_PARAM_LIST | |
ID_EDIT | |
ID_RUN |
Definition at line 98 of file CallExplorerPlugin.hh.
CallExplorerPluginWindow::CallExplorerPluginWindow | ( | wxWindow * | parent, |
TTAMachine::Machine & | machine, | ||
Model & | model | ||
) |
The Constructor.
parent | Parent window of the dialog. |
addressSpace | The address space to be modified with the dialog. |
Definition at line 81 of file CallExplorerPlugin.cc.
References DesignSpaceExplorerPlugin::name(), DesignSpaceExplorerPlugin::producesArchitecture(), DesignSpaceExplorerPlugin::requiresHDB(), and DesignSpaceExplorerPlugin::requiresSimulationData().
|
virtual |
|
private |
Creates the dialog window contents.
This method was generated with wxDesigner, thus the ugly code and too long lines.
parent | The dialog window. |
call_fit | If true, fits the contents inside the dialog. |
set_sizer | If true, sets the main sizer as dialog contents. |
Definition at line 380 of file CallExplorerPlugin.cc.
|
private |
Starts parameter editor
Definition at line 310 of file CallExplorerPlugin.cc.
References ExplorerPluginParameter::name(), and ExplorerPluginParameter::value().
|
private |
|
private |
Validates input in the controls, and updates the AddressSpace.
Definition at line 189 of file CallExplorerPlugin.cc.
|
private |
Editing selected parameter
Definition at line 197 of file CallExplorerPlugin.cc.
|
private |
Parameter was doubleclicked
Definition at line 258 of file CallExplorerPlugin.cc.
|
private |
Parameter was deselected
Definition at line 275 of file CallExplorerPlugin.cc.
|
private |
Parameter was selected
Definition at line 267 of file CallExplorerPlugin.cc.
|
private |
Runs the plugin
Definition at line 206 of file CallExplorerPlugin.cc.
References DSDBManager::addArchitecture(), DSDBManager::addConfiguration(), DSDBManager::architecture(), TTAMachine::Machine::copyFromMachine(), DSDBManager::createNew(), Exception::errorMessage(), ILLEGAL_ROW_ID, machine, FileSystem::removeFileOrDirectory(), and WxConversion::toWxString().
|
private |
A plugin was selected
Definition at line 284 of file CallExplorerPlugin.cc.
References WxConversion::toString(), and WxConversion::toWxString().
|
private |
Sets texts for widgets.
Definition at line 143 of file CallExplorerPlugin.cc.
References ProDeTextGenerator::instance(), Texts::TextGenerator::text(), WxConversion::toWxString(), ProDeTextGenerator::TXT_CALL_EXPLORER_PLUGIN_TITLE, ProDeTextGenerator::TXT_COLUMN_NAME, ProDeTextGenerator::TXT_COLUMN_TYPE, and ProDeTextGenerator::TXT_COLUMN_VALUE.
|
privatevirtual |
Transfers data from the AddressSpace object to the dialog widgets.
Definition at line 179 of file CallExplorerPlugin.cc.
|
private |
Updates parameter list
Definition at line 327 of file CallExplorerPlugin.cc.
References ExplorerPluginParameter::name(), WxConversion::toWxString(), ExplorerPluginParameter::typeAsString(), and ExplorerPluginParameter::value().
|
private |
Edit button.
Definition at line 91 of file CallExplorerPlugin.hh.
|
private |
Definition at line 107 of file CallExplorerPlugin.hh.
|
private |
Machine that is being modified.
Definition at line 80 of file CallExplorerPlugin.hh.
|
private |
The model.
Definition at line 82 of file CallExplorerPlugin.hh.
|
private |
Parameter list;.
Definition at line 89 of file CallExplorerPlugin.hh.
|
private |
description text field
Definition at line 87 of file CallExplorerPlugin.hh.
|
private |
Plugin names combo box.
Definition at line 85 of file CallExplorerPlugin.hh.
|
private |
Definition at line 108 of file CallExplorerPlugin.hh.
|
private |
Run button.
Definition at line 93 of file CallExplorerPlugin.hh.
|
private |
Selected parameter, or -1.
Definition at line 95 of file CallExplorerPlugin.hh.
|
private |
Definition at line 109 of file CallExplorerPlugin.hh.