OpenASIP
2.0
|
#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. More... | |
OSEdAddModuleCmd & | operator= (const OSEdAddModuleCmd &) |
Assignment not allowed. More... | |
Command for adding new module to operation set.
Definition at line 43 of file OSEdAddModuleCmd.hh.
OSEdAddModuleCmd::OSEdAddModuleCmd | ( | ) |
|
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(), AddModuleDialog::name(), OperationModule::name(), OperationContainer::operationIndex(), OperationContainer::operationSerializer(), GUICommand::parentWindow(), OperationModule::propertiesModule(), OSEdTreeView::selectedPath(), OSEdTreeView::selectedPathId(), OperationSerializer::setDestinationFile(), Texts::TextGenerator::text(), WxConversion::toWxString(), OSEdMainFrame::treeView(), OSEdTextGenerator::TXT_ERROR_CAN_NOT_CREATE_MOD, OSEdTreeView::update(), and OperationSerializer::writeState().
|
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.