#include <opfeathr.h>
Inheritance diagram for ChangeFeatherEffectAction:
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 | |
NodeFeatherEffect * | m_pFeatherEffect |
MILLIPOINT | m_LastFeatherSize |
CProfileBiasGain | m_LastProfile |
Definition at line 471 of file opfeathr.h.
|
Definition at line 476 of file opfeathr.h. 00476 { m_pFeatherEffect = NULL; m_LastFeatherSize = 0; }
|
|
This is a pure virtual method which should be redefined for all derived classes of Action.
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 }
|
|
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 }
|
|
Definition at line 488 of file opfeathr.h. |
|
Definition at line 489 of file opfeathr.h. |
|
Definition at line 487 of file opfeathr.h. |