Audacity  3.0.3
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
ProjectSettings Class Referencefinal

Holds various per-project settings values, including the sample rate, and sends events to the project when certain values change. More...

#include <ProjectSettings.h>

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

Public Types

enum  EventCode : int { ChangedSyncLock, ChangedProjectRate }
 

Public Member Functions

 ProjectSettings (AudacityProject &project)
 
 ProjectSettings (const ProjectSettings &) PROHIBITED
 
ProjectSettingsoperator= (const ProjectSettings &) PROHIBITED
 
bool GetTracksFitVerticallyZoomed () const
 
void SetTracksFitVerticallyZoomed (bool flag)
 
bool GetShowId3Dialog () const
 
void SetShowId3Dialog (bool flag)
 
bool IsSyncLocked () const
 
void SetSyncLock (bool flag)
 
void SetRate (double rate)
 
double GetRate () const
 
void SetSnapTo (int snap)
 
int GetSnapTo () const
 
void SetTool (int tool)
 
int GetTool () const
 
double GetPlaySpeed () const
 
void SetPlaySpeed (double value)
 
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
 
bool IsSoloSimple () const
 
bool IsSoloNone () const
 
bool EmptyCanBeDirty () const
 
bool GetShowSplashScreen () const
 
- Public Member Functions inherited from ClientData::Base
virtual ~Base ()
 

Static Public Member Functions

static ProjectSettingsGet (AudacityProject &project)
 
static const ProjectSettingsGet (const AudacityProject &project)
 

Private Member Functions

void UpdatePrefs () override
 
- Private Member Functions inherited from PrefsListener
 PrefsListener ()
 
virtual ~PrefsListener ()
 
virtual void UpdateSelectedPrefs (int id)
 

Private Attributes

AudacityProjectmProject
 
NumericFormatSymbol mSelectionFormat
 
NumericFormatSymbol mFrequencySelectionFormatName
 
NumericFormatSymbol mBandwidthSelectionFormatName
 
NumericFormatSymbol mAudioTimeFormat
 
wxString mSoloPref
 
double mRate
 
std::atomic< double > mPlaySpeed {}
 
int mSnapTo
 
int mCurrentTool
 
bool mTracksFitVerticallyZoomed { false }
 
bool mShowId3Dialog { true }
 
bool mIsSyncLocked { false }
 
bool mEmptyCanBeDirty
 
bool mShowSplashScreen
 

Detailed Description

Holds various per-project settings values, including the sample rate, and sends events to the project when certain values change.

Definition at line 50 of file ProjectSettings.h.

Member Enumeration Documentation

◆ EventCode

Enumerator
ChangedSyncLock 
ChangedProjectRate 

Definition at line 59 of file ProjectSettings.h.

59  : int {
62  };

Constructor & Destructor Documentation

◆ ProjectSettings() [1/2]

ProjectSettings::ProjectSettings ( AudacityProject project)
explicit

Definition at line 50 of file ProjectSettings.cpp.

