Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
anonymous_namespace{TimeSignatureToolBar.cpp}::TimeSignatureRestorer Struct Referencefinal
Inheritance diagram for anonymous_namespace{TimeSignatureToolBar.cpp}::TimeSignatureRestorer:
Collaboration diagram for anonymous_namespace{TimeSignatureToolBar.cpp}::TimeSignatureRestorer:

Public Member Functions

 TimeSignatureRestorer (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

double mTempo
int mUpper
int mLower

Detailed Description

Definition at line 282 of file TimeSignatureToolBar.cpp.

Constructor & Destructor Documentation

◆ TimeSignatureRestorer()

anonymous_namespace{TimeSignatureToolBar.cpp}::TimeSignatureRestorer::TimeSignatureRestorer ( AudacityProject project)

Member Function Documentation

◆ RestoreUndoRedoState()

void anonymous_namespace{TimeSignatureToolBar.cpp}::TimeSignatureRestorer::RestoreUndoRedoState ( AudacityProject project)

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

Implements UndoStateExtension.

Definition at line 290 of file TimeSignatureToolBar.cpp.

291 {
292 auto& timeSignature = ProjectTimeSignature::Get(project);
294 timeSignature.SetTempo(mTempo);
295 timeSignature.SetUpperTimeSignature(mUpper);
296 timeSignature.SetLowerTimeSignature(mLower);
297 }

References ProjectTimeSignature::Get(), and project.

Here is the call graph for this function:

Member Data Documentation

◆ mLower

int anonymous_namespace{TimeSignatureToolBar.cpp}::TimeSignatureRestorer::mLower

Definition at line 301 of file TimeSignatureToolBar.cpp.

◆ mTempo

double anonymous_namespace{TimeSignatureToolBar.cpp}::TimeSignatureRestorer::mTempo

Definition at line 299 of file TimeSignatureToolBar.cpp.

◆ mUpper

int anonymous_namespace{TimeSignatureToolBar.cpp}::TimeSignatureRestorer::mUpper

Definition at line 300 of file TimeSignatureToolBar.cpp.

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