|
OpenASIP 2.2
|
#include <OSEdAddModuleCmd.hh>


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

|
virtual |
Executes the command.
Implements GUICommand.
Definition at line 93 of file OSEdAddModuleCmd.cc.
References OSEdTreeView::addItem(), OperationIndex::addModule(), OperationIndex::addPath(), FileSystem::createDirectory(), FileSystem::fileExists(), OSEdTextGenerator::instance(), OperationContainer::operationIndex(), OperationContainer::operationSerializer(), GUICommand::parentWindow(), OSEdTreeView::selectedPath(), OSEdTreeView::selectedPathId(), Texts::TextGenerator::text(), WxConversion::toWxString(), OSEdMainFrame::treeView(), OSEdTextGenerator::TXT_ERROR_CAN_NOT_CREATE_MOD, and OSEdTreeView::update().

|
virtual |
Return icon path.
Implements GUICommand.
Definition at line 181 of file OSEdAddModuleCmd.cc.
|
virtual |
Returns the id of the command.
Implements GUICommand.
Definition at line 73 of file OSEdAddModuleCmd.cc.
References OSEdConstants::CMD_ADD_MODULE.
|
virtual |
Returns true if command is enabled.
Implements GUICommand.
Definition at line 150 of file OSEdAddModuleCmd.cc.
References FileSystem::createDirectory(), FileSystem::createFile(), FileSystem::DIRECTORY_SEPARATOR, FileSystem::fileExists(), FileSystem::removeFileOrDirectory(), and OSEdTreeView::selectedPath().

|
private |
Assignment not allowed.