|
OpenASIP 2.2
|
#include <OSEdModifyBehaviorCmd.hh>


Public Member Functions | |
| OSEdModifyBehaviorCmd () | |
| virtual | ~OSEdModifyBehaviorCmd () |
| virtual int | id () const |
| virtual GUICommand * | create () const |
| virtual bool | Do () |
| virtual bool | isEnabled () |
| virtual std::string | icon () const |
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 |
Private Member Functions | |
| OSEdModifyBehaviorCmd (const OSEdModifyBehaviorCmd &) | |
| Copying not allowed. | |
| OSEdModifyBehaviorCmd & | operator= (const OSEdModifyBehaviorCmd &) |
| Assignment not allowed. | |
Command for modifying operation behavior.
Definition at line 43 of file OSEdModifyBehaviorCmd.hh.
| OSEdModifyBehaviorCmd::OSEdModifyBehaviorCmd | ( | ) |
Constructor.
Definition at line 54 of file OSEdModifyBehaviorCmd.cc.
Referenced by create().
|
virtual |
|
private |
Copying not allowed.
|
virtual |
Creates a new command.
Implements GUICommand.
Definition at line 80 of file OSEdModifyBehaviorCmd.cc.
References OSEdModifyBehaviorCmd().

|
virtual |
Executes the command.
Implements GUICommand.
Definition at line 90 of file OSEdModifyBehaviorCmd.cc.
References OSEdConstants::APPLICATION_NAME, assert, OSEdConstants::BEHAVIOR_TEMPLATE_FILE_NAME, FileSystem::copy(), Environment::dataDirPath(), FileSystem::DIRECTORY_SEPARATOR, false, FileSystem::fileExists(), OSEdTextGenerator::instance(), OSEdTreeView::moduleIdOfOperation(), OSEdTreeView::moduleOfOperation(), options, GUICommand::parentWindow(), OSEdTreeView::pathOfModule(), OSEdTreeView::selectedOperationId(), Texts::TextGenerator::text(), WxConversion::toString(), WxConversion::toWxString(), OSEdTextGenerator::TXT_ERROR_NO_EDITOR, and OSEdTextGenerator::TXT_ERROR_OPEN.

|
virtual |
Returns the icon path.
Implements GUICommand.
Definition at line 179 of file OSEdModifyBehaviorCmd.cc.
|
virtual |
Returns the id of the command.
Implements GUICommand.
Definition at line 70 of file OSEdModifyBehaviorCmd.cc.
References OSEdConstants::CMD_MODIFY_BEHAVIOR.
|
virtual |
Returns true if command is enabled.
Command is enable when path of the selected operation is writable.
Implements GUICommand.
Definition at line 155 of file OSEdModifyBehaviorCmd.cc.
References FileSystem::fileIsWritable(), OSEdTreeView::isOperationSelected(), OSEdTreeView::moduleIdOfOperation(), OSEdTreeView::moduleOfOperation(), OSEdTreeView::pathOfModule(), and OSEdTreeView::selectedOperationId().

|
private |
Assignment not allowed.