UndoableOpDescriptor Class Reference

All undoable operations should be registered using an UndoableOpDescriptor. The only difference between an UndoableOpDescriptor and an OpDescriptor is that the Operation Flags are set to different default values. More...

#include <opdesc.h>

Inheritance diagram for UndoableOpDescriptor:

OpDescriptor MessageHandler ListItem CCObject SimpleCCObject ChangeFeatherProfileOpDesc ChangeFeatherSizeSliderOpDesc OpChangeLineAttribOpDesc OpChangeLineWidthOpDesc OpChangeLineCapOpDesc OpChangeLineJoinOpDesc List of all members.

Public Member Functions

 UndoableOpDescriptor (UINT32 toolID, UINT32 txID, CCRuntimeClass *Op, TCHAR *tok, pfnGetState gs, UINT32 helpId=0, UINT32 bubbleID=0, UINT32 resourceID=0, UINT32 controlID=0, BOOL ReceiveMessages=FALSE, BOOL Smart=FALSE, BOOL Clean=FALSE, UINT32 OneOpenInstID=0, UINT32 AutoStateFlags=0, BOOL fCheckable=FALSE)
 Construct a new UndoableOpDescriptor object and link it into the list of all OpDescriptors.

Public Attributes

UINT32 ToolId

Detailed Description

All undoable operations should be registered using an UndoableOpDescriptor. The only difference between an UndoableOpDescriptor and an OpDescriptor is that the Operation Flags are set to different default values.

Author:
Simon_Maneggio (Xara Group Ltd) <camelotdev@xara.com>
Date:
16/8/93
See also:
operation

Definition at line 693 of file opdesc.h.


Constructor & Destructor Documentation

UndoableOpDescriptor::UndoableOpDescriptor UINT32  toolID,
UINT32  txID,
CCRuntimeClass Op,
TCHAR tok,
pfnGetState  gs,
UINT32  helpID = 0,
UINT32  bubbleID = 0,
UINT32  resourceID = 0,
UINT32  controlID = 0,
BOOL  ReceiveMessages = FALSE,
BOOL  Smart = FALSE,
BOOL  Clean = FALSE,
UINT32  OneOpenInstID = 0,
UINT32  AutoStateFlags = 0,
BOOL  fCheckable = FALSE
 

Construct a new UndoableOpDescriptor object and link it into the list of all OpDescriptors.

Author:
Simon_Maneggio (Xara Group Ltd) <camelotdev@xara.com>
Date:
10/8/93
Parameters:
[INPUTS] toolID - Tool Identifier defining which tool (0 for kernel) holds resource txID - Text description resource Identifier tok - pointer to a static string that describe the operation gs - pointer to the GetState function in your operation
The following flags specify the type of the operation. They have default values for a normal undoable operation.

ReceiveMessages - Should the Opdescriptor receive messages Smart - Smart Duplicate Clean - does the operation change the document

helpId - Help Identifier that acts as an index into a help file bubbleID - string resource for "bubble help" text. resourceID - resource identifier in which to find control to be associated with this OpDescriptor. controlID - control in resource.

Returns:
Errors: ENSURE fails if any of the params are NULL (ie leaving params off is NOT allowed.

Definition at line 1569 of file opdesc.cpp.

01587   :OpDescriptor( toolID,  txID, Op, tok, gs, helpID, bubbleID, resourceID, controlID, ReceiveMessages, 
01588                 Smart, Clean, OneOpenInstID, AutoStateFlags, fCheckable) 
01589 {
01590     
01591 }


Member Data Documentation

UINT32 UndoableOpDescriptor::ToolId
 

Definition at line 728 of file opdesc.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 04:02:35 2007 for Camelot by  doxygen 1.4.4