ChangeFeatherProfileAction Class Reference

#include <opfeathr.h>

Inheritance diagram for ChangeFeatherProfileAction:

Action ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 ChangeFeatherProfileAction ()
virtual ActionCode Execute ()
 This is a pure virtual method which should be redefined for all derived classes of Action.

Static Public Member Functions

static ActionCode Init (Operation *pOp, ActionList *pActionList, FeatherAttrValue *pThisFeatherCompound, CProfileBiasGain Profile, ChangeFeatherProfileAction **NewAction)

Protected Attributes

FeatherAttrValuem_pFeather
CProfileBiasGain m_LastProfile

Detailed Description

Definition at line 416 of file opfeathr.h.


Constructor & Destructor Documentation

ChangeFeatherProfileAction::ChangeFeatherProfileAction  ) 
 

Definition at line 2050 of file opfeathr.cpp.

02051 {
02052     m_pFeather = NULL;
02053 }


Member Function Documentation

ActionCode ChangeFeatherProfileAction::Execute  )  [virtual]
 

This is a pure virtual method which should be redefined for all derived classes of Action.

Author:
Simon_Maneggio (Xara Group Ltd) <camelotdev@xara.com>
Date:
5/8/93
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: If this method is ever called then an ENSURE failure will occur.

See also:
-

Reimplemented from Action.

Definition at line 2064 of file opfeathr.cpp.

02065 {
02066     ActionCode Act = AC_FAIL;
02067     ChangeFeatherProfileAction* pAction;
02068 
02069     // First time an instance of this Action is executed is when called during and
02070     // UndoList->ExecuteBackwards inside an OpUndo invoked OpHist->GetTail()->Undo (where
02071     // the tail OpHist item is an OpChangeFeatherProfile. SHEW!
02072     // However may also be called by a Redo as we are about to stick an instance into the
02073     // Redo list
02074     CProfileBiasGain UndoProf = m_pFeather->GetProfile();
02075     if (m_pFeather->ChangeFeatherProfile(m_LastProfile))
02076         Act = ChangeFeatherProfileAction::Init( pOperation, 
02077                                         pOppositeActLst,
02078                                         m_pFeather,
02079                                         UndoProf,
02080                                         &pAction );
02081 
02082     if (ChangeFeatherProfileOpDesc::m_BiasGainGadget.IsDialogOpen())
02083     {
02084         // only way I can think of to get the profile dialog to reinialise itself is
02085         // to fake a OnSelChangingMsg message ....
02086 
02087         BROADCAST_TO_ALL(SelChangingMsg(SelChangingMsg::SELECTIONCHANGED, FALSE));
02088     }
02089 
02090     return Act;
02091 }

ActionCode ChangeFeatherProfileAction::Init Operation pOp,
ActionList pActionList,
FeatherAttrValue pThisFeatherCompound,
CProfileBiasGain  Profile,
ChangeFeatherProfileAction **  NewAction
[static]
 

Definition at line 2113 of file opfeathr.cpp.

02118 {
02119     UINT32 ActSize = sizeof(ChangeFeatherProfileAction);
02120 
02121     ActionCode Ac = Action::Init(pOp,pActionList,ActSize,CC_RUNTIME_CLASS(ChangeFeatherProfileAction),(Action**)ppNewAction);
02122 
02123     if (Ac != AC_FAIL)
02124     {
02125         (*ppNewAction)->m_pFeather = pFeather;
02126         (*ppNewAction)->m_LastProfile = FeatherProfile;
02127     }
02128 
02129     return Ac;
02130 }


Member Data Documentation

CProfileBiasGain ChangeFeatherProfileAction::m_LastProfile [protected]
 

Definition at line 432 of file opfeathr.h.

FeatherAttrValue* ChangeFeatherProfileAction::m_pFeather [protected]
 

Definition at line 431 of file opfeathr.h.


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