The Gnome Chemistry Utils  0.14.0
Public Member Functions | List of all members
gcp::ModifyOperation Class Reference

#include <gcp/operation.h>

Inheritance diagram for gcp::ModifyOperation:
gcp::Operation

Public Member Functions

 ModifyOperation (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

Detailed Description

Operation class representing objects modifications.

Definition at line 208 of file operation.h.

Constructor & Destructor Documentation

gcp::ModifyOperation::ModifyOperation ( gcp::Document pDoc,
unsigned long  ID 
)
Parameters
pDoca document.
IDa unique operation ID for the document and the session.

Creates a new ModifyOperation. Operations should always created by calls to Document::GetNewOperation().

Member Function Documentation

void gcp::ModifyOperation::Redo ( )
virtual

Redo the modifications represented by this operation.

Implements gcp::Operation.

void gcp::ModifyOperation::Undo ( )
virtual

Undo the modifications represented by this operation.

Implements gcp::Operation.


The documentation for this class was generated from the following file: