OpChangeContourObjectProfile Class Reference

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

#include <opcntr.h>

Inheritance diagram for OpChangeContourObjectProfile:

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

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)

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 682 of file opcntr.h.


Constructor & Destructor Documentation

OpChangeContourObjectProfile::OpChangeContourObjectProfile  )  [inline]
 

Definition at line 688 of file opcntr.h.

00688 {}

OpChangeContourObjectProfile::~OpChangeContourObjectProfile  )  [inline]
 

Definition at line 689 of file opcntr.h.

00689 {}


Member Function Documentation

OpChangeContourObjectProfile::CC_DECLARE_DYNCREATE OpChangeContourObjectProfile   )  [private]
 

BOOL OpChangeContourObjectProfile::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 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 }

void OpChangeContourObjectProfile::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 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 }

void OpChangeContourObjectProfile::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 3704 of file opcntr.cpp.

03705 { 
03706     *OpName = String_256(_R(IDS_CONTOURCOLOURTYPE));
03707 }  

OpState OpChangeContourObjectProfile::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 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 }

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

Reimplemented from SelOperation.

Definition at line 700 of file opcntr.h.

00700 { 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