51  : mProject{ project }
54  gPrefs->Read(wxT("/SelectionFormat"), wxT("")))
55 }
58  gPrefs->Read(wxT("/AudioTimeFormat"), wxT("hh:mm:ss")))
59 }
62  gPrefs->Read(wxT("/FrequencySelectionFormatName"), wxT("")) )
63 }
66  gPrefs->Read(wxT("/BandwidthSelectionFormatName"), wxT("")) )
67 }
68 , mSnapTo( gPrefs->Read(wxT("/SnapTo"), SNAP_OFF) )
69 {
70  if (!gPrefs->Read(wxT("/SamplingRate/DefaultProjectSampleRate"), &mRate,
72  // The default given above can vary with host/devices. So unless there is
73  // an entry for the default sample rate in audacity.cfg, Audacity can open
74  // with a rate which is different from the rate with which it closed.
75  // See bug 1879.
76  gPrefs->Write(wxT("/SamplingRate/DefaultProjectSampleRate"), mRate);
77  gPrefs->Flush();
78  }
79  gPrefs->Read(wxT("/GUI/SyncLockTracks"), &mIsSyncLocked, false);
80 
81  bool multiToolActive = false;
82  gPrefs->Read(wxT("/GUI/ToolBars/Tools/MultiToolActive"), &multiToolActive);
83 
84  if (multiToolActive)
86  else
88 
89  UpdatePrefs();
90 }

◆ ProjectSettings() [2/2]

ProjectSettings::ProjectSettings ( const ProjectSettings )

Member Function Documentation

◆ EmptyCanBeDirty()

bool ProjectSettings::EmptyCanBeDirty ( ) const
inline

Definition at line 117 of file ProjectSettings.h.

117 { return mEmptyCanBeDirty; }

References mEmptyCanBeDirty.

◆ Get() [1/2]

ProjectSettings & ProjectSettings::Get ( AudacityProject project)
static

Definition at line 39 of file ProjectSettings.cpp.

40 {
41  return project.AttachedObjects::Get< ProjectSettings >(
43 }

References sProjectSettingsKey.

Referenced by ProjectFileManager::AddImportedTracks(), MacroCommands::ApplyCommandInBatchMode(), ProjectSelectionManager::AS_GetRate(), ProjectSelectionManager::AS_GetSelectionFormat(), ProjectSelectionManager::AS_GetSnapTo(), ProjectSelectionManager::AS_SetRate(), ProjectSelectionManager::AS_SetSelectionFormat(), ProjectSelectionManager::AS_SetSnapTo(), BenchmarkDialog::BenchmarkDialog(), TimeTrack::Clear(), SelectHandle::Click(), TimeShiftHandle::Click(), ContrastDialog::ContrastDialog(), DefaultPlayOptions(), DefaultSpeedPlayOptions(), anonymous_namespace{ClipMenus.cpp}::DoClipLeftOrRight(), LabelTrackView::DoEditLabels(), Exporter::DoEditMetadata(), EffectUI::DoEffect(), SelectUtilities::DoListSelection(), anonymous_namespace{TrackMenus.cpp}::DoMixAndRender(), anonymous_namespace{EditMenus.cpp}::DoPasteNothingSelected(), ProjectAudioManager::DoRecord(), ProjectFileManager::DoSave(), TrackUtilities::DoTrackMute(), TrackUtilities::DoTrackSolo(), TrackPanel::DrawTracks(), anonymous_namespace{LabelMenus.cpp}::EditByLabel(), anonymous_namespace{LabelMenus.cpp}::EditClipboardByLabel(), ExportCL::Export(), ExportFLAC::Export(), ExportMP3::Export(), ExportOGG::Export(), ExportPCM::Export(), ExportMultipleDialog::ExportMultipleByLabel(), ExportMultipleDialog::ExportMultipleByTrack(), Get(), ProjectManager::GetEstimatedRecordingMinsLeftOnDisk(), Effect::GetSelectionFormat(), anonymous_namespace{SelectMenus.cpp}::GridMove(), MixerTrackCluster::HandleResize(), ProjectFileIO::HandleXMLTag(), CommonTrackView::HitTest(), MuteButtonHandle::HitTest(), SoloButtonHandle::HitTest(), AUPImportFileHandle::Import(), ImportRaw(), ExportFFmpeg::InitCodecs(), AudacityApp::InitPart2(), IsNotSyncLockedFlag(), IsSyncLockedFlag(), Track::IsSyncLockSelected(), MenuManager::ModifyToolbarMenus(), anonymous_namespace{SelectMenus.cpp}::MoveWhenAudioInactive(), TrackActions::Handler::MuteTracks(), anonymous_namespace{SelectMenus.cpp}::NearestZeroCrossing(), MixerTrackCluster::OnButton_Mute(), ProjectManager::OnCloseWindow(), TrackActions::Handler::OnNewStereoTrack(), TrackActions::Handler::OnNewWaveTrack(), EditActions::Handler::OnPaste(), TrackActions::Handler::OnResample(), SelectActions::Handler::OnSetLeftSelection(), SelectActions::Handler::OnSetRightSelection(), TimeToolBar::OnSettingsChanged(), TransportActions::Handler::OnTimerRecord(), ToolsToolBar::OnTool(), ViewActions::Handler::OnUndoPushed(), SelectActions::Handler::OnZeroCrossing(), ProjectFileManager::OpenFile(), TimeTrack::Paste(), TimeToolBar::Populate(), SelectHandle::Preview(), NyquistEffect::Process(), Exporter::Process(), EffectTruncSilence::ProcessIndependently(), SnapManager::Reinit(), StretchHandle::Release(), anonymous_namespace{SelectMenus.cpp}::SeekWhenAudioInactive(), Exporter::SetAutoExportOptions(), EffectToneGen::SetAutomationParameters(), ToolsToolBar::SetCurrentTool(), TranscriptionToolBar::SetPlaySpeed(), SnapManager::Snap(), ProjectSelectionManager::SnapSelection(), ProjectSelectionManager::SSBL_GetBandwidthSelectionFormatName(), ProjectSelectionManager::SSBL_GetFrequencySelectionFormatName(), ProjectSelectionManager::SSBL_GetRate(), ProjectSelectionManager::SSBL_SetBandwidthSelectionFormatName(), ProjectSelectionManager::SSBL_SetFrequencySelectionFormatName(), ProjectSelectionManager::TT_GetAudioTimeFormat(), ProjectSelectionManager::TT_SetAudioTimeFormat(), and ProjectFileIO::WriteXML().

◆ Get() [2/2]

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

Definition at line 45 of file ProjectSettings.cpp.

46 {
47  return Get( const_cast< AudacityProject & >( project ) );
48 }

References Get().

Here is the call graph for this function:

◆ GetAudioTimeFormat()

const NumericFormatSymbol & ProjectSettings::GetAudioTimeFormat ( ) const

Definition at line 161 of file ProjectSettings.cpp.

162 {
163  return mAudioTimeFormat;
164 }

References mAudioTimeFormat.

◆ GetBandwidthSelectionFormatName()

const NumericFormatSymbol & ProjectSettings::GetBandwidthSelectionFormatName ( ) const

Definition at line 135 of file ProjectSettings.cpp.

136 {
138 }

References mBandwidthSelectionFormatName.

◆ GetFrequencySelectionFormatName()

const NumericFormatSymbol & ProjectSettings::GetFrequencySelectionFormatName ( ) const

Definition at line 123 of file ProjectSettings.cpp.

124 {
126 }

References mFrequencySelectionFormatName.

◆ GetPlaySpeed()

double ProjectSettings::GetPlaySpeed ( ) const
inline

Definition at line 94 of file ProjectSettings.h.

94  {
95  return mPlaySpeed.load( std::memory_order_relaxed ); }

References mPlaySpeed.

◆ GetRate()

double ProjectSettings::GetRate ( ) const

◆ GetSelectionFormat()

const NumericFormatSymbol & ProjectSettings::GetSelectionFormat ( ) const

Definition at line 151 of file ProjectSettings.cpp.

152 {
153  return mSelectionFormat;
154 }

References mSelectionFormat.

Referenced by Effect::GetSelectionFormat().

Here is the caller graph for this function:

◆ GetShowId3Dialog()

bool ProjectSettings::GetShowId3Dialog ( ) const
inline

Definition at line 72 of file ProjectSettings.h.

72 { return mShowId3Dialog; } //lda

References mShowId3Dialog.

Referenced by Exporter::Process(), and Exporter::SetAutoExportOptions().

Here is the caller graph for this function:

◆ GetShowSplashScreen()

bool ProjectSettings::GetShowSplashScreen ( ) const
inline

Definition at line 119 of file ProjectSettings.h.

119 { return mShowSplashScreen; }

References mShowSplashScreen.

Referenced by AudacityApp::InitPart2().

Here is the caller graph for this function:

◆ GetSnapTo()

int ProjectSettings::GetSnapTo ( ) const

Definition at line 185 of file ProjectSettings.cpp.

186 {
187  return mSnapTo;
188 }

References mSnapTo.

Referenced by SnapManager::Snap().

Here is the caller graph for this function:

◆ GetTool()

int ProjectSettings::GetTool ( ) const
inline

Definition at line 91 of file ProjectSettings.h.

91 { return mCurrentTool; }

References mCurrentTool.

Referenced by TimeShiftHandle::Click(), and SelectHandle::Preview().

Here is the caller graph for this function:

◆ GetTracksFitVerticallyZoomed()

bool ProjectSettings::GetTracksFitVerticallyZoomed ( ) const
inline

Definition at line 69 of file ProjectSettings.h.

69 { return mTracksFitVerticallyZoomed; } //lda

References mTracksFitVerticallyZoomed.

Referenced by ProjectAudioManager::DoRecord().

Here is the caller graph for this function:

◆ IsSoloNone()

bool ProjectSettings::IsSoloNone ( ) const
inline

Definition at line 115 of file ProjectSettings.h.

115 { return mSoloPref == wxT("None"); }

References mSoloPref.

Referenced by MixerTrackCluster::HandleResize(), MuteButtonHandle::HitTest(), and SoloButtonHandle::HitTest().

Here is the caller graph for this function:

◆ IsSoloSimple()

bool ProjectSettings::IsSoloSimple ( ) const
inline

Definition at line 114 of file ProjectSettings.h.

114 { return mSoloPref == wxT("Simple"); }

References mSoloPref.

Referenced by MixerTrackCluster::OnButton_Mute().

Here is the caller graph for this function:

◆ IsSyncLocked()

bool ProjectSettings::IsSyncLocked ( ) const

Definition at line 190 of file ProjectSettings.cpp.

191 {
192 #ifdef EXPERIMENTAL_SYNC_LOCK
193  return mIsSyncLocked;
194 #else
195  return false;
196 #endif
197 }

References mIsSyncLocked.

Referenced by TimeShiftHandle::Click(), anonymous_namespace{LabelMenus.cpp}::EditByLabel(), anonymous_namespace{LabelMenus.cpp}::EditClipboardByLabel(), IsNotSyncLockedFlag(), IsSyncLockedFlag(), and Track::IsSyncLockSelected().

Here is the caller graph for this function:

◆ operator=()

ProjectSettings& ProjectSettings::operator= ( const ProjectSettings )

◆ SetAudioTimeFormat()

void ProjectSettings::SetAudioTimeFormat ( const NumericFormatSymbol format)

Definition at line 156 of file ProjectSettings.cpp.

157 {
159 }

References format, and mAudioTimeFormat.

◆ SetBandwidthSelectionFormatName()

void ProjectSettings::SetBandwidthSelectionFormatName ( const NumericFormatSymbol format)

Definition at line 140 of file ProjectSettings.cpp.

142 {
143  mBandwidthSelectionFormatName = formatName;
144 }

References mBandwidthSelectionFormatName.

◆ SetFrequencySelectionFormatName()

void ProjectSettings::SetFrequencySelectionFormatName ( const NumericFormatSymbol format)

Definition at line 128 of file ProjectSettings.cpp.

130 {
131  mFrequencySelectionFormatName = formatName;
132 }

References mFrequencySelectionFormatName.

◆ SetPlaySpeed()

void ProjectSettings::SetPlaySpeed ( double  value)
inline

Definition at line 96 of file ProjectSettings.h.

96  {
97  mPlaySpeed.store( value, std::memory_order_relaxed ); }

References mPlaySpeed.

Referenced by TranscriptionToolBar::SetPlaySpeed().

Here is the caller graph for this function:

◆ SetRate()

void ProjectSettings::SetRate ( double  rate)

Definition at line 171 of file ProjectSettings.cpp.

172 {
173  auto &project = mProject;
174  if (rate != mRate) {
175  mRate = rate;
176  Notify( project, ChangedProjectRate );
177  }
178 }

References ChangedProjectRate, mProject, mRate, and anonymous_namespace{ProjectSettings.cpp}::Notify().

Here is the call graph for this function:

◆ SetSelectionFormat()

void ProjectSettings::SetSelectionFormat ( const NumericFormatSymbol format)

Definition at line 146 of file ProjectSettings.cpp.

147 {
149 }

References format, and mSelectionFormat.

◆ SetShowId3Dialog()

void ProjectSettings::SetShowId3Dialog ( bool  flag)
inline

Definition at line 73 of file ProjectSettings.h.

73 { mShowId3Dialog = flag; } //lda

References flag, and mShowId3Dialog.

◆ SetSnapTo()

void ProjectSettings::SetSnapTo ( int  snap)

Definition at line 180 of file ProjectSettings.cpp.

181 {
182  mSnapTo = snap;
183 }

References mSnapTo.

◆ SetSyncLock()

void ProjectSettings::SetSyncLock ( bool  flag)

Definition at line 199 of file ProjectSettings.cpp.

200 {
201  auto &project = mProject;
202  if (flag != mIsSyncLocked) {
204  Notify( project, ChangedSyncLock );
205  }
206 }

References ChangedSyncLock, flag, mIsSyncLocked, mProject, and anonymous_namespace{ProjectSettings.cpp}::Notify().

Here is the call graph for this function:

◆ SetTool()

void ProjectSettings::SetTool ( int  tool)
inline

Definition at line 90 of file ProjectSettings.h.

90 { mCurrentTool = tool; }

References mCurrentTool.

Referenced by ToolsToolBar::OnTool(), and ToolsToolBar::SetCurrentTool().

Here is the caller graph for this function:

◆ SetTracksFitVerticallyZoomed()

void ProjectSettings::SetTracksFitVerticallyZoomed ( bool  flag)
inline

Definition at line 70 of file ProjectSettings.h.

References flag, and mTracksFitVerticallyZoomed.

◆ UpdatePrefs()

void ProjectSettings::UpdatePrefs ( )
overrideprivatevirtual

Implements PrefsListener.

Definition at line 92 of file ProjectSettings.cpp.

93 {
94  gPrefs->Read(wxT("/AudioFiles/ShowId3Dialog"), &mShowId3Dialog, true);
95  gPrefs->Read(wxT("/GUI/EmptyCanBeDirty"), &mEmptyCanBeDirty, true);
96  gPrefs->Read(wxT("/GUI/ShowSplashScreen"), &mShowSplashScreen, true);
98  // Update the old default to the NEW default.
99  if (mSoloPref == wxT("Standard"))
100  mSoloPref = wxT("Simple");
101  gPrefs->Read(wxT("/GUI/TracksFitVerticallyZoomed"),
103  // gPrefs->Read(wxT("/GUI/UpdateSpectrogram"),
104  // &mViewInfo.bUpdateSpectrogram, true);
105 
106  // This code to change an empty projects rate is currently disabled, after
107  // discussion. The rule 'Default sample rate' only affects newly created
108  // projects was felt to be simpler and better.
109 #if 0
110  // The DefaultProjectSample rate is the rate for new projects.
111  // Do not change this project's rate, unless there are no tracks.
112  if( TrackList::Get( *this ).size() == 0){
113  gPrefs->Read(wxT("/SamplingRate/DefaultProjectSampleRate"), &mRate,
115  // If necessary, we change this rate in the selection toolbar too.
116  auto bar = SelectionBar::Get( *this );
117  bar.SetRate( mRate );
118  }
119 #endif
120 }

References SelectionBar::Get(), TrackList::Get(), AudioIOBase::GetOptimalSupportedSampleRate(), gPrefs, mEmptyCanBeDirty, mRate, mShowId3Dialog, mShowSplashScreen, mSoloPref, mTracksFitVerticallyZoomed, ChoiceSetting::Read(), TrackList::size(), and TracksBehaviorsSolo.

Here is the call graph for this function:

Member Data Documentation

◆ mAudioTimeFormat

NumericFormatSymbol ProjectSettings::mAudioTimeFormat
private

Definition at line 129 of file ProjectSettings.h.

Referenced by GetAudioTimeFormat(), and SetAudioTimeFormat().

◆ mBandwidthSelectionFormatName

NumericFormatSymbol ProjectSettings::mBandwidthSelectionFormatName
private

◆ mCurrentTool

int ProjectSettings::mCurrentTool
private

Definition at line 141 of file ProjectSettings.h.

Referenced by GetTool(), and SetTool().

◆ mEmptyCanBeDirty

bool ProjectSettings::mEmptyCanBeDirty
private

Definition at line 146 of file ProjectSettings.h.

Referenced by EmptyCanBeDirty(), and UpdatePrefs().

◆ mFrequencySelectionFormatName

NumericFormatSymbol ProjectSettings::mFrequencySelectionFormatName
private

◆ mIsSyncLocked

bool ProjectSettings::mIsSyncLocked { false }
private

Definition at line 145 of file ProjectSettings.h.

Referenced by IsSyncLocked(), and SetSyncLock().

◆ mPlaySpeed

std::atomic<double> ProjectSettings::mPlaySpeed {}
private

Definition at line 137 of file ProjectSettings.h.

Referenced by GetPlaySpeed(), and SetPlaySpeed().

◆ mProject

AudacityProject& ProjectSettings::mProject
private

Definition at line 124 of file ProjectSettings.h.

Referenced by SetRate(), and SetSyncLock().

◆ mRate

double ProjectSettings::mRate
private

Definition at line 133 of file ProjectSettings.h.

Referenced by GetRate(), SetRate(), and UpdatePrefs().

◆ mSelectionFormat

NumericFormatSymbol ProjectSettings::mSelectionFormat
private

Definition at line 126 of file ProjectSettings.h.

Referenced by GetSelectionFormat(), and SetSelectionFormat().

◆ mShowId3Dialog

bool ProjectSettings::mShowId3Dialog { true }
private

Definition at line 144 of file ProjectSettings.h.

Referenced by GetShowId3Dialog(), SetShowId3Dialog(), and UpdatePrefs().

◆ mShowSplashScreen

bool ProjectSettings::mShowSplashScreen
private

Definition at line 147 of file ProjectSettings.h.

Referenced by GetShowSplashScreen(), and UpdatePrefs().

◆ mSnapTo

int ProjectSettings::mSnapTo
private

Definition at line 139 of file ProjectSettings.h.

Referenced by GetSnapTo(), and SetSnapTo().

◆ mSoloPref

wxString ProjectSettings::mSoloPref
private

Definition at line 131 of file ProjectSettings.h.

Referenced by IsSoloNone(), IsSoloSimple(), and UpdatePrefs().

◆ mTracksFitVerticallyZoomed

bool ProjectSettings::mTracksFitVerticallyZoomed { false }
private

The documentation for this class was generated from the following files:
SelectionBar::Get
static SelectionBar & Get(AudacityProject &project)
Definition: SelectionBar.cpp:137
ProjectSettings::mProject
AudacityProject & mProject
Definition: ProjectSettings.h:124
TracksBehaviorsSolo
ChoiceSetting TracksBehaviorsSolo
Definition: TracksBehaviorsPrefs.cpp:64
ProjectSettings::mFrequencySelectionFormatName
NumericFormatSymbol mFrequencySelectionFormatName
Definition: ProjectSettings.h:127
ProjectSettings::mShowId3Dialog
bool mShowId3Dialog
Definition: ProjectSettings.h:144
ToolCodes::selectTool
@ selectTool
Definition: ProjectSettings.h:35
flag
static std::once_flag flag
Definition: WaveformView.cpp:1113
gPrefs
FileConfig * gPrefs
Definition: Prefs.cpp:67
ProjectSettings::mCurrentTool
int mCurrentTool
Definition: ProjectSettings.h:141
sProjectSettingsKey
static const AudacityProject::AttachedObjects::RegisteredFactory sProjectSettingsKey
Definition: ProjectSettings.cpp:32
ProjectSettings::Get
static ProjectSettings & Get(AudacityProject &project)
Definition: ProjectSettings.cpp:39
ProjectSettings::mAudioTimeFormat
NumericFormatSymbol mAudioTimeFormat
Definition: ProjectSettings.h:129
ProjectSettings::mSelectionFormat
NumericFormatSymbol mSelectionFormat
Definition: ProjectSettings.h:126
SNAP_OFF
@ SNAP_OFF
Definition: ProjectSettings.h:28
ProjectSettings::UpdatePrefs
void UpdatePrefs() override
Definition: ProjectSettings.cpp:92
NumericConverter::BANDWIDTH
@ BANDWIDTH
Definition: NumericTextCtrl.h:54
ProjectSettings::mBandwidthSelectionFormatName
NumericFormatSymbol mBandwidthSelectionFormatName
Definition: ProjectSettings.h:128
anonymous_namespace{ProjectSettings.cpp}::Notify
void Notify(AudacityProject &project, ProjectSettings::EventCode code)
Definition: ProjectSettings.cpp:23
ProjectSettings::ChangedSyncLock
@ ChangedSyncLock
Definition: ProjectSettings.h:60
NumericConverter::LookupFormat
static NumericFormatSymbol LookupFormat(Type type, const wxString &id)
Definition: NumericTextCtrl.cpp:702
ProjectSettings::mSnapTo
int mSnapTo
Definition: ProjectSettings.h:139
ToolCodes::multiTool
@ multiTool
Definition: ProjectSettings.h:40
ProjectSettings::mShowSplashScreen
bool mShowSplashScreen
Definition: ProjectSettings.h:147
ProjectSettings::mPlaySpeed
std::atomic< double > mPlaySpeed
Definition: ProjectSettings.h:137
AudioIOBase::GetOptimalSupportedSampleRate
static int GetOptimalSupportedSampleRate()
Get a supported sample rate which can be used a an optimal default.
Definition: AudioIOBase.cpp:693
NumericConverter::TIME
@ TIME
Definition: NumericTextCtrl.h:51
format
int format
Definition: ExportPCM.cpp:54
NumericConverter::FREQUENCY
@ FREQUENCY
Definition: NumericTextCtrl.h:53
ChoiceSetting::Read
wxString Read() const
Definition: Prefs.cpp:235
TrackList::size
size_t size() const
Definition: Track.cpp:988
FileConfig::Flush
virtual bool Flush(bool bCurrentOnly=false) wxOVERRIDE
Definition: FileConfig.cpp:151
TrackList::Get
static TrackList & Get(AudacityProject &project)
Definition: Track.cpp:495
ProjectSettings::mRate
double mRate
Definition: ProjectSettings.h:133
ProjectSettings::mSoloPref
wxString mSoloPref
Definition: ProjectSettings.h:131
AudacityProject
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:112
ProjectSettings::mTracksFitVerticallyZoomed
bool mTracksFitVerticallyZoomed
Definition: ProjectSettings.h:143
ProjectSettings::ChangedProjectRate
@ ChangedProjectRate
Definition: ProjectSettings.h:61
ProjectSettings::mEmptyCanBeDirty
bool mEmptyCanBeDirty
Definition: ProjectSettings.h:146
ProjectSettings::mIsSyncLocked
bool mIsSyncLocked
Definition: ProjectSettings.h:145
ProjectSettings
Holds various per-project settings values, including the sample rate, and sends events to the project...
Definition: ProjectSettings.h:53