OpChangeTranspFillProfile Class Reference

#include <filltool.h>

Inheritance diagram for OpChangeTranspFillProfile:

SelOperation UndoableOperation Operation MessageHandler ListItem CCObject SimpleCCObject List of all members.

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.

Detailed Description

Definition at line 920 of file filltool.h.


Constructor & Destructor Documentation

OpChangeTranspFillProfile::OpChangeTranspFillProfile  ) 
 

Construct an object of this type.

Author:
Chris_Snook (Xara Group Ltd) <camelotdev@xara.com>
Date:
10/2/2000
Parameters:
- [INPUTS]

Definition at line 10552 of file filltool.cpp.

10553 {
10554 }

OpChangeTranspFillProfile::~OpChangeTranspFillProfile  ) 
 

Destruct an object of this type.

Author:
Chris_Snook (Xara Group Ltd) <camelotdev@xara.com>
Date:
10/2/2000
Parameters:
- [INPUTS]

Definition at line 10569 of file filltool.cpp.

10570 {
10571 }


Member Function Documentation

BOOL OpChangeTranspFillProfile::Declare  )  [static]
 

Adds the operation to the list of all known operations.

Author:
Chris_Snook (Xara Group Ltd) <camelotdev@xara.com>
Date:
10/2/2000
Returns:
TRUE if all went OK, False otherwise

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 }

void OpChangeTranspFillProfile::DoWithParam OpDescriptor pOp,
OpParam pParam
[virtual]
 

Saves the transparency profile at this point, so it can be restored on an undo.

Author:
Chris_Snook (Xara Group Ltd) <camelotdev@xara.com>
Date:
10/2/2000
Returns:
-

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 }

OpState OpChangeTranspFillProfile::GetState String_256 Description,
OpDescriptor
[static]
 

Determines the state of the op.

Author:
Chris_Snook (Xara Group Ltd) <camelotdev@xara.com>
Date:
10/2/2000
Returns:
Ungreyed, Unticked

Definition at line 10675 of file filltool.cpp.

10676 {
10677     OpState Blobby;
10678     
10679     return (Blobby);
10680 }


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:57:42 2007 for Camelot by  doxygen 1.4.4