#include <moldedit.h>
Inheritance diagram for SaveDetachAction:
Public Member Functions | |
SaveDetachAction () | |
SaveDetachAction constructor. | |
virtual ActionCode | Execute () |
Executes the SaveDetachAction. | |
Static Public Member Functions | |
static ActionCode | Save (Operation *const pOp, NodeMould *const pMould) |
This simple action saves away a rectangle on the undo, which will be invalidated during execution of undo and redo. | |
static ActionCode | Init (Operation *const pOp, ActionList *pActionList, NodeMould *const pMould, Action **NewAction) |
An action to save away the state of the detach flag. | |
Private Attributes | |
NodeMould * | pCurrMould |
BOOL | CurrDetached |
Definition at line 256 of file moldedit.h.
|
SaveDetachAction constructor.
Definition at line 1457 of file moldedit.cpp. 01458 { 01459 pCurrMould=NULL; 01460 CurrDetached=FALSE; 01461 }
|
|
Executes the SaveDetachAction.
Reimplemented from Action. Definition at line 1542 of file moldedit.cpp. 01543 { 01544 SaveDetachAction* MyAct; 01545 ActionCode Ac = SaveDetachAction::Init( pOperation, 01546 pOppositeActLst, 01547 pCurrMould, 01548 (Action**)(&MyAct)); 01549 01550 if (Ac!=AC_FAIL) 01551 { 01552 if ((pCurrMould->IsDetached())!=CurrDetached) 01553 pCurrMould->ToggleDetachFlag(); 01554 } 01555 return Ac; 01556 }
|
|
An action to save away the state of the detach flag. Action** NewAction)
Definition at line 1510 of file moldedit.cpp. 01514 { 01515 ActionCode Ac = (Action::Init(pOp, 01516 pActionList, 01517 sizeof(SaveDetachAction), 01518 CC_RUNTIME_CLASS(SaveDetachAction), 01519 NewAction)); 01520 if (*NewAction != NULL) 01521 { 01522 ((SaveDetachAction*)(*NewAction))->pCurrMould = pMould; 01523 ((SaveDetachAction*)(*NewAction))->CurrDetached = pMould->IsDetached(); 01524 } 01525 return (Ac); 01526 }
|
|
This simple action saves away a rectangle on the undo, which will be invalidated during execution of undo and redo.
Definition at line 1481 of file moldedit.cpp. 01483 { 01484 SaveDetachAction* SvDetAct; 01485 // Attempt to initialise the next action 01486 return SaveDetachAction::Init(pOp, pOp->GetUndoActionList(), pMould, (Action**)(&SvDetAct)); 01487 }
|
|
Definition at line 271 of file moldedit.h. |
|
Definition at line 270 of file moldedit.h. |