ObjChangePathEdit Class Reference

A derived change parameter for use in path editing. It is exactly the same as ObjChangeParam apart from providing a path pointer, for use during eor drags, to describe the current state of the dragged path. Obviously this cannot be determined from the tree object until it has been updated when the drag finishes. More...

#include <objchge.h>

Inheritance diagram for ObjChangePathEdit:

ObjChangeParam CCObject SimpleCCObject List of all members.

Public Member Functions

 ObjChangePathEdit ()
 Constructor for the ObjChangePathEdit class.
 ~ObjChangePathEdit ()
 Destructor for the ObjChangePathEdit class.
void Define (ObjChangeType, ObjChangeFlags, Node *, UndoableOperation *, Path *, Spread *)
 Initialises an ObjChangePathEdit parameter block.
ChangeCode ObjChangeStarting (Node *, UndoableOperation *, Path *, Spread *, BOOL)
 Initialises an ObjChangePathEdit parameter block with a ChangeStarting message.
ChangeCode RenderCurrentBlobs (Node *, UndoableOperation *, Path *, Spread *, BOOL)
ChangeCode RenderChangedBlobs (Node *, UndoableOperation *, Path *, Spread *, BOOL)
ChangeCode ObjChangeFinished (Node *, UndoableOperation *, Path *, Spread *, BOOL)
ChangeCode ObjChangeFailed (Node *, UndoableOperation *, Path *, Spread *, BOOL)
 Send the parents of cNode an OBJCHANGE_FAILED message.

Public Attributes

PathpChangePath
SpreadpChangeSpread

Detailed Description

A derived change parameter for use in path editing. It is exactly the same as ObjChangeParam apart from providing a path pointer, for use during eor drags, to describe the current state of the dragged path. Obviously this cannot be determined from the tree object until it has been updated when the drag finishes.

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com> Date: 10/01/95
See also:

Definition at line 288 of file objchge.h.


Constructor & Destructor Documentation

ObjChangePathEdit::ObjChangePathEdit  ) 
 

Constructor for the ObjChangePathEdit class.

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
09/01/95

Definition at line 341 of file objchge.cpp.

00341                                      : ObjChangeParam()
00342 {
00343     pChangePath = NULL;
00344     pChangeSpread = NULL;
00345 }

ObjChangePathEdit::~ObjChangePathEdit  ) 
 

Destructor for the ObjChangePathEdit class.

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
09/01/95

Definition at line 358 of file objchge.cpp.

00359 {
00360 }


Member Function Documentation

void ObjChangePathEdit::Define ObjChangeType  cType,
ObjChangeFlags  cFlags,
Node cNode,
UndoableOperation cOp,
Path cPath,
Spread cSpread
 

Initialises an ObjChangePathEdit parameter block.

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
09/01/95
Parameters:
cType = a change type [INPUTS] cFlags = change flags cNode = a pointer to the node thats changing cOp = a pointer to the current operation (NULL if the change is occuring in a none undoable way) cPath = a pointer to the current version of the path (can be NULL for all but PRE and POSTCHANGE parameters) cSpread = a pointer to a spread (can be NULL for all but PRE and POSTCHANGE parameters)
Returns:
-

Definition at line 388 of file objchge.cpp.

00394 {
00395     ERROR3IF(cPath==NULL,"ObjChangePathEdit::Define() called with a null edit path");
00396     ERROR3IF(cSpread==NULL,"ObjChangePathEdit::Define() called with a null edit Spread");
00397 
00398     ObjChangeParam::Define(cType,cFlags,cNode,cOp);
00399 
00400     // Now set the internal variables
00401     pChangePath = cPath;
00402     pChangeSpread = cSpread;
00403 }

ChangeCode ObjChangePathEdit::ObjChangeFailed Node cNode,
UndoableOperation cOp,
Path cPath,
Spread cSpread,
BOOL  All
 

