#include <opcntr.h>
Inheritance diagram for OpChangeContourObjectProfile:
Public Member Functions | |
OpChangeContourObjectProfile () | |
~OpChangeContourObjectProfile () | |
virtual void | DoWithParam (OpDescriptor *, OpParam *pOpParam) |
This changes all the selected blend objects to have pOpParam->Param1 number of steps. | |
virtual void | GetOpName (String_256 *OpName) |
The GetOpName fn is overridden so that we return back a description appropriate to the type of attribute that the operation applies. | |
virtual BOOL | MayChangeNodeBounds () const |
Static Public Member Functions | |
static BOOL | Declare () |
Adds the operation to the list of all known operations. | |
static OpState | GetState (String_256 *Description, OpDescriptor *) |
Find out the state of the operation at the specific time. | |
Private Member Functions | |
CC_DECLARE_DYNCREATE (OpChangeContourObjectProfile) |
Definition at line 682 of file opcntr.h.
|
Definition at line 688 of file opcntr.h.
|
|
Definition at line 689 of file opcntr.h.
|
|
|
|
Adds the operation to the list of all known operations.
Definition at line 3640 of file opcntr.cpp. 03641 { 03642 return (RegisterOpDescriptor( 03643 0, 03644 _R(IDS_CHANGECONTOUROBJECTPROFILE), 03645 CC_RUNTIME_CLASS(OpChangeContourObjectProfile), 03646 OPTOKEN_CHANGECONTOUROBJPROFILE, 03647 OpChangeContourObjectProfile::GetState, 03648 0, /* help ID */ 03649 0, /* bubble ID */ 03650 0 /* bitmap ID */ 03651 )); 03652 }
|
|
This changes all the selected blend objects to have pOpParam->Param1 number of steps.
Reimplemented from Operation. Definition at line 3582 of file opcntr.cpp. 03583 { 03584 ERROR3IF(pOpParam == NULL,"NULL OpParam ptr"); 03585 if (pOpParam == NULL) return; 03586 03587 BOOL ok = TRUE; 03588 03589 ChangeContourProfileParam * pCParam = (ChangeContourProfileParam *)pOpParam; 03590 03591 DoStartSelOp(TRUE, TRUE); 03592 BeginSlowJob(-1, TRUE); 03593 03594 List NodeList; 03595 BevelTools::BuildListOfSelectedNodes(&NodeList, CC_RUNTIME_CLASS(NodeContourController)); 03596 03597 NodeListItem * pItem = (NodeListItem *)NodeList.GetHead(); 03598 03599 NodeContourController * pController = NULL; 03600 03601 // Node * pParent = NULL; 03602 03603 ChangeContourObjectProfileAction * pAction= NULL; 03604 03605 while (pItem && ok) 03606 { 03607 pController = (NodeContourController *)pItem->pNode; 03608 03609 ChangeContourObjectProfileAction::Init(this, this->GetUndoActionList(), 03610 pController, pCParam->m_Profile, &pAction); 03611 03612 pItem = (NodeListItem *)NodeList.GetNext(pItem); 03613 } 03614 03615 NodeList.DeleteAll(); 03616 03617 // Inform the effected parents of the change 03618 if (ok) 03619 { 03620 End(); 03621 } 03622 else 03623 { 03624 FailAndExecute(); 03625 End(); 03626 } 03627 }
|
|
The GetOpName fn is overridden so that we return back a description appropriate to the type of attribute that the operation applies.
Reimplemented from Operation. Definition at line 3704 of file opcntr.cpp. 03705 { 03706 *OpName = String_256(_R(IDS_CONTOURCOLOURTYPE)); 03707 }
|
|
Find out the state of the operation at the specific time.
Definition at line 3669 of file opcntr.cpp. 03670 { 03671 OpState State(FALSE,TRUE); // It's not ticked, but it is greyed by default 03672 03673 // DMc - to test for bevels & contours 03674 // are there any contour nodes in the selection 03675 List NodeList; 03676 BevelTools::BuildListOfSelectedNodes(&NodeList, CC_RUNTIME_CLASS(NodeContourController)); 03677 03678 if (!NodeList.IsEmpty()) 03679 { 03680 State.Greyed = FALSE; 03681 } 03682 03683 NodeList.DeleteAll(); 03684 03685 return State; 03686 }
|
|
Reimplemented from SelOperation. Definition at line 700 of file opcntr.h. 00700 { return FALSE; }
|