OpenASIP
2.0
|
#include <DeleteComponentCmd.hh>
Public Member Functions | |
DeleteComponentCmd () | |
virtual bool | Do () |
virtual int | id () const |
virtual DeleteComponentCmd * | create () const |
virtual std::string | shortName () const |
virtual std::string | icon () const |
virtual bool | isEnabled () |
Public Member Functions inherited from EditorCommand | |
EditorCommand (std::string name, wxWindow *parent=NULL) | |
virtual | ~EditorCommand () |
void | setView (wxView *view) |
wxView * | view () const |
Public Member Functions inherited from GUICommand | |
GUICommand (std::string name, wxWindow *parent) | |
virtual | ~GUICommand () |
virtual bool | isChecked () const |
void | setParentWindow (wxWindow *view) |
wxWindow * | parentWindow () const |
std::string | name () const |
wxCommand for deleting components from the Machine.
Definition at line 43 of file DeleteComponentCmd.hh.
DeleteComponentCmd::DeleteComponentCmd | ( | ) |
|
virtual |
Creates and returns a new instance of this command.
Implements GUICommand.
Definition at line 116 of file DeleteComponentCmd.cc.
References DeleteComponentCmd().
|
virtual |
Executes the command.
Implements GUICommand.
Definition at line 61 of file DeleteComponentCmd.cc.
References assert, Request::DELETE_REQUEST, ComponentCommand::Do(), Model::notifyObservers(), GUICommand::parentWindow(), EditPart::performRequest(), Model::popFromStack(), Model::pushToStack(), and EditorCommand::view().
|
virtual |
Returns path to the command's icon file.
Reimplemented from EditorCommand.
Definition at line 137 of file DeleteComponentCmd.cc.
References ProDeConstants::CMD_ICON_DELETE_COMP.
|
virtual |
Returns command identifier of this command.
Implements GUICommand.
Definition at line 105 of file DeleteComponentCmd.cc.
References ProDeConstants::COMMAND_DELETE_COMP.
|
virtual |
Returns true when the command is executable, false when not.
This command is executable when a block is selected, and the block can handle a delete request.
Reimplemented from EditorCommand.
Definition at line 152 of file DeleteComponentCmd.cc.
References EditPart::canHandle(), Request::DELETE_REQUEST, and MDFView::selection().
|
virtual |
Returns short version of the command name.
Reimplemented from GUICommand.
Definition at line 127 of file DeleteComponentCmd.cc.
References ProDeConstants::CMD_SNAME_DELETE_COMP.