#include <prpsgds.h>
Inheritance diagram for OpChangeLayerColour:
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 |
Definition at line 263 of file prpsgds.h.
|
Default constructor.
Definition at line 1143 of file prpsgds.cpp.
|
|
Default destructor.
Definition at line 1158 of file prpsgds.cpp.
|
|
|
|
Does the changing of the layer's colour pOpParam should point to a OpChangeLayerColourParam.
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 }
|
|
Gets the name of the op for the undo/redo menu item.
Reimplemented from Operation. Definition at line 1250 of file prpsgds.cpp. 01251 { 01252 *OpName = String_256(UndoIDS); 01253 }
|
|
Func for finding out whether this op is useable or not.
Definition at line 1231 of file prpsgds.cpp. 01232 { 01233 OpState State; 01234 return State; 01235 }
|
|
Initialises the operation by registering an op descriptor for it.
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 }
|
|
|