ChangeFeatherEffectProfileAction Class Reference

#include <opfeathr.h>

Inheritance diagram for ChangeFeatherEffectProfileAction:

Action ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 ChangeFeatherEffectProfileAction ()
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, NodeFeatherEffect *pThisFeather, CProfileBiasGain Profile, ChangeFeatherEffectProfileAction **NewAction)

Protected Attributes

NodeFeatherEffectm_pFeatherEffect
CProfileBiasGain m_LastProfile

Detailed Description

Definition at line 444 of file opfeathr.h.


Constructor & Destructor Documentation

ChangeFeatherEffectProfileAction::ChangeFeatherEffectProfileAction  )  [inline]
 

Definition at line 449 of file opfeathr.h.

00449 { m_pFeatherEffect = NULL;}


Member Function Documentation

ActionCode ChangeFeatherEffectProfileAction::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 2188 of file opfeathr.cpp.

02189 {
02190     ActionCode Act = AC_FAIL;
02191     ChangeFeatherEffectProfileAction* pAction;
02192 
02193     // First time an instance of this Action is executed is when called during and
02194     // UndoList->ExecuteBackwards inside an OpUndo invoked OpHist->GetTail()->Undo (where
02195     // the tail OpHist item is an OpChangeFeatherProfile. SHEW!
02196     // However may also be called by a Redo as we are about to stick an instance into the
02197     // Redo list
02198     CProfileBiasGain UndoProf = m_pFeatherEffect->GetProfile();
02199 
02200     Act = ChangeFeatherEffectProfileAction::Init(pOperation, 
02201                                                  pOppositeActLst,
02202                                                  m_pFeatherEffect,
02203                                                  UndoProf,
02204                                                  &pAction );
02205 
02206     if (Act==AC_OK)
02207         m_pFeatherEffect->SetProfile(m_LastProfile);
02208 
02209     if (ChangeFeatherProfileOpDesc::m_BiasGainGadget.IsDialogOpen())
02210     {
02211         // only way I can think of to get the profile dialog to reinialise itself is
02212         // to fake a OnSelChangingMsg message ....
02213 
02214         BROADCAST_TO_ALL(SelChangingMsg(SelChangingMsg::SELECTIONCHANGED, FALSE));
02215     }
02216 
02217     return Act;
02218 }

ActionCode ChangeFeatherEffectProfileAction::Init Operation pOp,
ActionList pActionList,
NodeFeatherEffect pThisFeather,
CProfileBiasGain  Profile,
ChangeFeatherEffectProfileAction **  NewAction
[static]
 

Definition at line 2156 of file opfeathr.cpp.

02161 {
02162     UINT32 ActSize = sizeof(ChangeFeatherEffectProfileAction);
02163 
02164     ActionCode Ac = Action::Init(pOp,
02165                                  pActionList,
02166                                  ActSize,
02167                                  CC_RUNTIME_CLASS(ChangeFeatherEffectProfileAction),
02168                                  (Action**)ppNewAction);
02169     if (Ac != AC_FAIL)
02170     {
02171         (*ppNewAction)->m_pFeatherEffect = pFeatherEffect;
02172         (*ppNewAction)->m_LastProfile = FeatherProfile;
02173     }
02174 
02175     return Ac;
02176 }


Member Data Documentation

CProfileBiasGain ChangeFeatherEffectProfileAction::m_LastProfile [protected]
 

Definition at line 460 of file opfeathr.h.

NodeFeatherEffect* ChangeFeatherEffectProfileAction::m_pFeatherEffect [protected]
 

Definition at line 459 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