Audacity 3.2.0
|
This object is useful mostly as an observer of others in the project. More...
#include <ProjectSelectionManager.h>
Public Member Functions | |
ProjectSelectionManager (AudacityProject &project) | |
ProjectSelectionManager (const ProjectSelectionManager &)=delete | |
ProjectSelectionManager & | operator= (const ProjectSelectionManager &)=delete |
~ProjectSelectionManager () override | |
void | ModifySelection (double &start, double &end, bool done) |
void | ModifySpectralSelection (double nyquist, double &bottom, double &top, bool done) |
Public Member Functions inherited from ClientData::Base | |
virtual | ~Base () |
Static Public Member Functions | |
static ProjectSelectionManager & | Get (AudacityProject &project) |
static const ProjectSelectionManager & | Get (const AudacityProject &project) |
Private Member Functions | |
void | OnFormatsChanged (ProjectNumericFormatsEvent) |
void | SetSelectionFormat (const NumericFormatID &format) |
void | SetAudioTimeFormat (const NumericFormatID &format) |
void | SetFrequencySelectionFormatName (const NumericFormatID &formatName) |
void | SetBandwidthSelectionFormatName (const NumericFormatID &formatName) |
void | SnapSelection () |
This object is useful mostly as an observer of others in the project.
It listens for changes of selection formats and snap-to choices, and reacts by updating persistent preferences, and updating the time selection to be consistent with those choices.
Definition at line 28 of file ProjectSelectionManager.h.
|
explicit |
Definition at line 41 of file ProjectSelectionManager.cpp.
References SnapSelection().
|
delete |
|
overridedefault |
|
static |
Definition at line 28 of file ProjectSelectionManager.cpp.
References project, and sProjectSelectionManagerKey.
Referenced by SelectFrequenciesCommand::Apply(), Get(), SelectionBar::ModifySelection(), and SpectralSelectionBar::ModifySpectralSelection().
|
static |
Definition at line 35 of file ProjectSelectionManager.cpp.
References Get(), and project.
void ProjectSelectionManager::ModifySelection | ( | double & | start, |
double & | end, | ||
bool | done | ||
) |
Definition at line 121 of file ProjectSelectionManager.cpp.
References details::end(), ProjectHistory::Get(), ViewInfo::Get(), mProject, and project.
void ProjectSelectionManager::ModifySpectralSelection | ( | double | nyquist, |
double & | bottom, | ||
double & | top, | ||
bool | done | ||
) |
Definition at line 147 of file ProjectSelectionManager.cpp.
References ProjectHistory::Get(), ViewInfo::Get(), min(), mProject, and project.
Referenced by SelectFrequenciesCommand::Apply().
|
private |
Definition at line 90 of file ProjectSelectionManager.cpp.
References ProjectNumericFormatsEvent::ChangedAudioTimeFormat, ProjectNumericFormatsEvent::ChangedBandwidthFormat, ProjectNumericFormatsEvent::ChangedFrequencyFormat, ProjectNumericFormatsEvent::ChangedSelectionFormat, ProjectNumericFormats::Get(), mProject, SetAudioTimeFormat(), SetBandwidthSelectionFormatName(), SetFrequencySelectionFormatName(), SetSelectionFormat(), and ProjectNumericFormatsEvent::type.
|
delete |
|
private |
Definition at line 115 of file ProjectSelectionManager.cpp.
References audacity::BasicSettings::Flush(), anonymous_namespace{ExportPCM.cpp}::format, gPrefs, audacity::BasicSettings::Write(), and wxT().
Referenced by OnFormatsChanged().
|
private |
Definition at line 140 of file ProjectSelectionManager.cpp.
References audacity::BasicSettings::Flush(), Identifier::GET(), gPrefs, audacity::BasicSettings::Write(), and wxT().
Referenced by OnFormatsChanged().
|
private |
Definition at line 132 of file ProjectSelectionManager.cpp.
References audacity::BasicSettings::Flush(), Identifier::GET(), gPrefs, audacity::BasicSettings::Write(), and wxT().
Referenced by OnFormatsChanged().
|
private |
Definition at line 109 of file ProjectSelectionManager.cpp.
References audacity::BasicSettings::Flush(), anonymous_namespace{ExportPCM.cpp}::format, gPrefs, audacity::BasicSettings::Write(), and wxT().
Referenced by OnFormatsChanged().
|
private |
Definition at line 69 of file ProjectSelectionManager.cpp.
References ProjectSnap::Get(), ViewInfo::Get(), mProject, project, and SNAP_OFF.
Referenced by ProjectSelectionManager().
|
private |
Definition at line 57 of file ProjectSelectionManager.h.
|
private |
Definition at line 58 of file ProjectSelectionManager.h.
Referenced by ModifySelection(), ModifySpectralSelection(), OnFormatsChanged(), and SnapSelection().
|
private |
Definition at line 62 of file ProjectSelectionManager.h.
|
private |
Definition at line 60 of file ProjectSelectionManager.h.
|
private |
Definition at line 61 of file ProjectSelectionManager.h.