OpenASIP
2.0
|
#include <ModifyComponentCmd.hh>
Public Member Functions | |
ModifyComponentCmd () | |
virtual bool | Do () |
virtual int | id () const |
virtual ModifyComponentCmd * | 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 modifying components in the Machine.
Definition at line 43 of file ModifyComponentCmd.hh.
ModifyComponentCmd::ModifyComponentCmd | ( | ) |
|
virtual |
Creates and returns a new instance of this command.
Implements GUICommand.
Definition at line 117 of file ModifyComponentCmd.cc.
References ModifyComponentCmd().
|
virtual |
Executes the command.
Implements GUICommand.
Definition at line 61 of file ModifyComponentCmd.cc.
References assert, ComponentCommand::Do(), Request::MODIFY_REQUEST, Model::notifyObservers(), GUICommand::parentWindow(), EditPart::performRequest(), Model::popFromStack(), Model::pushToStack(), ComponentCommand::setParentWindow(), and EditorCommand::view().
Referenced by SelectTool::onMouseEvent().
|
virtual |
Returns path to the command's icon file.
Reimplemented from EditorCommand.
Definition at line 138 of file ModifyComponentCmd.cc.
References ProDeConstants::CMD_ICON_MODIFY_COMP.
|
virtual |
Returns command identifier of this command.
Implements GUICommand.
Definition at line 106 of file ModifyComponentCmd.cc.
References ProDeConstants::COMMAND_MODIFY_COMP.
|
virtual |
Returns true when the command is executable, false when not.
This command is executable when a block is selected, and the selected block can handle modify requests.
Reimplemented from EditorCommand.
Definition at line 153 of file ModifyComponentCmd.cc.
References EditPart::canHandle(), Request::MODIFY_REQUEST, and MDFView::selection().
|
virtual |
Returns short version of the command name.
Reimplemented from GUICommand.
Definition at line 128 of file ModifyComponentCmd.cc.
References ProDeConstants::CMD_SNAME_MODIFY_COMP.