Audacity 3.2.0
Variables
ProjectTimeSignature.cpp File Reference
#include "ProjectTimeSignature.h"
#include "Beats.h"
#include "Project.h"
#include "XMLAttributeValueView.h"
#include "XMLWriter.h"
Include dependency graph for ProjectTimeSignature.cpp:

Go to the source code of this file.

Variables

static const AttachedProjectObjects::RegisteredFactory key
 
static ProjectFileIORegistry::AttributeWriterEntry entry
 
static ProjectFileIORegistry::AttributeReaderEntries entries
 

Variable Documentation

◆ entries

Initial value:
{
{
{ "time_signature_tempo", [](auto& signature, auto value)
{ signature.SetTempo(value.Get(BeatsPerMinute.Read())); } },
{ "time_signature_upper", [](auto& signature, auto value)
{ signature.SetUpperTimeSignature(value.Get(UpperTimeSignature.Read())); } },
{ "time_signature_lower", [](auto& signature, auto value)
{ signature.SetLowerTimeSignature(value.Get(LowerTimeSignature.Read())); } },
}
}
IntSetting UpperTimeSignature
The upper time signature of the Beats & Measures ruler.
Definition: Beats.cpp:14
IntSetting LowerTimeSignature
The lower time signature of the Beats & Measures ruler.
Definition: Beats.cpp:15
DoubleSetting BeatsPerMinute
The tempo used for drawing the Beats & Measures ruler.
Definition: Beats.cpp:13
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:90
void SetTempo(double tempo)
static ProjectTimeSignature & Get(AudacityProject &project)
bool Read(T *pVar) const
overload of Read returning a boolean that is true if the value was previously defined *‍/
Definition: Prefs.h:207

Definition at line 127 of file ProjectTimeSignature.cpp.

◆ entry

Initial value:
{
[](const AudacityProject &project, XMLWriter &xmlFile){
xmlFile.WriteAttr(wxT("time_signature_tempo"), formats.GetTempo());
xmlFile.WriteAttr(wxT("time_signature_upper"), formats.GetUpperTimeSignature());
xmlFile.WriteAttr(wxT("time_signature_lower"), formats.GetLowerTimeSignature());
}
}
wxT("CloseDown"))
const auto project
Base class for XMLFileWriter and XMLStringWriter that provides the general functionality for creating...
Definition: XMLWriter.h:25

Definition at line 118 of file ProjectTimeSignature.cpp.

◆ key

Initial value:
{
{ return std::make_shared<ProjectTimeSignature>(); }
}

Definition at line 18 of file ProjectTimeSignature.cpp.

Referenced by ProjectTimeSignature::Get().