![]() |
Audacity 3.2.0
|
Holds various per-project settings values, and sends events to the project when certain values change. More...
#include <ProjectSettings.h>
Public Types | |
enum | EventCode : int { ChangedSyncLock , ChangedTool } |
Static Public Member Functions | |
static ProjectSettings & | Get (AudacityProject &project) |
static const ProjectSettings & | Get (const AudacityProject &project) |
Private Member Functions | |
void | UpdatePrefs () override |
![]() | |
PrefsListener () | |
virtual | ~PrefsListener () |
virtual void | UpdatePrefs ()=0 |
virtual void | UpdateSelectedPrefs (int id) |
Private Attributes | |
AudacityProject & | mProject |
NumericFormatSymbol | mSelectionFormat |
NumericFormatSymbol | mFrequencySelectionFormatName |
NumericFormatSymbol | mBandwidthSelectionFormatName |
NumericFormatSymbol | mAudioTimeFormat |
wxString | mSoloPref |
int | mSnapTo |
int | mCurrentTool |
int | mCurrentBrushRadius |
int | mCurrentBrushHop |
bool | mbSmartSelection { false } |
bool | mbOvertones { false } |
bool | mTracksFitVerticallyZoomed { false } |
bool | mShowId3Dialog { true } |
bool | mIsSyncLocked { false } |
bool | mEmptyCanBeDirty |
bool | mShowSplashScreen |
Additional Inherited Members | |
![]() | |
static void | Broadcast (int id=0) |
Call this static function to notify all PrefsListener objects. More... | |
Holds various per-project settings values, and sends events to the project when certain values change.
Definition at line 56 of file ProjectSettings.h.
enum ProjectSettings::EventCode : int |
Enumerator | |
---|---|
ChangedSyncLock | |
ChangedTool |
Definition at line 65 of file ProjectSettings.h.
|
explicit |
Definition at line 56 of file ProjectSettings.cpp.
References gPrefs, mCurrentTool, mIsSyncLocked, ToolCodes::multiTool, ToolCodes::selectTool, and UpdatePrefs().
ProjectSettings::ProjectSettings | ( | const ProjectSettings & | ) |
|
inline |
Definition at line 122 of file ProjectSettings.h.
|
static |
Definition at line 45 of file ProjectSettings.cpp.
References sProjectSettingsKey.
Referenced by MacroCommands::ApplyCommandInBatchMode(), ProjectSelectionManager::AS_GetSelectionFormat(), ProjectSelectionManager::AS_GetSnapTo(), ProjectSelectionManager::AS_SetSelectionFormat(), ProjectSelectionManager::AS_SetSnapTo(), BrushHandleHitTest(), SelectHandle::Click(), TimeShiftHandle::Click(), anonymous_namespace{ClipMenus.cpp}::DoClipLeftOrRight(), LabelTrackView::DoEditLabels(), Exporter::DoEditMetadata(), SelectUtilities::DoListSelection(), ProjectAudioManager::DoRecord(), ProjectFileManager::DoSave(), ToolsToolBar::DoToolChanged(), TrackUtilities::DoTrackMute(), TrackUtilities::DoTrackSolo(), TrackPanel::DrawTracks(), anonymous_namespace{LabelMenus.cpp}::EditByLabel(), anonymous_namespace{LabelMenus.cpp}::EditClipboardByLabel(), ExportMultipleDialog::ExportMultipleByLabel(), ExportMultipleDialog::ExportMultipleByTrack(), Get(), Effect::GetSelectionFormat(), anonymous_namespace{SelectMenus.cpp}::GridMove(), MixerTrackCluster::HandleResize(), CommonTrackView::HitTest(), NoteTrackAffordanceControls::HitTest(), WaveTrackAffordanceControls::HitTest(), MuteButtonHandle::HitTest(), SoloButtonHandle::HitTest(), AUPImportFileHandle::Import(), ExportFFmpeg::InitCodecs(), AudacityApp::InitPart2(), IsNotSyncLockedFlag(), IsSyncLockedFlag(), SyncLock::IsSyncLockSelected(), MenuManager::ModifyToolbarMenus(), anonymous_namespace{SelectMenus.cpp}::MoveWhenAudioInactive(), TrackActions::Handler::MuteTracks(), MixerTrackCluster::OnButton_Mute(), ProjectManager::OnCloseWindow(), ToolActions::Handler::OnNextTool(), EditActions::Handler::OnPaste(), ToolActions::Handler::OnPrevTool(), SelectUtilities::OnSetRegion(), TransportActions::Handler::OnTimerRecord(), ToolsToolBar::OnTool(), ViewActions::Handler::OnUndoPushed(), ProjectFileManager::OpenProjectFile(), TimeToolBar::Populate(), SelectHandle::Preview(), Exporter::Process(), EffectTruncSilence::ProcessIndependently(), SnapManager::Reinit(), StretchHandle::Release(), anonymous_namespace{SelectMenus.cpp}::SeekWhenAudioInactive(), NoteTrackAffordanceHandle::SelectAt(), Exporter::SetAutoExportOptions(), anonymous_namespace{ToolsToolBar.cpp}::SetTool(), SnapManager::Snap(), ProjectSelectionManager::SnapSelection(), ProjectSelectionManager::SSBL_GetBandwidthSelectionFormatName(), ProjectSelectionManager::SSBL_GetFrequencySelectionFormatName(), ProjectSelectionManager::SSBL_SetBandwidthSelectionFormatName(), ProjectSelectionManager::SSBL_SetFrequencySelectionFormatName(), ProjectSelectionManager::TT_GetAudioTimeFormat(), and ProjectSelectionManager::TT_SetAudioTimeFormat().
|
static |
Definition at line 51 of file ProjectSettings.cpp.
References Get().
const NumericFormatSymbol & ProjectSettings::GetAudioTimeFormat | ( | ) | const |
Definition at line 158 of file ProjectSettings.cpp.
References mAudioTimeFormat.
const NumericFormatSymbol & ProjectSettings::GetBandwidthSelectionFormatName | ( | ) | const |
Definition at line 132 of file ProjectSettings.cpp.
References mBandwidthSelectionFormatName.
|
inline |
Definition at line 96 of file ProjectSettings.h.
Referenced by BrushHandle::BrushHandle().
const NumericFormatSymbol & ProjectSettings::GetFrequencySelectionFormatName | ( | ) | const |
Definition at line 120 of file ProjectSettings.cpp.
References mFrequencySelectionFormatName.
const NumericFormatSymbol & ProjectSettings::GetSelectionFormat | ( | ) | const |
Definition at line 148 of file ProjectSettings.cpp.
References mSelectionFormat.
Referenced by Effect::GetSelectionFormat().
|
inline |
Definition at line 78 of file ProjectSettings.h.
Referenced by Exporter::Process(), and Exporter::SetAutoExportOptions().
|
inline |
Definition at line 124 of file ProjectSettings.h.
Referenced by AudacityApp::InitPart2().
int ProjectSettings::GetSnapTo | ( | ) | const |
Definition at line 168 of file ProjectSettings.cpp.
References mSnapTo.
Referenced by SnapManager::Snap().
|
inline |
Definition at line 92 of file ProjectSettings.h.
Referenced by TimeShiftHandle::Click(), and SelectHandle::Preview().
|
inline |
Definition at line 75 of file ProjectSettings.h.
Referenced by ProjectAudioManager::DoRecord().
|
inline |
Definition at line 102 of file ProjectSettings.h.
Referenced by BrushHandle::BrushHandle().
|
inline |
Definition at line 99 of file ProjectSettings.h.
Referenced by BrushHandle::BrushHandle().
|
inline |
Definition at line 120 of file ProjectSettings.h.
Referenced by MixerTrackCluster::HandleResize(), MuteButtonHandle::HitTest(), and SoloButtonHandle::HitTest().
|
inline |
Definition at line 119 of file ProjectSettings.h.
Referenced by MixerTrackCluster::OnButton_Mute().
bool ProjectSettings::IsSyncLocked | ( | ) | const |
Definition at line 180 of file ProjectSettings.cpp.
References mIsSyncLocked.
Referenced by TimeShiftHandle::Click(), anonymous_namespace{LabelMenus.cpp}::EditByLabel(), anonymous_namespace{LabelMenus.cpp}::EditClipboardByLabel(), IsNotSyncLockedFlag(), IsSyncLockedFlag(), and SyncLock::IsSyncLockSelected().
ProjectSettings & ProjectSettings::operator= | ( | const ProjectSettings & | ) |
void ProjectSettings::SetAudioTimeFormat | ( | const NumericFormatSymbol & | format | ) |
Definition at line 153 of file ProjectSettings.cpp.
References format, and mAudioTimeFormat.
void ProjectSettings::SetBandwidthSelectionFormatName | ( | const NumericFormatSymbol & | format | ) |
Definition at line 137 of file ProjectSettings.cpp.
References mBandwidthSelectionFormatName.
|
inline |
Definition at line 95 of file ProjectSettings.h.
void ProjectSettings::SetFrequencySelectionFormatName | ( | const NumericFormatSymbol & | format | ) |
Definition at line 125 of file ProjectSettings.cpp.
References mFrequencySelectionFormatName.
|
inline |
Definition at line 101 of file ProjectSettings.h.
void ProjectSettings::SetSelectionFormat | ( | const NumericFormatSymbol & | format | ) |
Definition at line 143 of file ProjectSettings.cpp.
References format, and mSelectionFormat.
|
inline |
|
inline |
Definition at line 98 of file ProjectSettings.h.
void ProjectSettings::SetSnapTo | ( | int | snap | ) |
Definition at line 163 of file ProjectSettings.cpp.
References mSnapTo.
void ProjectSettings::SetSyncLock | ( | bool | flag | ) |
Definition at line 189 of file ProjectSettings.cpp.
References ChangedSyncLock, flag, mIsSyncLocked, mProject, and anonymous_namespace{ProjectSettings.cpp}::Notify().
void ProjectSettings::SetTool | ( | int | tool | ) |
Definition at line 173 of file ProjectSettings.cpp.
References ChangedTool, mCurrentTool, mProject, and anonymous_namespace{ProjectSettings.cpp}::Notify().
Referenced by ToolsToolBar::OnTool(), and anonymous_namespace{ToolsToolBar.cpp}::SetTool().
|
inline |
|
overrideprivatevirtual |
Implements PrefsListener.
Definition at line 90 of file ProjectSettings.cpp.
References TrackList::Get(), SelectionBar::Get(), gPrefs, mEmptyCanBeDirty, mShowId3Dialog, mShowSplashScreen, mSoloPref, mTracksFitVerticallyZoomed, ChoiceSetting::Read(), TrackList::size(), and TracksBehaviorsSolo.
Referenced by ProjectSettings().
|
private |
Definition at line 134 of file ProjectSettings.h.
Referenced by GetAudioTimeFormat(), and SetAudioTimeFormat().
|
private |
Definition at line 133 of file ProjectSettings.h.
Referenced by GetBandwidthSelectionFormatName(), and SetBandwidthSelectionFormatName().
|
private |
Definition at line 144 of file ProjectSettings.h.
|
private |
Definition at line 143 of file ProjectSettings.h.
|
private |
Definition at line 142 of file ProjectSettings.h.
|
private |
Definition at line 141 of file ProjectSettings.h.
|
private |
Definition at line 140 of file ProjectSettings.h.
Referenced by ProjectSettings(), and SetTool().
|
private |
Definition at line 149 of file ProjectSettings.h.
Referenced by UpdatePrefs().
|
private |
Definition at line 132 of file ProjectSettings.h.
Referenced by GetFrequencySelectionFormatName(), and SetFrequencySelectionFormatName().
|
private |
Definition at line 148 of file ProjectSettings.h.
Referenced by IsSyncLocked(), ProjectSettings(), and SetSyncLock().
|
private |
Definition at line 129 of file ProjectSettings.h.
Referenced by SetSyncLock(), and SetTool().
|
private |
Definition at line 131 of file ProjectSettings.h.
Referenced by GetSelectionFormat(), and SetSelectionFormat().
|
private |
Definition at line 147 of file ProjectSettings.h.
Referenced by UpdatePrefs().
|
private |
Definition at line 150 of file ProjectSettings.h.
Referenced by UpdatePrefs().
|
private |
Definition at line 138 of file ProjectSettings.h.
Referenced by GetSnapTo(), and SetSnapTo().
|
private |
Definition at line 136 of file ProjectSettings.h.
Referenced by UpdatePrefs().
|
private |
Definition at line 146 of file ProjectSettings.h.
Referenced by UpdatePrefs().