#include <nodemold.h>
Inheritance diagram for RecordChangeCodesAction:
Public Member Functions | |
RecordChangeCodesAction () | |
Constructor for the action to undo Perspective modification. | |
~RecordChangeCodesAction () | |
Destructor for the action to undo Perspective modification. | |
virtual ActionCode | Execute () |
This is the virtual function that is called when the action is executed by the Undo/Redo system. | |
Static Public Member Functions | |
static ActionCode | Init (Operation *pOp, ActionList *pActionList, NodeMould *pMould, 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_NORECORD 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. | |
Private Attributes | |
NodeMould * | pCRCMould |
INT32 | CRCcode |
INT32 | CRCWidth |
INT32 | CRCHeight |
class RecordChangeCodesAction : public Action
Definition at line 324 of file nodemold.h.
|
Constructor for the action to undo Perspective modification. RecordChangeCodesAction::RecordChangeCodesAction()
Definition at line 3123 of file nodemold.cpp.
|
|
Destructor for the action to undo Perspective modification. RecordChangeCodesAction::~RecordChangeCodesAction()
Definition at line 3142 of file nodemold.cpp.
|
|
This is the virtual function that is called when the action is executed by the Undo/Redo system.
Reimplemented from Action. Definition at line 3223 of file nodemold.cpp. 03224 { 03225 // try to create a redo record 03226 RecordChangeCodesAction* NewAction; 03227 ActionCode Ac; 03228 Ac = RecordChangeCodesAction::Init(pOperation, pOppositeActLst, pCRCMould, (Action**)(&NewAction)); 03229 03230 if (pCRCMould) 03231 { 03232 pCRCMould->OnCC_CRC = CRCcode; 03233 pCRCMould->OnCC_Width = CRCWidth; 03234 pCRCMould->OnCC_Height = CRCHeight; 03235 } 03236 03237 return Ac; 03238 }
|
|
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_NORECORD 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.
Definition at line 3179 of file nodemold.cpp. 03183 { 03184 ActionCode Ac = AC_FAIL; 03185 if (pMould!=NULL) 03186 { 03187 UINT32 ActSize = sizeof(RecordChangeCodesAction); 03188 Ac = Action::Init( pOp, pActionList, ActSize, CC_RUNTIME_CLASS(RecordChangeCodesAction), NewAction); 03189 if (Ac==AC_OK) 03190 { 03191 RecordChangeCodesAction* pAct = ((RecordChangeCodesAction*)*NewAction); 03192 if (pAct) 03193 { 03194 pAct->pCRCMould = pMould; 03195 pAct->CRCcode = pMould->OnCC_CRC; 03196 pAct->CRCWidth = pMould->OnCC_Width; 03197 pAct->CRCHeight = pMould->OnCC_Height; 03198 } 03199 } 03200 } 03201 return Ac; 03202 }
|
|
Definition at line 338 of file nodemold.h. |
|
Definition at line 340 of file nodemold.h. |
|
Definition at line 339 of file nodemold.h. |
|
Definition at line 337 of file nodemold.h. |