WSF
wizard::UndoProxyChange Class Reference

#include <Undo.hpp>

Inherits QUndoCommand.

Collaboration diagram for wizard::UndoProxyChange:

Public Types

enum  Action {
  cADD_CHILD , cREMOVE_CHILD , cASSIGN_VALUE , cRENAME_CHILD ,
  cNULL_ACTION
}

Public Member Functions

 ~UndoProxyChange () override
void undo () override
void redo () override

Static Public Member Functions

static UndoProxyChange * createUndo (WsfPProxy *aProxyPtr, WsfPProxy::ProxyModifiedReason aProxyModifiedReason, const WsfPProxyPath &aPath, const std::string *aRenameName)

Protected Member Functions

void UndoRedo (WsfPProxy *aProxyPtr)

Protected Attributes

bool mIsUndone
WsfPProxymProxyPtr
Action mAction
WsfPProxyPath mChangePath
WsfPProxyValue mSwapValue
std::string mSwapName

Member Enumeration Documentation

◆ Action

Enumerator
cADD_CHILD 
cREMOVE_CHILD 
cASSIGN_VALUE 
cRENAME_CHILD 
cNULL_ACTION 

Constructor & Destructor Documentation

◆ ~UndoProxyChange()

wizard::UndoProxyChange::~UndoProxyChange ( )
override

References mSwapValue.

Member Function Documentation

◆ createUndo()

◆ redo()

void wizard::UndoProxyChange::redo ( )
override

References mIsUndone, mProxyPtr, and UndoRedo().

◆ undo()

void wizard::UndoProxyChange::undo ( )
override

References mIsUndone, mProxyPtr, and UndoRedo().

◆ UndoRedo()

Member Data Documentation

◆ mAction

Action wizard::UndoProxyChange::mAction
protected

Referenced by UndoRedo().

◆ mChangePath

WsfPProxyPath wizard::UndoProxyChange::mChangePath
protected

Referenced by UndoRedo().

◆ mIsUndone

bool wizard::UndoProxyChange::mIsUndone
protected

Referenced by redo(), and undo().

◆ mProxyPtr

WsfPProxy* wizard::UndoProxyChange::mProxyPtr
protected

Referenced by createUndo(), redo(), undo(), and UndoRedo().

◆ mSwapName

std::string wizard::UndoProxyChange::mSwapName
protected

Referenced by createUndo(), and UndoRedo().

◆ mSwapValue

WsfPProxyValue wizard::UndoProxyChange::mSwapValue
protected

The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved