#include <blndtool.h>
Inheritance diagram for InvalidateBoundsAction:
Public Member Functions | |
InvalidateBoundsAction () | |
Constructor for the action. | |
~InvalidateBoundsAction () | |
virtual ActionCode | Execute () |
Executes the action. | |
Static Public Member Functions | |
static ActionCode | Init (Operation *pOp, ActionList *pActionList, NodeRenderableBounded *pNode, BOOL IncludeChildren) |
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 | |
NodeRenderableBounded * | m_pNode |
BOOL | m_IncludeChildren |
Definition at line 1171 of file blndtool.h.
|
Constructor for the action.
Definition at line 8598 of file blndtool.cpp. 08599 { 08600 m_pNode = NULL; 08601 m_IncludeChildren = FALSE; 08602 }
|
|
Definition at line 8681 of file blndtool.cpp.
|
|
Executes the action.
Reimplemented from Action. Definition at line 8673 of file blndtool.cpp. 08674 { 08675 ActionCode Act; 08676 Act = InvalidateBoundsAction::Init(pOperation,pOppositeActLst,m_pNode,m_IncludeChildren); 08677 08678 return Act; 08679 }
|
|
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.
Definition at line 8635 of file blndtool.cpp. 08639 { 08640 ERROR2IF(pNode == NULL,AC_FAIL,"pNode is NULL"); 08641 08642 UINT32 ActSize = sizeof(InvalidateBoundsAction); 08643 08644 InvalidateBoundsAction* pNewAction; 08645 ActionCode Ac = Action::Init(pOp,pActionList,ActSize,CC_RUNTIME_CLASS(InvalidateBoundsAction),(Action**)&pNewAction); 08646 08647 if (Ac != AC_FAIL && pNewAction != NULL) 08648 { 08649 pNewAction->m_pNode = pNode; 08650 pNewAction->m_IncludeChildren = IncludeChildren; 08651 08652 pNode->InvalidateBoundingRect(IncludeChildren); 08653 } 08654 08655 return Ac; 08656 }
|
|
Definition at line 1186 of file blndtool.h. |
|
Definition at line 1185 of file blndtool.h. |