Audacity 3.2.0
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
ProjectNumericFormats Class Referencefinal

#include <ProjectNumericFormats.h>

Inheritance diagram for ProjectNumericFormats:
[legend]
Collaboration diagram for ProjectNumericFormats:
[legend]

Public Member Functions

 ProjectNumericFormats (const AudacityProject &project)
 
 ~ProjectNumericFormats () override
 
void SetSelectionFormat (const NumericFormatSymbol &format)
 
const NumericFormatSymbolGetSelectionFormat () const
 
void SetAudioTimeFormat (const NumericFormatSymbol &format)
 
const NumericFormatSymbolGetAudioTimeFormat () const
 
void SetFrequencySelectionFormatName (const NumericFormatSymbol &format)
 
const NumericFormatSymbolGetFrequencySelectionFormatName () const
 
void SetBandwidthSelectionFormatName (const NumericFormatSymbol &format)
 
const NumericFormatSymbolGetBandwidthSelectionFormatName () const
 
NumericFormatSymbol LookupFormat (const NumericConverterType &type, const wxString &identifier)
 
- Public Member Functions inherited from ClientData::Base
virtual ~Base ()
 

Static Public Member Functions

static ProjectNumericFormatsGet (AudacityProject &project)
 
static const ProjectNumericFormatsGet (const AudacityProject &project)
 

Private Attributes

const AudacityProjectmProject
 
NumericFormatSymbol mSelectionFormat
 
NumericFormatSymbol mFrequencySelectionFormatName
 
NumericFormatSymbol mBandwidthSelectionFormatName
 
NumericFormatSymbol mAudioTimeFormat
 

Detailed Description

Definition at line 19 of file ProjectNumericFormats.h.

Constructor & Destructor Documentation

◆ ProjectNumericFormats()

ProjectNumericFormats::ProjectNumericFormats ( const AudacityProject project)
explicit

Definition at line 39 of file ProjectNumericFormats.cpp.

40 : mProject { project }
44 gPrefs->Read(wxT("/SelectionFormat"), wxT("")))
45 }
49 gPrefs->Read(wxT("/FrequencySelectionFormatName"), wxT("")) )
50 }
54 gPrefs->Read(wxT("/BandwidthSelectionFormatName"), wxT("")) )
55 }
59 gPrefs->Read(wxT("/AudioTimeFormat"), wxT("hh:mm:ss")))
60 }
61{}
wxT("CloseDown"))
const NumericConverterType & NumericConverterType_BANDWIDTH()
const NumericConverterType & NumericConverterType_FREQUENCY()
const NumericConverterType & NumericConverterType_TIME()
FileConfig * gPrefs
Definition: Prefs.cpp:70
static FormatterContext ProjectContext(const AudacityProject &project)
NumericFormatSymbol mFrequencySelectionFormatName
NumericFormatSymbol mBandwidthSelectionFormatName
const AudacityProject & mProject
NumericFormatSymbol mAudioTimeFormat
NumericFormatSymbol mSelectionFormat
NUMERIC_FORMATS_API NumericFormatSymbol Lookup(const FormatterContext &context, const NumericConverterType &type, const NumericFormatSymbol &formatIdentifier)
Looks up the format, returns Default for the type if the format is not registered.

◆ ~ProjectNumericFormats()

ProjectNumericFormats::~ProjectNumericFormats ( )
overridedefault

Member Function Documentation

◆ Get() [1/2]

ProjectNumericFormats & ProjectNumericFormats::Get ( AudacityProject project)
static

◆ Get() [2/2]

const ProjectNumericFormats & ProjectNumericFormats::Get ( const AudacityProject project)
static

Definition at line 33 of file ProjectNumericFormats.cpp.

35{
36 return Get(const_cast<AudacityProject &>(project));
37}
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:90
static ProjectNumericFormats & Get(AudacityProject &project)

References Get().

Here is the call graph for this function:

◆ GetAudioTimeFormat()

const NumericFormatSymbol & ProjectNumericFormats::GetAudioTimeFormat ( ) const

Definition at line 112 of file ProjectNumericFormats.cpp.

113{
114 return mAudioTimeFormat;
115}

References mAudioTimeFormat.

◆ GetBandwidthSelectionFormatName()

const NumericFormatSymbol & ProjectNumericFormats::GetBandwidthSelectionFormatName ( ) const

Definition at line 78 of file ProjectNumericFormats.cpp.

79{
81}

References mBandwidthSelectionFormatName.

◆ GetFrequencySelectionFormatName()

const NumericFormatSymbol & ProjectNumericFormats::GetFrequencySelectionFormatName ( ) const

Definition at line 66 of file ProjectNumericFormats.cpp.

67{
69}

References mFrequencySelectionFormatName.

◆ GetSelectionFormat()

const NumericFormatSymbol & ProjectNumericFormats::GetSelectionFormat ( ) const

Definition at line 102 of file ProjectNumericFormats.cpp.

103{
104 return mSelectionFormat;
105}

References mSelectionFormat.

Referenced by ProjectSelectionManager::AS_GetSelectionFormat(), and Effect::GetSelectionFormat().

Here is the caller graph for this function:

◆ LookupFormat()

NumericFormatSymbol ProjectNumericFormats::LookupFormat ( const NumericConverterType type,
const wxString &  identifier 
)

Definition at line 83 of file ProjectNumericFormats.cpp.

References NumericConverterFormats::Lookup(), mProject, and FormatterContext::ProjectContext().

Here is the call graph for this function:

◆ SetAudioTimeFormat()

void ProjectNumericFormats::SetAudioTimeFormat ( const NumericFormatSymbol format)

Definition at line 107 of file ProjectNumericFormats.cpp.

108{
110}
int format
Definition: ExportPCM.cpp:53

References format, and mAudioTimeFormat.

◆ SetBandwidthSelectionFormatName()

void ProjectNumericFormats::SetBandwidthSelectionFormatName ( const NumericFormatSymbol format)

Definition at line 90 of file ProjectNumericFormats.cpp.

92{
94}

References mBandwidthSelectionFormatName.

◆ SetFrequencySelectionFormatName()

void ProjectNumericFormats::SetFrequencySelectionFormatName ( const NumericFormatSymbol format)

Definition at line 71 of file ProjectNumericFormats.cpp.

73{
75}

References mFrequencySelectionFormatName.

◆ SetSelectionFormat()

void ProjectNumericFormats::SetSelectionFormat ( const NumericFormatSymbol format)

Definition at line 96 of file ProjectNumericFormats.cpp.

98{
100}

References format, and mSelectionFormat.

Member Data Documentation

◆ mAudioTimeFormat

NumericFormatSymbol ProjectNumericFormats::mAudioTimeFormat
private

Definition at line 51 of file ProjectNumericFormats.h.

Referenced by GetAudioTimeFormat(), and SetAudioTimeFormat().

◆ mBandwidthSelectionFormatName

NumericFormatSymbol ProjectNumericFormats::mBandwidthSelectionFormatName
private

◆ mFrequencySelectionFormatName

NumericFormatSymbol ProjectNumericFormats::mFrequencySelectionFormatName
private

◆ mProject

const AudacityProject& ProjectNumericFormats::mProject
private

Definition at line 46 of file ProjectNumericFormats.h.

Referenced by LookupFormat().

◆ mSelectionFormat

NumericFormatSymbol ProjectNumericFormats::mSelectionFormat
private

Definition at line 48 of file ProjectNumericFormats.h.

Referenced by GetSelectionFormat(), and SetSelectionFormat().


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