#include <filltool.h>
Inheritance diagram for OpChangeTranspFillProfile:
Public Member Functions | |
OpChangeTranspFillProfile () | |
Construct an object of this type. | |
~OpChangeTranspFillProfile () | |
Destruct an object of this type. | |
virtual void | DoWithParam (OpDescriptor *pOp, OpParam *pParam) |
Saves the transparency profile at this point, so it can be restored on an undo. | |
Static Public Member Functions | |
static OpState | GetState (String_256 *Description, OpDescriptor *) |
Determines the state of the op. | |
static BOOL | Declare () |
Adds the operation to the list of all known operations. |
Definition at line 920 of file filltool.h.
|
Construct an object of this type.
Definition at line 10552 of file filltool.cpp.
|
|
Destruct an object of this type.
Definition at line 10569 of file filltool.cpp.
|
|
Adds the operation to the list of all known operations.
Definition at line 10586 of file filltool.cpp. 10587 { 10588 return (RegisterOpDescriptor( 10589 0, 10590 _R(IDS_TRANSPFILLPROFILE), 10591 CC_RUNTIME_CLASS(OpChangeTranspFillProfile), 10592 OPTOKEN_TRANSPFILLPROFILE, 10593 OpChangeTranspFillProfile::GetState)); 10594 }
|
|
Saves the transparency profile at this point, so it can be restored on an undo.
Reimplemented from Operation. Definition at line 10610 of file filltool.cpp. 10611 { 10612 // Start a slow job 10613 //BeginSlowJob(); 10614 DoStartSelOp(TRUE); 10615 10616 // run through the selection changing all profiles 10617 CProfileBiasGain Profile; 10618 10619 // recast the op param 10620 FillProfileOpParam * pProfileParam = (FillProfileOpParam *)pParam; 10621 10622 List ShadowList; 10623 // Why does this change ALL profiles - even those deep down in the selection??? 10624 // FillTools::BuildListOfSelectedNodes(&ShadowList, CC_RUNTIME_CLASS(AttrTranspFillGeometry)); 10625 FillTools::GetSelectedAttrList(&ShadowList, CC_RUNTIME_CLASS(AttrTranspFillGeometry), TRUE, TRUE); 10626 10627 NodeListItem * pItem = (NodeListItem *)ShadowList.GetHead(); 10628 10629 CProfileBiasGain OldGain; 10630 10631 while (pItem) 10632 { 10633 if (pItem->pNode) 10634 { 10635 // initialise the action 10636 ChangeFillProfileAction * pAction; 10637 10638 ChangeFillProfileAction::Init(this, GetUndoActionList(), (AttrFillGeometry *)pItem->pNode, pProfileParam->Profile, 10639 &pAction); 10640 10641 // Inform the effected parents of the change 10642 10643 ObjChangeFlags cFlags; 10644 cFlags.Attribute = TRUE; // Needed to make Blends re-calc themselves 10645 10646 ObjChangeParam ObjChange(OBJCHANGE_STARTING,cFlags,NULL,NULL); 10647 10648 /*(AttrFillGeometry *)*/ (pItem->pNode)->AllowOp(&ObjChange); 10649 10650 ObjChange.Define(OBJCHANGE_FINISHED,cFlags,NULL,NULL); 10651 UpdateAllChangedNodes(&ObjChange); 10652 } 10653 10654 pItem = (NodeListItem *)ShadowList.GetNext(pItem); 10655 } 10656 10657 ShadowList.DeleteAll(); 10658 10659 End(); 10660 }
|
|
Determines the state of the op.
Definition at line 10675 of file filltool.cpp. 10676 { 10677 OpState Blobby; 10678 10679 return (Blobby); 10680 }
|