Send the parents of cNode an OBJCHANGE_FAILED message.

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
12/01/95
Parameters:
See ObjChangeStarting [INPUTS]

Definition at line 554 of file objchge.cpp.

00559 {
00560     // Create some change flags
00561     ObjChangeFlags ChgeFlags;
00562     // Now define the change block                 
00563     Define(OBJCHANGE_FAILED,ChgeFlags,cNode,cOp,cPath,cSpread);
00564     return (cNode->WarnParentOfChange(this,All));
00565 }

ChangeCode ObjChangePathEdit::ObjChangeFinished Node cNode,
UndoableOperation cOp,
Path cPath,
Spread cSpread,
BOOL  All
 

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
12/01/95
Parameters:
See ObjChangeStarting [INPUTS]

Definition at line 524 of file objchge.cpp.

00529 {
00530     // Create some change flags
00531     ObjChangeFlags ChgeFlags;
00532     // Now define the change block                 
00533     Define(OBJCHANGE_FINISHED,ChgeFlags,cNode,cOp,cPath,cSpread);
00534     return (cNode->WarnParentOfChange(this,All));
00535 }

ChangeCode ObjChangePathEdit::ObjChangeStarting Node cNode,
UndoableOperation cOp,
Path cPath,
Spread cSpread,
BOOL  All
 

Initialises an ObjChangePathEdit parameter block with a ChangeStarting message.

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
12/01/95
Parameters:
cNode = a pointer to the node thats changing [INPUTS] cOp = a pointer to the current operation (NULL if the change is occuring in a none undoable way) cPath = a pointer to the current version of the path (can be NULL for all but PRE and POSTCHANGE parameters) cSpread = a pointer to a spread (can be NULL for all but PRE and POSTCHANGE parameters) All = a bool, used to send the message to all of cNodes parents if TRUE or just its immediate parent if FALSE;
Returns:
ChangeCode

Definition at line 432 of file objchge.cpp.

00437 {
00438     // Create some change flags
00439     ObjChangeFlags ChgeFlags;
00440     // Now define the change block                 
00441     Define(OBJCHANGE_STARTING,ChgeFlags,cNode,cOp,cPath,cSpread);
00442     // Send the message to the nodes parents
00443     ChangeCode Chge = cNode->WarnParentOfChange(this,All);
00444     // Correct the message mask returned
00445     ChangeMask.CorrectMask();
00446 
00447     return Chge;
00448 }

ChangeCode ObjChangePathEdit::RenderChangedBlobs Node cNode,
UndoableOperation cOp,
Path cPath,
Spread cSpread,
BOOL  All
 

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
12/01/95
Parameters:
See ObjChangeStarting [INPUTS]

Definition at line 495 of file objchge.cpp.

00500 {
00501     // Create some change flags
00502     ObjChangeFlags ChgeFlags;
00503     // Now define the change block                 
00504     Define(OBJCHANGE_RENDERCHANGEDBLOBS,ChgeFlags,cNode,cOp,cPath,cSpread);
00505     return (cNode->WarnParentOfChange(this,All));
00506 }

ChangeCode ObjChangePathEdit::RenderCurrentBlobs Node cNode,
UndoableOperation cOp,
Path cPath,
Spread cSpread,
BOOL  All
 

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
12/01/95
Parameters:
See ObjChangeStarting [INPUTS]

Definition at line 466 of file objchge.cpp.

00471 {
00472     // Create some change flags
00473     ObjChangeFlags ChgeFlags;
00474     // Now define the change block                 
00475     Define(OBJCHANGE_RENDERCURRENTBLOBS,ChgeFlags,cNode,cOp,cPath,cSpread);
00476     return (cNode->WarnParentOfChange(this,All));
00477 }


Member Data Documentation

Path* ObjChangePathEdit::pChangePath
 

Definition at line 304 of file objchge.h.

Spread* ObjChangePathEdit::pChangeSpread
 

Definition at line 305 of file objchge.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:57:15 2007 for Camelot by  doxygen 1.4.4