ChangeBitmapPtrAction Class Reference

An action which undoes the modification of Grad Fill data. This action can be used for undoing changing control points. More...

#include <nodebmp.h>

Inheritance diagram for ChangeBitmapPtrAction:

Action ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 ChangeBitmapPtrAction ()
 Constructor for the action to undo fill modification.
virtual ActionCode Execute ()
 This is the virtual function that is called when the action is executed by the Undo/Redo system. This is the function that actually undoes the ChangeBitmapPtr action by changing the attribute values, and records redo information from the current values.
void StoreChanges (NodeBitmap *pBmpNode)
 This function initialises the array pointers in this action. Note that the variable NumElements is initialised in the Init function.
KernelBitmapRefGetBitmapRef ()
KernelBitmapGetBitmap ()

Static Public Member Functions

static ActionCode Init (Operation *pOp, ActionList *pActionList, Action **NewAction)
 This is the function which creates an instance of this action. If there is no room in the undo buffer (which is determined by the base class Init function called within) the function will either return AC_NO_RECORD which means the operation can continue, but no undo information needs to be stored, or AC_OK which means the operation should continue AND record undo information. If the function returns AC_FAIL, there was not enough memory to record the undo information, and the user has decided not to continue with the operation.

Protected Attributes

NodeBitmappChangedBmpNode
KernelBitmapRef BitmapRef

Detailed Description

An action which undoes the modification of Grad Fill data. This action can be used for undoing changing control points.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
24/7/94
See also:
-

Definition at line 282 of file nodebmp.h.


Constructor & Destructor Documentation

ChangeBitmapPtrAction::ChangeBitmapPtrAction  ) 
 

Constructor for the action to undo fill modification.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
27/6/95
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Definition at line 2950 of file nodebmp.cpp.

02955           :     Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>


Member Function Documentation

ActionCode ChangeBitmapPtrAction::Execute  )  [virtual]
 

This is the virtual function that is called when the action is executed by the Undo/Redo system. This is the function that actually undoes the ChangeBitmapPtr action by changing the attribute values, and records redo information from the current values.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
27/6/95
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
Action code, one of AC_OK, AC_NORECORD or AC_FAIL.

Errors: -

See also:
-

Reimplemented from Action.

Definition at line 3037 of file nodebmp.cpp.

KernelBitmap* ChangeBitmapPtrAction::GetBitmap void   )  [inline]
 

Definition at line 296 of file nodebmp.h.

00296 { return BitmapRef.GetBitmap(); }

KernelBitmapRef* ChangeBitmapPtrAction::GetBitmapRef  )  [inline]
 

Definition at line 295 of file nodebmp.h.

00295 { return &BitmapRef; }

ActionCode ChangeBitmapPtrAction::Init Operation pOp,
ActionList pActionList,
Action **  NewAction
[static]
 

This is the function which creates an instance of this action. If there is no room in the undo buffer (which is determined by the base class Init function called within) the function will either return AC_NO_RECORD which means the operation can continue, but no undo information needs to be stored, or AC_OK which means the operation should continue AND record undo information. If the function returns AC_FAIL, there was not enough memory to record the undo information, and the user has decided not to continue with the operation.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
27/6/95
Parameters:
pOp is the pointer to the operation to which this action belongs [INPUTS] pActionList is the action list to which this action should be added
NewAction is a pointer to a pointer to an action, allowing the function to return [OUTPUTS] a pointer to the created action
Returns:
ActionCode, one of AC_OK, AC_NO_RECORD or AC_FAIL

Errors: -

See also:
Action::Init()

Definition at line 2980 of file nodebmp.cpp.

02990           :     Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>

void ChangeBitmapPtrAction::StoreChanges NodeBitmap pBmpNode  ) 
 

This function initialises the array pointers in this action. Note that the variable NumElements is initialised in the Init function.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
27/6/95
Parameters:
pBmpNode,is the NodeBitmap that is being changed. [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Definition at line 3008 of file nodebmp.cpp.

03017           :     Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>


Member Data Documentation

KernelBitmapRef ChangeBitmapPtrAction::BitmapRef [protected]
 

Definition at line 301 of file nodebmp.h.

NodeBitmap* ChangeBitmapPtrAction::pChangedBmpNode [protected]
 

Definition at line 300 of file nodebmp.h.


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