OpenASIP
2.0
|
#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. More... | |
OSEdAddOperationCmd | operator= (OSEdAddOperationCmd &) |
Assignment not allowed. More... | |
Command for adding new operation to operation set.
Definition at line 43 of file OSEdAddOperationCmd.hh.
OSEdAddOperationCmd::OSEdAddOperationCmd | ( | ) |
|
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(), OperationContainer::module(), Operation::name(), OperationPropertyDialog::operation(), OperationContainer::operation(), OperationIndex::operationCount(), OperationContainer::operationIndex(), OperationIndex::operationName(), OperationContainer::operationSerializer(), GUICommand::parentWindow(), OSEdTreeView::pathOfModule(), OperationModule::propertiesModule(), 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.