27 wxCommandEvent e{ EVT_PROJECT_SETTINGS_CHANGE };
28 e.SetInt(
static_cast<int>( code ) );
29 e.SetExtraLong( previousValue );
37 auto result = std::make_shared< ProjectSettings >(
project );
55 , mCurrentBrushRadius ( 5 )
57 bool multiToolActive =
false;
58 gPrefs->
Read(
wxT(
"/GUI/ToolBars/Tools/MultiToolActive"), &multiToolActive);
84 mRate = QualityDefaultSampleRate.Read();
audacity::BasicSettings * gPrefs
static const AudacityProject::AttachedObjects::RegisteredFactory sProjectSettingsKey
wxDEFINE_EVENT(EVT_PROJECT_SETTINGS_CHANGE, wxCommandEvent)
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Client code makes static instance from a factory of attachments; passes it to Get or Find as a retrie...
Holds various per-project settings values, and sends events to the project when certain values change...
static ProjectSettings & Get(AudacityProject &project)
ProjectSettings(AudacityProject &project)
bool mTracksFitVerticallyZoomed
AudacityProject & mProject
void UpdatePrefs() override
static SelectionBar & Get(AudacityProject &project)
static TrackList & Get(AudacityProject &project)
virtual bool Read(const wxString &key, bool *value) const =0
void Notify(AudacityProject &project, ProjectSettings::EventCode code, long previousValue)