Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
anonymous_namespace{ViewInfo.cpp}::SelectedRegionRestorer Struct Referencefinal
Inheritance diagram for anonymous_namespace{ViewInfo.cpp}::SelectedRegionRestorer:
[legend]
Collaboration diagram for anonymous_namespace{ViewInfo.cpp}::SelectedRegionRestorer:
[legend]

Public Member Functions

 SelectedRegionRestorer (AudacityProject &project)
 
void RestoreUndoRedoState (AudacityProject &project) override
 Modify the project when undoing or redoing to some state in history. More...
 
- Public Member Functions inherited from UndoStateExtension
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...
 

Public Attributes

SelectedRegion mSelectedRegion
 

Detailed Description

Definition at line 317 of file ViewInfo.cpp.

Constructor & Destructor Documentation

◆ SelectedRegionRestorer()

anonymous_namespace{ViewInfo.cpp}::SelectedRegionRestorer::SelectedRegionRestorer ( AudacityProject project)
inline

Definition at line 318 of file ViewInfo.cpp.

320 {}
const auto project
NotifyingSelectedRegion selectedRegion
Definition: ViewInfo.h:216
static ViewInfo & Get(AudacityProject &project)
Definition: ViewInfo.cpp:235

Member Function Documentation

◆ RestoreUndoRedoState()

void anonymous_namespace{ViewInfo.cpp}::SelectedRegionRestorer::RestoreUndoRedoState ( AudacityProject project)
inlineoverridevirtual

Modify the project when undoing or redoing to some state in history.

Implements UndoStateExtension.

Definition at line 321 of file ViewInfo.cpp.

References ViewInfo::Get(), project, and ViewInfo::selectedRegion.

Here is the call graph for this function:

Member Data Documentation

◆ mSelectedRegion

SelectedRegion anonymous_namespace{ViewInfo.cpp}::SelectedRegionRestorer::mSelectedRegion

Definition at line 324 of file ViewInfo.cpp.


The documentation for this struct was generated from the following file: