#include <opcntr.h>
Inheritance diagram for OpChangeContourAttributeProfile:
Public Member Functions | |
OpChangeContourAttributeProfile () | |
~OpChangeContourAttributeProfile () | |
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 (OpChangeContourAttributeProfile) |
Definition at line 564 of file opcntr.h.
|
Definition at line 570 of file opcntr.h.
|
|
Definition at line 571 of file opcntr.h.
|
|
|
|
Adds the operation to the list of all known operations.
Definition at line 3306 of file opcntr.cpp. 03307 { 03308 return (RegisterOpDescriptor( 03309 0, 03310 _R(IDS_CHANGECONTOURATTRIBUTEPROFILE), 03311 CC_RUNTIME_CLASS(OpChangeContourAttributeProfile), 03312 OPTOKEN_CHANGECONTOURATTRPROFILE, 03313 OpChangeContourAttributeProfile::GetState, 03314 0, /* help ID */ 03315 0, /* bubble ID */ 03316 0 /* bitmap ID */ 03317 )); 03318 }
|
|
This changes all the selected blend objects to have pOpParam->Param1 number of steps.
Reimplemented from Operation. Definition at line 3248 of file opcntr.cpp. 03249 { 03250 ERROR3IF(pOpParam == NULL,"NULL OpParam ptr"); 03251 if (pOpParam == NULL) return; 03252 03253 BOOL ok = TRUE; 03254 03255 ChangeContourProfileParam * pCParam = (ChangeContourProfileParam *)pOpParam; 03256 03257 DoStartSelOp(TRUE, TRUE); 03258 BeginSlowJob(-1, TRUE); 03259 03260 List NodeList; 03261 BevelTools::BuildListOfSelectedNodes(&NodeList, CC_RUNTIME_CLASS(NodeContourController)); 03262 03263 NodeListItem * pItem = (NodeListItem *)NodeList.GetHead(); 03264 03265 NodeContourController * pController = NULL; 03266 03267 // Node * pParent = NULL; 03268 03269 ChangeContourAttributeProfileAction * pAction= NULL; 03270 03271 while (pItem && ok) 03272 { 03273 pController = (NodeContourController *)pItem->pNode; 03274 03275 ChangeContourAttributeProfileAction::Init(this, this->GetUndoActionList(), 03276 pController, pCParam->m_Profile, &pAction); 03277 03278 pItem = (NodeListItem *)NodeList.GetNext(pItem); 03279 } 03280 03281 NodeList.DeleteAll(); 03282 03283 // Inform the effected parents of the change 03284 if (ok) 03285 { 03286 End(); 03287 } 03288 else 03289 { 03290 FailAndExecute(); 03291 End(); 03292 } 03293 }
|
|
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 3370 of file opcntr.cpp. 03371 { 03372 *OpName = String_256(_R(IDS_CONTOURCOLOURTYPE)); 03373 }
|
|
Find out the state of the operation at the specific time.
Definition at line 3335 of file opcntr.cpp. 03336 { 03337 OpState State(FALSE,TRUE); // It's not ticked, but it is greyed by default 03338 03339 // DMc - to test for bevels & contours 03340 // are there any contour nodes in the selection 03341 List NodeList; 03342 BevelTools::BuildListOfSelectedNodes(&NodeList, CC_RUNTIME_CLASS(NodeContourController)); 03343 03344 if (!NodeList.IsEmpty()) 03345 { 03346 State.Greyed = FALSE; 03347 } 03348 03349 NodeList.DeleteAll(); 03350 03351 return State; 03352 }
|
|
Reimplemented from SelOperation. Definition at line 582 of file opcntr.h. 00582 { return FALSE; }
|