![]() |
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 { ChangedTool } |
Public Member Functions | |
ProjectSettings (AudacityProject &project) | |
ProjectSettings (const ProjectSettings &)=delete | |
ProjectSettings & | operator= (const ProjectSettings &)=delete |
bool | GetTracksFitVerticallyZoomed () const |
void | SetTracksFitVerticallyZoomed (bool flag) |
void | SetTool (int tool) |
int | GetTool () const |
void | SetBrushRadius (int brushRadius) |
int | GetBrushRadius () const |
void | SetSmartSelection (bool isSelected) |
bool | IsSmartSelection () const |
void | SetOvertones (bool isSelected) |
bool | IsOvertones () const |
bool | EmptyCanBeDirty () const |
bool | GetShowSplashScreen () const |
![]() | |
virtual | ~Base () |
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 |
int | mCurrentTool |
int | mCurrentBrushRadius |
int | mCurrentBrushHop |
bool | mbSmartSelection { false } |
bool | mbOvertones { false } |
bool | mTracksFitVerticallyZoomed { 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 49 of file ProjectSettings.h.
enum ProjectSettings::EventCode : int |
Enumerator | |
---|---|
ChangedTool |
Definition at line 58 of file ProjectSettings.h.
|
explicit |
Definition at line 53 of file ProjectSettings.cpp.
References gPrefs, mCurrentTool, ToolCodes::multiTool, audacity::BasicSettings::Read(), ToolCodes::selectTool, UpdatePrefs(), and wxT().
|
delete |
|
inline |
Definition at line 85 of file ProjectSettings.h.
|
static |
Definition at line 42 of file ProjectSettings.cpp.
References project, and sProjectSettingsKey.
Referenced by MacroCommands::ApplyCommandInBatchMode(), BrushHandleHitTest(), TimeShiftHandle::Click(), ProjectAudioManager::DoRecord(), ProjectFileManager::DoSave(), ToolsToolBar::DoToolChanged(), TrackPanel::DrawTracks(), Get(), CommonChannelView::HitTest(), NoteTrackAffordanceControls::HitTest(), WaveTrackAffordanceControls::HitTest(), AUPImportFileHandle::Import(), AudacityApp::InitPart2(), anonymous_namespace{TrackMenus.cpp}::MuteTracks(), ProjectManager::OnCloseWindow(), anonymous_namespace{ToolsToolBar.cpp}::OnNextTool(), anonymous_namespace{ToolsToolBar.cpp}::OnPrevTool(), anonymous_namespace{TimerRecordDialog.cpp}::OnTimerRecord(), ToolsToolBar::OnTool(), ViewActions::Handler::OnUndoPushed(), ProjectFileManager::OpenProjectFile(), SelectHandle::Preview(), and anonymous_namespace{ToolsToolBar.cpp}::SetTool().
|
static |
Definition at line 48 of file ProjectSettings.cpp.
References Get(), and project.
|
inline |
Definition at line 77 of file ProjectSettings.h.
Referenced by BrushHandle::BrushHandle().
|
inline |
Definition at line 87 of file ProjectSettings.h.
Referenced by AudacityApp::InitPart2().
|
inline |
Definition at line 73 of file ProjectSettings.h.
Referenced by TimeShiftHandle::Click(), and SelectHandle::Preview().
|
inline |
Definition at line 67 of file ProjectSettings.h.
Referenced by ProjectAudioManager::DoRecord().
|
inline |
Definition at line 83 of file ProjectSettings.h.
Referenced by BrushHandle::BrushHandle().
|
inline |
Definition at line 80 of file ProjectSettings.h.
Referenced by BrushHandle::BrushHandle().
|
delete |
|
inline |
Definition at line 76 of file ProjectSettings.h.
|
inline |
Definition at line 82 of file ProjectSettings.h.
|
inline |
Definition at line 79 of file ProjectSettings.h.
void ProjectSettings::SetTool | ( | int | tool | ) |
Definition at line 92 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 68 of file ProjectSettings.cpp.
References TrackList::Get(), SelectionBar::Get(), gPrefs, mEmptyCanBeDirty, mShowSplashScreen, mTracksFitVerticallyZoomed, audacity::BasicSettings::Read(), and wxT().
Referenced by ProjectSettings().
|
private |
Definition at line 98 of file ProjectSettings.h.
|
private |
Definition at line 97 of file ProjectSettings.h.
|
private |
Definition at line 96 of file ProjectSettings.h.
|
private |
Definition at line 95 of file ProjectSettings.h.
|
private |
Definition at line 94 of file ProjectSettings.h.
Referenced by ProjectSettings(), and SetTool().
|
private |
Definition at line 101 of file ProjectSettings.h.
Referenced by UpdatePrefs().
|
private |
Definition at line 92 of file ProjectSettings.h.
Referenced by SetTool().
|
private |
Definition at line 102 of file ProjectSettings.h.
Referenced by UpdatePrefs().
|
private |
Definition at line 100 of file ProjectSettings.h.
Referenced by UpdatePrefs().