The Gnome Chemistry Utils
0.14.0
|
#include <gcp/operation.h>
Public Member Functions | |
AddOperation (gcp::Document *pDoc, unsigned long ID) | |
void | Undo () |
void | Redo () |
Public Member Functions inherited from gcp::Operation | |
Operation (Document *pDoc, unsigned long ID) | |
virtual void | AddObject (gcu::Object *pObject, unsigned type=0) |
virtual void | AddNode (xmlNodePtr node, unsigned type=0) |
Additional Inherited Members | |
Protected Member Functions inherited from gcp::Operation | |
void | Add (unsigned type=0) |
void | Delete (unsigned type=0) |
Protected Attributes inherited from gcp::Operation | |
xmlNodePtr * | m_Nodes |
Operation class representing objects additions.
Definition at line 156 of file operation.h.
gcp::AddOperation::AddOperation | ( | gcp::Document * | pDoc, |
unsigned long | ID | ||
) |
pDoc | a document. |
ID | a unique operation ID for the document and the session. |
Creates a new AddOperation. Operations should always created by calls to Document::GetNewOperation().
|
virtual |
Redo the additions represented by this operation.
Implements gcp::Operation.
|
virtual |
Undo the additions represented by this operation.
Implements gcp::Operation.