Audacity 3.2.0
Public Member Functions | List of all members
UndoStateExtension Class Referenceabstract

Base class for extra information attached to undo/redo states. More...

#include <UndoManager.h>

Inheritance diagram for UndoStateExtension:
[legend]

Public Member Functions

virtual ~UndoStateExtension ()
 
virtual void RestoreUndoRedoState (AudacityProject &project)=0
 Modify the project when undoing or redoing to some state in history. More...
 
virtual bool CanUndoOrRedo (const AudacityProject &project)
 Whether undo or redo is now permitted; default returns true. More...
 

Detailed Description

Base class for extra information attached to undo/redo states.

Definition at line 83 of file UndoManager.h.

Constructor & Destructor Documentation

◆ ~UndoStateExtension()

UndoStateExtension::~UndoStateExtension ( )
virtualdefault

Member Function Documentation

◆ CanUndoOrRedo()

bool UndoStateExtension::CanUndoOrRedo ( const AudacityProject project)
virtual

Whether undo or redo is now permitted; default returns true.

Reimplemented in anonymous_namespace{UndoTracks.cpp}::TrackListRestorer.

Definition at line 36 of file UndoManager.cpp.

37{
38 return true;
39}

◆ RestoreUndoRedoState()

virtual void UndoStateExtension::RestoreUndoRedoState ( AudacityProject project)
pure virtual

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