#include <opfeathr.h>
Inheritance diagram for ChangeFeatherProfileAction:
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 | |
FeatherAttrValue * | m_pFeather |
CProfileBiasGain | m_LastProfile |
Definition at line 416 of file opfeathr.h.
|
Definition at line 2050 of file opfeathr.cpp. 02051 { 02052 m_pFeather = NULL; 02053 }
|
|
This is a pure virtual method which should be redefined for all derived classes of Action.
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 }
|
|
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 }
|
|
Definition at line 432 of file opfeathr.h. |
|
Definition at line 431 of file opfeathr.h. |