| OpenASIP 2.2
    | 
#include <CopyComponentCmd.hh>


| Public Member Functions | |
| CopyComponentCmd () | |
| virtual bool | Do () | 
| virtual int | id () const | 
| virtual CopyComponentCmd * | 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 copying machine components to the clipboard.
Definition at line 43 of file CopyComponentCmd.hh.
| CopyComponentCmd::CopyComponentCmd | ( | ) | 
The Constructor.
Definition at line 50 of file CopyComponentCmd.cc.
Referenced by create().
| 
 | virtual | 
Creates and returns a new instance of this command.
Implements GUICommand.
Definition at line 108 of file CopyComponentCmd.cc.
References CopyComponentCmd().

| 
 | virtual | 
Executes the command.
Implements GUICommand.
Definition at line 62 of file CopyComponentCmd.cc.
References assert, Request::COPY_REQUEST, ComponentCommand::Do(), GUICommand::parentWindow(), EditPart::performRequest(), ComponentCommand::setParentWindow(), and EditorCommand::view().

| 
 | virtual | 
Returns path to the command's icon file.
Reimplemented from EditorCommand.
Definition at line 120 of file CopyComponentCmd.cc.
References ProDeConstants::CMD_ICON_COPY.
| 
 | virtual | 
Returns command identifier of this command.
Implements GUICommand.
Definition at line 97 of file CopyComponentCmd.cc.
References ProDeConstants::COMMAND_COPY.
| 
 | 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.
Reimplemented from EditorCommand.
Definition at line 135 of file CopyComponentCmd.cc.
References EditPart::canHandle(), Request::COPY_REQUEST, and MDFView::selection().
