OpenASIP
2.0
|
#include <OSEdRemoveModuleCmd.hh>
Public Member Functions | |
OSEdRemoveModuleCmd () | |
virtual | ~OSEdRemoveModuleCmd () |
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 | |
OSEdRemoveModuleCmd (const OSEdRemoveModuleCmd &) | |
Copying not allowed. More... | |
OSEdRemoveModuleCmd & | operator= (const OSEdRemoveModuleCmd &) |
Assignment not allowed. More... | |
Command for removing a module.
Definition at line 43 of file OSEdRemoveModuleCmd.hh.
OSEdRemoveModuleCmd::OSEdRemoveModuleCmd | ( | ) |
|
virtual |
|
private |
Copying not allowed.
|
virtual |
Returns a new command.
Implements GUICommand.
Definition at line 84 of file OSEdRemoveModuleCmd.cc.
References OSEdRemoveModuleCmd().
|
virtual |
Executes the command.
Implements GUICommand.
Definition at line 94 of file OSEdRemoveModuleCmd.cc.
References assert, OperationModule::behaviorModule(), OperationModule::behaviorSourceModule(), OperationModule::definesBehavior(), FileSystem::fileOfPath(), OperationModule::hasBehaviorSource(), OSEdTreeView::infoView(), OSEdTextGenerator::instance(), OperationContainer::module(), OSEdInfoView::moduleView(), OperationContainer::operationIndex(), GUICommand::parentWindow(), OSEdTreeView::pathOfModule(), OperationModule::propertiesModule(), FileSystem::removeFileOrDirectory(), OSEdTreeView::removeItem(), OperationIndex::removeModule(), OSEdTreeView::selectedModule(), OSEdTreeView::selectedModuleId(), Texts::TextGenerator::text(), WxConversion::toWxString(), OSEdTextGenerator::TXT_QUESTION_REMOVE_BEHAVIOR_FILE, and OSEdTextGenerator::TXT_QUESTION_REMOVE_MODULE.
|
virtual |
Returns icon path.
Implements GUICommand.
Definition at line 169 of file OSEdRemoveModuleCmd.cc.
|
virtual |
Returns the id of the command.
Implements GUICommand.
Definition at line 74 of file OSEdRemoveModuleCmd.cc.
References OSEdConstants::CMD_REMOVE_MODULE.
|
virtual |
Returns true if command is enabled.
Implements GUICommand.
Definition at line 145 of file OSEdRemoveModuleCmd.cc.
References assert, FileSystem::fileIsWritable(), OSEdTreeView::isModuleSelected(), OSEdTreeView::pathOfModule(), and OSEdTreeView::selectedModuleId().
|
private |
Assignment not allowed.