OpChangeLayerColour Class Reference

Allows layers to have their colour changed. More...

#include <prpsgds.h>

Inheritance diagram for OpChangeLayerColour:

UndoableOperation Operation MessageHandler ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 OpChangeLayerColour ()
 Default constructor.
 ~OpChangeLayerColour ()
 Default destructor.
virtual void DoWithParam (OpDescriptor *pOpDesc, OpParam *pOpParam)
 Does the changing of the layer's colour pOpParam should point to a OpChangeLayerColourParam.
void GetOpName (String_256 *OpName)
 Gets the name of the op for the undo/redo menu item.

Static Public Member Functions

static BOOL Init ()
 Initialises the operation by registering an op descriptor for it.
static OpState GetState (String_256 *Description, OpDescriptor *)
 Func for finding out whether this op is useable or not.

Private Member Functions

 CC_DECLARE_DYNCREATE (OpChangeLayerColour)

Private Attributes

UINT32 UndoIDS

Detailed Description

Allows layers to have their colour changed.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
11/10/95

Definition at line 263 of file prpsgds.h.


Constructor & Destructor Documentation

OpChangeLayerColour::OpChangeLayerColour  ) 
 

Default constructor.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
11/10/95

Definition at line 1143 of file prpsgds.cpp.

01144 {
01145     UndoIDS = _R(IDS_OPCHANGEGUIDELAYERCOLOUR);
01146 }

OpChangeLayerColour::~OpChangeLayerColour  ) 
 

Default destructor.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
11/10/95

Definition at line 1158 of file prpsgds.cpp.

01159 {
01160 }


Member Function Documentation

OpChangeLayerColour::CC_DECLARE_DYNCREATE OpChangeLayerColour   )  [private]
 

void OpChangeLayerColour::DoWithParam OpDescriptor pOpDesc,
OpParam pOpParam
[virtual]
 

Does the changing of the layer's colour pOpParam should point to a OpChangeLayerColourParam.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
11/10/95
Parameters:
pOpDesc = ptr to op descriptor [INPUTS] pOpParam = ptr to the params (should be a OpChangeLayerColourParam)
- [OUTPUTS] Return: -

Reimplemented from Operation.

Definition at line 1177 of file prpsgds.cpp.

01178 {
01179     OpChangeLayerColourParam* pParam = (OpChangeLayerColourParam*)pOpParam;
01180 
01181     ActionCode Ac = LayerColourAction::Init(this,&UndoActions,*pParam);
01182 
01183     if (Ac == AC_FAIL)
01184         FailAndExecute();
01185 
01186     End();
01187 }

void OpChangeLayerColour::GetOpName String_256 OpName  )  [virtual]
 

Gets the name of the op for the undo/redo menu item.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
11/10/95
Parameters:
OpName = place to put name of op in [INPUTS]
- [OUTPUTS] Return: -

Reimplemented from Operation.

Definition at line 1250 of file prpsgds.cpp.

01251 {
01252     *OpName = String_256(UndoIDS);
01253 }

OpState OpChangeLayerColour::GetState String_256 Description,
OpDescriptor
[static]
 

Func for finding out whether this op is useable or not.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
11/10/95
Parameters:
Description = place to put reason why you are greyed out [INPUTS]
- [OUTPUTS] Return: The state of this op

Definition at line 1231 of file prpsgds.cpp.

01232 {
01233     OpState State;
01234     return State;
01235 }

BOOL OpChangeLayerColour::Init void   )  [static]
 

Initialises the operation by registering an op descriptor for it.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
11/10/95
Parameters:
- [INPUTS]
- [OUTPUTS] Return: TRUE if initialised properly, FALSE otherwise

Reimplemented from SimpleCCObject.

Definition at line 1202 of file prpsgds.cpp.

01203 {
01204     return (RegisterOpDescriptor(
01205                                 0, 
01206                                 0,
01207                                 CC_RUNTIME_CLASS(OpChangeLayerColour), 
01208                                 OPTOKEN_CHANGELAYERCOLOUR,
01209                                 OpChangeLayerColour::GetState,
01210                                 0,  /* help ID */
01211                                 0,  /* bubble ID */
01212                                 0   /* bitmap ID */
01213                                 )
01214             );
01215 
01216 }


Member Data Documentation

UINT32 OpChangeLayerColour::UndoIDS [private]
 

Definition at line 282 of file prpsgds.h.


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