The Gnome Chemistry Utils
0.14.0
|
#include <gcp/operation.h>
Public Member Functions | |
DeleteOperation (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 deletions.
Definition at line 182 of file operation.h.
gcp::DeleteOperation::DeleteOperation | ( | gcp::Document * | pDoc, |
unsigned long | ID | ||
) |
pDoc | a document. |
ID | a unique operation ID for the document and the session. |
Creates a new DeleteOperation. Operations should always created by calls to Document::GetNewOperation().
|
virtual |
Redo the deletions represented by this operation.
Implements gcp::Operation.
|
virtual |
Undo the deletions represented by this operation.
Implements gcp::Operation.