DDraceNetwork Docs
CEditorActionMoveSoundSource Class Reference

#include <editor_actions.h>

Inheritance diagram for CEditorActionMoveSoundSource:
[legend]
Collaboration diagram for CEditorActionMoveSoundSource:
[legend]

Public Member Functions

 CEditorActionMoveSoundSource (CEditor *pEditor, int GroupIndex, int LayerIndex, int SourceIndex, CPoint OriginalPosition, CPoint CurrentPosition)
 
void Undo () override
 
void Redo () override
 
- Public Member Functions inherited from CEditorActionLayerBase
 CEditorActionLayerBase (CEditor *pEditor, int GroupIndex, int LayerIndex)
 
virtual void Undo () override
 
virtual void Redo () override
 
- Public Member Functions inherited from IEditorAction
 IEditorAction (CEditor *pEditor)
 
 IEditorAction ()=default
 
virtual ~IEditorAction ()=default
 
virtual void Undo ()=0
 
virtual void Redo ()=0
 
virtual bool IsEmpty ()
 
const char * DisplayText () const
 

Private Attributes

int m_SourceIndex
 
CPoint m_OriginalPosition
 
CPoint m_CurrentPosition
 

Additional Inherited Members

- Protected Attributes inherited from CEditorActionLayerBase
int m_GroupIndex
 
int m_LayerIndex
 
std::shared_ptr< CLayerm_pLayer
 
- Protected Attributes inherited from IEditorAction
CEditorm_pEditor
 
char m_aDisplayText [256]
 

Constructor & Destructor Documentation

◆ CEditorActionMoveSoundSource()

CEditorActionMoveSoundSource::CEditorActionMoveSoundSource ( CEditor pEditor,
int  GroupIndex,
int  LayerIndex,
int  SourceIndex,
CPoint  OriginalPosition,
CPoint  CurrentPosition 
)

Member Function Documentation

◆ Redo()

void CEditorActionMoveSoundSource::Redo ( )
overridevirtual

Reimplemented from CEditorActionLayerBase.

◆ Undo()

void CEditorActionMoveSoundSource::Undo ( )
overridevirtual

Reimplemented from CEditorActionLayerBase.

Member Data Documentation

◆ m_CurrentPosition

CPoint CEditorActionMoveSoundSource::m_CurrentPosition
private

◆ m_OriginalPosition

CPoint CEditorActionMoveSoundSource::m_OriginalPosition
private

◆ m_SourceIndex

int CEditorActionMoveSoundSource::m_SourceIndex
private

The documentation for this class was generated from the following files: