wxShapeFramework  1.13.0 beta
wxSFCanvasState Class Reference

Class which stores one saved state of the shape canvas. The instaces of this class are managed by the wxSFCanvasHistory class which performs all related Undo/Redo operations. More...

#include <CanvasState.h>

Collaboration diagram for wxSFCanvasState:

List of all members.

Public Member Functions

 wxSFCanvasState (wxStreamBuffer *data)
 Constructor for 'histUSE_SERIALIZATION' mode.
 wxSFCanvasState (wxSFDiagramManager *data)
 Constructor for 'histUSE_CLONING' mode.
 ~wxSFCanvasState (void)
 Destructor.

Protected Member Functions

void Restore (wxSFShapeCanvas *canvas)
 Restore stored canvas state.

Protected Attributes

wxMemoryBuffer m_dataBuffer
 Memory buffer used during the serialization/deserialization operations.
wxSFDiagramManagerm_pDataManager
 Data manager used for storing of temporal canvas state.

Friends

class wxSFCanvasHistory

Detailed Description

Class which stores one saved state of the shape canvas. The instaces of this class are managed by the wxSFCanvasHistory class which performs all related Undo/Redo operations.

See also:
wxSFShapeCanvas

Constructor & Destructor Documentation

wxSFCanvasState::wxSFCanvasState ( wxStreamBuffer *  data)

Constructor for 'histUSE_SERIALIZATION' mode.

Parameters:
dataPointer to the stream buffer containig serialized content of the shape canvas

Constructor for 'histUSE_CLONING' mode.

Parameters:
dataPointer to temporal data manager

Destructor.


Member Function Documentation

void wxSFCanvasState::Restore ( wxSFShapeCanvas canvas) [protected]

Restore stored canvas state.

Parameters:
canvasPointer to the shape canvas which content will be replaced by the stored one

Friends And Related Function Documentation

friend class wxSFCanvasHistory [friend]

Member Data Documentation

wxMemoryBuffer wxSFCanvasState::m_dataBuffer [protected]

Memory buffer used during the serialization/deserialization operations.

Data manager used for storing of temporal canvas state.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines