Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
MIR::FakeProjectInterface Class Referencefinal

#include <MirFakes.h>

Inheritance diagram for MIR::FakeProjectInterface:
[legend]
Collaboration diagram for MIR::FakeProjectInterface:
[legend]

Public Member Functions

 FakeProjectInterface (double tempo)
 
 ~FakeProjectInterface () override=default
 
bool ViewIsBeatsAndMeasures () const override
 
void ReconfigureMusicGrid (double newTempo, std::optional< MIR::TimeSignature > timeSignature) override
 
double GetTempo () const override
 
bool ShouldBeReconfigured (double qpm, bool isSingleFileImport) override
 
void OnClipsSynchronized () override
 
- Public Member Functions inherited from MIR::ProjectInterface
virtual ~ProjectInterface ()=default
 
virtual bool ViewIsBeatsAndMeasures () const =0
 
virtual void ReconfigureMusicGrid (double newTempo, std::optional< MIR::TimeSignature > timeSignature)=0
 
virtual double GetTempo () const =0
 
virtual bool ShouldBeReconfigured (double newTempo, bool isSingleFileImport)=0
 
virtual void OnClipsSynchronized ()=0
 

Public Attributes

double projectTempo
 
bool isBeatsAndMeasures = false
 
bool clipsWereSynchronized = false
 
bool shouldBeReconfigured = false
 
bool wasReconfigured = false
 

Detailed Description

Definition at line 55 of file MirFakes.h.

Constructor & Destructor Documentation

◆ FakeProjectInterface()

MIR::FakeProjectInterface::FakeProjectInterface ( double  tempo)
inline

Definition at line 58 of file MirFakes.h.

59 : projectTempo { tempo }
60 {
61 }

◆ ~FakeProjectInterface()

MIR::FakeProjectInterface::~FakeProjectInterface ( )
overridedefault

Member Function Documentation

◆ GetTempo()

double MIR::FakeProjectInterface::GetTempo ( ) const
inlineoverridevirtual

Implements MIR::ProjectInterface.

Definition at line 84 of file MirFakes.h.

85 {
86 return projectTempo;
87 }

References projectTempo.

◆ OnClipsSynchronized()

void MIR::FakeProjectInterface::OnClipsSynchronized ( )
inlineoverridevirtual

Implements MIR::ProjectInterface.

Definition at line 94 of file MirFakes.h.

95 {
97 }

References clipsWereSynchronized.

◆ ReconfigureMusicGrid()

void MIR::FakeProjectInterface::ReconfigureMusicGrid ( double  newTempo,
std::optional< MIR::TimeSignature timeSignature 
)
inlineoverridevirtual

Implements MIR::ProjectInterface.

Definition at line 76 of file MirFakes.h.

78 {
79 projectTempo = newTempo;
80 isBeatsAndMeasures = true;
81 wasReconfigured = true;
82 }

References isBeatsAndMeasures, projectTempo, and wasReconfigured.

◆ ShouldBeReconfigured()

bool MIR::FakeProjectInterface::ShouldBeReconfigured ( double  qpm,
bool  isSingleFileImport 
)
inlineoverridevirtual

Implements MIR::ProjectInterface.

Definition at line 89 of file MirFakes.h.

90 {
92 }

References shouldBeReconfigured.

◆ ViewIsBeatsAndMeasures()

bool MIR::FakeProjectInterface::ViewIsBeatsAndMeasures ( ) const
inlineoverridevirtual

Implements MIR::ProjectInterface.

Definition at line 71 of file MirFakes.h.

72 {
73 return isBeatsAndMeasures;
74 }

References isBeatsAndMeasures.

Member Data Documentation

◆ clipsWereSynchronized

bool MIR::FakeProjectInterface::clipsWereSynchronized = false

Definition at line 66 of file MirFakes.h.

Referenced by OnClipsSynchronized().

◆ isBeatsAndMeasures

bool MIR::FakeProjectInterface::isBeatsAndMeasures = false

Definition at line 65 of file MirFakes.h.

Referenced by ReconfigureMusicGrid(), and ViewIsBeatsAndMeasures().

◆ projectTempo

double MIR::FakeProjectInterface::projectTempo

Definition at line 64 of file MirFakes.h.

Referenced by GetTempo(), and ReconfigureMusicGrid().

◆ shouldBeReconfigured

bool MIR::FakeProjectInterface::shouldBeReconfigured = false

Definition at line 67 of file MirFakes.h.

Referenced by ShouldBeReconfigured().

◆ wasReconfigured

bool MIR::FakeProjectInterface::wasReconfigured = false

Definition at line 69 of file MirFakes.h.

Referenced by ReconfigureMusicGrid().


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