|
OpenASIP 2.2
|
#include <CopyComponent.hh>


Public Member Functions | |
| CopyComponent (EditPart *editPart) | |
| ~CopyComponent () | |
| bool | Do () |
| bool | Undo () |
Public Member Functions inherited from ComponentCommand | |
| ComponentCommand () | |
| virtual | ~ComponentCommand () |
| wxWindow * | parentWindow () |
| void | setParentWindow (wxWindow *window) |
Private Attributes | |
| EditPart * | editPart_ |
| Component to copy. | |
Command for copying components to the clipboard.
Definition at line 42 of file CopyComponent.hh.
| CopyComponent::CopyComponent | ( | EditPart * | editPart | ) |
The Constructor.
| editPart | Function unit to delete. |
Definition at line 46 of file CopyComponent.cc.
| CopyComponent::~CopyComponent | ( | ) |
|
virtual |
Executes the command.
Implements ComponentCommand.
Definition at line 63 of file CopyComponent.cc.
References assert, editPart_, ProDeClipboard::instance(), TTAMachine::Component::machine(), EditPart::model(), TTAMachine::Component::saveState(), and ProDeClipboard::setContents().

| bool CopyComponent::Undo | ( | ) |
Undoing this command is not possible, returns always false.
Definition at line 78 of file CopyComponent.cc.
|
private |