ChangeFeatherEffectAction Class Reference

#include <opfeathr.h>

Inheritance diagram for ChangeFeatherEffectAction:

Action ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 ChangeFeatherEffectAction ()
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, MILLIPOINT FeatherSize, CProfileBiasGain Profile, ChangeFeatherEffectAction **NewAction)

Protected Attributes

NodeFeatherEffectm_pFeatherEffect
MILLIPOINT m_LastFeatherSize
CProfileBiasGain m_LastProfile

Detailed Description

Definition at line 471 of file opfeathr.h.


Constructor & Destructor Documentation

ChangeFeatherEffectAction::ChangeFeatherEffectAction  )  [inline]
 

Definition at line 476 of file opfeathr.h.


Member Function Documentation

ActionCode ChangeFeatherEffectAction::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 2278 of file opfeathr.cpp.

02279 {
02280     ActionCode Act = AC_FAIL;
02281     ChangeFeatherEffectAction* pAction;
02282 
02283     CProfileBiasGain UndoProf = m_pFeatherEffect->GetProfile();
02284     MILLIPOINT UndoSize = m_pFeatherEffect->GetFeatherSize();
02285 
02286     Act = ChangeFeatherEffectAction::Init(pOperation, 
02287                                           pOppositeActLst,
02288                                           m_pFeatherEffect,
02289                                           UndoSize,
02290                                           UndoProf,
02291                                           &pAction );
02292 
02293     if (Act==AC_OK)
02294     {
02295         m_pFeatherEffect->SetFeatherSize(m_LastFeatherSize);
02296         m_pFeatherEffect->SetProfile(m_LastProfile);
02297     }
02298 
02299     if (ChangeFeatherProfileOpDesc::m_BiasGainGadget.IsDialogOpen())
02300     {
02301         // only way I can think of to get the profile dialog to reinitialise itself is
02302         // to fake a OnSelChangingMsg message ....
02303         BROADCAST_TO_ALL(SelChangingMsg(SelChangingMsg::SELECTIONCHANGED, FALSE));
02304 //      BROADCAST_TO_ALL(SelChangingMsg(SelChangingMsg::EFFECTSTACKCHANGED)); 
02305     }
02306 
02307     return Act;
02308 }

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

Definition at line 2244 of file opfeathr.cpp.

02250 {
02251     UINT32 ActSize = sizeof(ChangeFeatherEffectAction);
02252 
02253     ActionCode Ac = Action::Init(pOp,
02254                                  pActionList,
02255                                  ActSize,
02256                                  CC_RUNTIME_CLASS(ChangeFeatherEffectAction),
02257                                  (Action**)ppNewAction);
02258     if (Ac != AC_FAIL)
02259     {
02260         (*ppNewAction)->m_pFeatherEffect = pFeatherEffect;
02261         (*ppNewAction)->m_LastFeatherSize = FeatherSize;
02262         (*ppNewAction)->m_LastProfile = FeatherProfile;
02263     }
02264 
02265     return Ac;
02266 }


Member Data Documentation

MILLIPOINT ChangeFeatherEffectAction::m_LastFeatherSize [protected]
 

Definition at line 488 of file opfeathr.h.

CProfileBiasGain ChangeFeatherEffectAction::m_LastProfile [protected]
 

Definition at line 489 of file opfeathr.h.

NodeFeatherEffect* ChangeFeatherEffectAction::m_pFeatherEffect [protected]
 

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