|
OpenASIP 2.2
|
#include <OSEdAddOperationCmd.hh>


Public Member Functions | |
| OSEdAddOperationCmd () | |
| virtual | ~OSEdAddOperationCmd () |
| 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 | |
| OSEdAddOperationCmd (const OSEdAddOperationCmd &) | |
| Copying not allowed. | |
| OSEdAddOperationCmd | operator= (OSEdAddOperationCmd &) |
| Assignment not allowed. | |
Command for adding new operation to operation set.
Definition at line 43 of file OSEdAddOperationCmd.hh.
| OSEdAddOperationCmd::OSEdAddOperationCmd | ( | ) |
Constructor.
Definition at line 57 of file OSEdAddOperationCmd.cc.
Referenced by create().
|
virtual |
|
private |
Copying not allowed.
|
virtual |
Creates a new command.
Implements GUICommand.
Definition at line 83 of file OSEdAddOperationCmd.cc.
References OSEdAddOperationCmd().

|
virtual |
Executes the command.
Implements GUICommand.
Definition at line 91 of file OSEdAddOperationCmd.cc.
References ObjectState::addChild(), OSEdTreeView::addItem(), assert, Exception::errorMessage(), NullOperationModule::instance(), Operation::name(), OperationPropertyDialog::operation(), OperationContainer::operation(), OperationIndex::operationCount(), OperationContainer::operationIndex(), OperationIndex::operationName(), OperationContainer::operationSerializer(), GUICommand::parentWindow(), OSEdTreeView::pathOfModule(), OperationIndex::refreshModule(), Operation::saveState(), OSEdTreeView::selectedModule(), OSEdTreeView::selectedModuleId(), OperationSerializer::setDestinationFile(), WxConversion::toWxString(), OSEdMainFrame::treeView(), OSEdTreeView::update(), and OperationSerializer::writeState().

|
virtual |
Returns the icon path.
Implements GUICommand.
Definition at line 178 of file OSEdAddOperationCmd.cc.
|
virtual |
Returns the id of the command.
Implements GUICommand.
Definition at line 73 of file OSEdAddOperationCmd.cc.
References OSEdConstants::CMD_ADD_OPERATION.
|
virtual |
Returns true, if command is enabled.
Operation can be added, if path is writable.
Implements GUICommand.
Definition at line 154 of file OSEdAddOperationCmd.cc.
References FileSystem::createFile(), FileSystem::DIRECTORY_SEPARATOR, OSEdTreeView::pathOfModule(), FileSystem::removeFileOrDirectory(), OSEdTreeView::selectedModule(), and OSEdTreeView::selectedModuleId().

|
private |
Assignment not allowed.