|
OpenASIP 2.2
|
#include <AddCostFunctionPluginCmd.hh>


Public Member Functions | |
| AddCostFunctionPluginCmd () | |
| virtual | ~AddCostFunctionPluginCmd () |
| virtual bool | Do () |
| virtual int | id () const |
| virtual AddCostFunctionPluginCmd * | 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 adding a new cost function plugin to a HDB.
Definition at line 41 of file AddCostFunctionPluginCmd.hh.
| AddCostFunctionPluginCmd::AddCostFunctionPluginCmd | ( | ) |
The Constructor.
Definition at line 49 of file AddCostFunctionPluginCmd.cc.
Referenced by create().
|
virtual |
|
virtual |
Creates and returns a new instance of this command.
Implements GUICommand.
Definition at line 113 of file AddCostFunctionPluginCmd.cc.
References AddCostFunctionPluginCmd().

|
virtual |
Executes the command.
Implements GUICommand.
Definition at line 64 of file AddCostFunctionPluginCmd.cc.
References HDB::HDBManager::addCostFunctionPlugin(), HDB::CostFunctionPlugin::COST_FU, GUICommand::parentWindow(), and HDB::HDBManager::removeCostFunctionPlugin().

|
virtual |
Returns name of the command icon file.
Implements GUICommand.
Definition at line 91 of file AddCostFunctionPluginCmd.cc.
|
virtual |
Returns the command identifier.
Implements GUICommand.
Definition at line 102 of file AddCostFunctionPluginCmd.cc.
References HDBEditorConstants::COMMAND_ADD_COST_PLUGIN.
|
virtual |
Returns true if the command should be enabled in menu/toolbar, false if not.
Implements GUICommand.
Definition at line 124 of file AddCostFunctionPluginCmd.cc.