OpenASIP
2.0
|
#include <SetCostFunctionPluginCmd.hh>
Public Member Functions | |
SetCostFunctionPluginCmd () | |
virtual | ~SetCostFunctionPluginCmd () |
virtual bool | Do () |
virtual int | id () const |
virtual SetCostFunctionPluginCmd * | create () const |
virtual std::string | icon () const |
virtual bool | isEnabled () |
Public Member Functions inherited from GUICommand | |
GUICommand (std::string name, wxWindow *parent) | |
virtual | ~GUICommand () |
virtual bool | isChecked () const |
virtual std::string | shortName () const |
void | setParentWindow (wxWindow *view) |
wxWindow * | parentWindow () const |
std::string | name () const |
Command for setting cost function plugin for HDB entries.
Definition at line 41 of file SetCostFunctionPluginCmd.hh.
SetCostFunctionPluginCmd::SetCostFunctionPluginCmd | ( | ) |
|
virtual |
|
virtual |
Creates and returns a new instance of the command.
Implements GUICommand.
Definition at line 164 of file SetCostFunctionPluginCmd.cc.
References SetCostFunctionPluginCmd().
|
virtual |
Executes the command.
Implements GUICommand.
Definition at line 63 of file SetCostFunctionPluginCmd.cc.
References HDB::HDBManager::costFunctionPluginByID(), HDB::HDBManager::costFunctionPluginIDs(), HDBBrowserWindow::isFUEntrySelected(), HDBBrowserWindow::isRFEntrySelected(), HDB::CostFunctionPlugin::name(), GUICommand::parentWindow(), HDBBrowserWindow::selectedFUEntry(), HDBBrowserWindow::selectedRFEntry(), HDBBrowserWindow::selectFUEntry(), HDBBrowserWindow::selectRFEntry(), HDB::HDBManager::setCostFunctionPluginForFU(), HDB::HDBManager::setCostFunctionPluginForRF(), WxConversion::toWxString(), HDB::HDBManager::unsetCostFunctionPluginForFU(), and HDB::HDBManager::unsetCostFunctionPluginForRF().
|
virtual |
Returns name of the command icon file.
Implements GUICommand.
Definition at line 141 of file SetCostFunctionPluginCmd.cc.
|
virtual |
Returns the command id.
Implements GUICommand.
Definition at line 153 of file SetCostFunctionPluginCmd.cc.
References HDBEditorConstants::COMMAND_SET_COST_PLUGIN.
|
virtual |
Returns true if the command should be enabled in the menu/toolbar.
Implements GUICommand.
Definition at line 174 of file SetCostFunctionPluginCmd.cc.
References HDBBrowserWindow::isFUEntrySelected(), and HDBBrowserWindow::isRFEntrySelected().