OpenASIP
2.0
|
#include <CutComponentCmd.hh>
Public Member Functions | |
CutComponentCmd () | |
virtual bool | Do () |
virtual int | id () const |
virtual CutComponentCmd * | create () 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 |
virtual std::string | shortName () const |
void | setParentWindow (wxWindow *view) |
wxWindow * | parentWindow () const |
std::string | name () const |
Command for cutting machine components to the clipboard.
Definition at line 43 of file CutComponentCmd.hh.
CutComponentCmd::CutComponentCmd | ( | ) |
|
virtual |
Creates and returns a new instance of this command.
Implements GUICommand.
Definition at line 121 of file CutComponentCmd.cc.
References CutComponentCmd().
|
virtual |
Executes the command.
Implements GUICommand.
Definition at line 61 of file CutComponentCmd.cc.
References assert, Request::COPY_REQUEST, Request::DELETE_REQUEST, ComponentCommand::Do(), Model::notifyObservers(), GUICommand::parentWindow(), EditPart::performRequest(), Model::pushToStack(), ComponentCommand::setParentWindow(), and EditorCommand::view().
|
virtual |
Returns path to the command's icon file.
Reimplemented from EditorCommand.
Definition at line 133 of file CutComponentCmd.cc.
References ProDeConstants::CMD_ICON_CUT.
|
virtual |
Returns command identifier of this command.
Implements GUICommand.
Definition at line 110 of file CutComponentCmd.cc.
References ProDeConstants::COMMAND_CUT.
|
virtual |
Returns true when the command is executable, false when not.
This command is executable when a component is selected, and the selected component can be copied and deleted.
Reimplemented from EditorCommand.
Definition at line 148 of file CutComponentCmd.cc.
References EditPart::canHandle(), Request::COPY_REQUEST, Request::DELETE_REQUEST, and MDFView::selection().