#include <opfeathr.h>
Inheritance diagram for ChangeFeatherEffectProfileAction:
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 | |
NodeFeatherEffect * | m_pFeatherEffect |
CProfileBiasGain | m_LastProfile |
Definition at line 444 of file opfeathr.h.
|
Definition at line 449 of file opfeathr.h. 00449 { m_pFeatherEffect = NULL;}
|
|
This is a pure virtual method which should be redefined for all derived classes of Action.
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 }
|
|
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 }
|
|
Definition at line 460 of file opfeathr.h. |
|
Definition at line 459 of file opfeathr.h. |