OpChangeContourAttributeProfile Class Reference

This changes the number of steps of the selected blends. More...

#include <opcntr.h>

Inheritance diagram for OpChangeContourAttributeProfile:

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

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)

Detailed Description

This changes the number of steps of the selected blends.

Author:
David_McClarnon (Xara Group Ltd) <camelotdev@xara.com>
Date:
4/11/94

Definition at line 564 of file opcntr.h.


Constructor & Destructor Documentation

OpChangeContourAttributeProfile::OpChangeContourAttributeProfile  )  [inline]
 

Definition at line 570 of file opcntr.h.

00570 {}

OpChangeContourAttributeProfile::~OpChangeContourAttributeProfile  )  [inline]
 

Definition at line 571 of file opcntr.h.

00571 {}


Member Function Documentation

OpChangeContourAttributeProfile::CC_DECLARE_DYNCREATE OpChangeContourAttributeProfile   )  [private]
 

BOOL OpChangeContourAttributeProfile::Declare  )  [static]
 

Adds the operation to the list of all known operations.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
7/11/94
Returns:
TRUE if all went OK, FALSE otherwise

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 }

void OpChangeContourAttributeProfile::DoWithParam OpDescriptor ,
OpParam pOpParam
[virtual]
 

This changes all the selected blend objects to have pOpParam->Param1 number of steps.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
7/11/94
Returns:
-

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 }

void OpChangeContourAttributeProfile::GetOpName String_256 OpName  )  [virtual]
 

The GetOpName fn is overridden so that we return back a description appropriate to the type of attribute that the operation applies.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
7/11/94
Parameters:
- [INPUTS]
The undo string for the operation [OUTPUTS]
Returns:

Errors: -

See also:
-

Reimplemented from Operation.

Definition at line 3370 of file opcntr.cpp.

03371 { 
03372     *OpName = String_256(_R(IDS_CONTOURCOLOURTYPE));
03373 }  

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

Find out the state of the operation at the specific time.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
7/11/94
Parameters:
Description - GetState fills this string with an approriate description [OUTPUTS] of the current state of the operation
Returns:
The state of the operation, so that menu items (ticks and greying) can be done properly

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 }

virtual BOOL OpChangeContourAttributeProfile::MayChangeNodeBounds  )  const [inline, virtual]
 

Reimplemented from SelOperation.

Definition at line 582 of file opcntr.h.

00582 { return FALSE; }


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