Audacity 3.2.0
|
#include <ProjectNumericFormats.h>
Public Member Functions | |
ProjectNumericFormats (const AudacityProject &project) | |
~ProjectNumericFormats () override | |
void | SetSelectionFormat (const NumericFormatID &format) |
NumericFormatID | GetSelectionFormat () const |
void | SetAudioTimeFormat (const NumericFormatID &format) |
NumericFormatID | GetAudioTimeFormat () const |
void | SetFrequencySelectionFormatName (const NumericFormatID &format) |
NumericFormatID | GetFrequencySelectionFormatName () const |
void | SetBandwidthSelectionFormatName (const NumericFormatID &format) |
NumericFormatID | GetBandwidthSelectionFormatName () const |
NumericFormatSymbol | LookupFormat (const NumericConverterType &type, const wxString &identifier) |
Public Member Functions inherited from ClientData::Base | |
virtual | ~Base () |
Public Member Functions inherited from Observer::Publisher< ProjectNumericFormatsEvent > | |
Publisher (ExceptionPolicy *pPolicy=nullptr, Alloc a={}) | |
Constructor supporting type-erased custom allocation/deletion. More... | |
Publisher (Publisher &&)=default | |
Publisher & | operator= (Publisher &&)=default |
Subscription | Subscribe (Callback callback) |
Connect a callback to the Publisher; later-connected are called earlier. More... | |
Subscription | Subscribe (Object &obj, Return(Object::*callback)(Args...)) |
Overload of Subscribe takes an object and pointer-to-member-function. More... | |
Static Public Member Functions | |
static ProjectNumericFormats & | Get (AudacityProject &project) |
static const ProjectNumericFormats & | Get (const AudacityProject &project) |
Additional Inherited Members | |
Public Types inherited from Observer::Publisher< ProjectNumericFormatsEvent > | |
using | message_type = ProjectNumericFormatsEvent |
using | CallbackReturn = std::conditional_t< true, void, bool > |
using | Callback = std::function< CallbackReturn(const ProjectNumericFormatsEvent &) > |
Type of functions that can be connected to the Publisher. More... | |
Static Public Attributes inherited from Observer::Publisher< ProjectNumericFormatsEvent > | |
static constexpr bool | notifies_all |
Protected Member Functions inherited from Observer::Publisher< ProjectNumericFormatsEvent > | |
CallbackReturn | Publish (const ProjectNumericFormatsEvent &message) |
Send a message to connected callbacks. More... | |
Definition at line 31 of file ProjectNumericFormats.h.
|
explicit |
Definition at line 39 of file ProjectNumericFormats.cpp.
|
overridedefault |
|
static |
Definition at line 28 of file ProjectNumericFormats.cpp.
Referenced by SelectionBar::AddTime(), LabelTrackView::DoEditLabels(), Get(), Effect::GetSelectionFormat(), AUPImportFileHandle::Import(), ProjectSelectionManager::OnFormatsChanged(), SpectralSelectionBar::OnFormatsChanged(), TimeToolBar::OnFormatsChanged(), SelectionBar::OnFormatsChanged(), SelectUtilities::OnSetRegion(), SelectionBar::OnUpdate(), SpectralSelectionBar::OnUpdate(), TimeToolBar::OnUpdate(), SelectionBar::Populate(), SpectralSelectionBar::Populate(), TimeToolBar::Populate(), SnapManager::Reinit(), SpectralSelectionBar::SpectralSelectionBar(), and TimeToolBar::TimeToolBar().
|
static |
Definition at line 33 of file ProjectNumericFormats.cpp.
References Get(), and project.
NumericFormatID ProjectNumericFormats::GetAudioTimeFormat | ( | ) | const |
Definition at line 131 of file ProjectNumericFormats.cpp.
References mAudioTimeFormat.
NumericFormatID ProjectNumericFormats::GetBandwidthSelectionFormatName | ( | ) | const |
Definition at line 77 of file ProjectNumericFormats.cpp.
References mBandwidthSelectionFormatName.
NumericFormatID ProjectNumericFormats::GetFrequencySelectionFormatName | ( | ) | const |
Definition at line 58 of file ProjectNumericFormats.cpp.
References mFrequencySelectionFormatName.
NumericFormatID ProjectNumericFormats::GetSelectionFormat | ( | ) | const |
Definition at line 114 of file ProjectNumericFormats.cpp.
References mSelectionFormat.
Referenced by Effect::GetSelectionFormat().
NumericFormatSymbol ProjectNumericFormats::LookupFormat | ( | const NumericConverterType & | type, |
const wxString & | identifier | ||
) |
Definition at line 82 of file ProjectNumericFormats.cpp.
References NumericConverterFormats::Lookup(), mProject, and FormatterContext::ProjectContext().
void ProjectNumericFormats::SetAudioTimeFormat | ( | const NumericFormatID & | format | ) |
Definition at line 119 of file ProjectNumericFormats.cpp.
References ProjectNumericFormatsEvent::ChangedAudioTimeFormat, anonymous_namespace{ExportPCM.cpp}::format, mAudioTimeFormat, and Observer::Publisher< ProjectNumericFormatsEvent >::Publish().
void ProjectNumericFormats::SetBandwidthSelectionFormatName | ( | const NumericFormatID & | format | ) |
Definition at line 89 of file ProjectNumericFormats.cpp.
References ProjectNumericFormatsEvent::ChangedBandwidthFormat, mBandwidthSelectionFormatName, and Observer::Publisher< ProjectNumericFormatsEvent >::Publish().
void ProjectNumericFormats::SetFrequencySelectionFormatName | ( | const NumericFormatID & | format | ) |
Definition at line 63 of file ProjectNumericFormats.cpp.
References ProjectNumericFormatsEvent::ChangedFrequencyFormat, mFrequencySelectionFormatName, and Observer::Publisher< ProjectNumericFormatsEvent >::Publish().
void ProjectNumericFormats::SetSelectionFormat | ( | const NumericFormatID & | format | ) |
Definition at line 102 of file ProjectNumericFormats.cpp.
References ProjectNumericFormatsEvent::ChangedSelectionFormat, anonymous_namespace{ExportPCM.cpp}::format, mSelectionFormat, and Observer::Publisher< ProjectNumericFormatsEvent >::Publish().
|
private |
Definition at line 65 of file ProjectNumericFormats.h.
Referenced by GetAudioTimeFormat(), and SetAudioTimeFormat().
|
private |
Definition at line 64 of file ProjectNumericFormats.h.
Referenced by GetBandwidthSelectionFormatName(), and SetBandwidthSelectionFormatName().
|
private |
Definition at line 63 of file ProjectNumericFormats.h.
Referenced by GetFrequencySelectionFormatName(), and SetFrequencySelectionFormatName().
|
private |
Definition at line 60 of file ProjectNumericFormats.h.
Referenced by LookupFormat().
|
private |
Definition at line 62 of file ProjectNumericFormats.h.
Referenced by GetSelectionFormat(), and SetSelectionFormat().