Audacity 3.2.0
|
Base class for settings objects. It holds a configuration key path. More...
#include <Prefs.h>
Public Member Functions | |
SettingBase (const char *path) | |
SettingBase (const wxChar *path) | |
SettingBase (const wxString &path) | |
audacity::BasicSettings * | GetConfig () const |
const SettingPath & | GetPath () const |
bool | Delete () |
Delete the key if present, and return true iff it was. More... | |
Protected Member Functions | |
SettingBase (const SettingBase &)=default | |
Protected Attributes | |
const SettingPath | mPath |
Base class for settings objects. It holds a configuration key path.
|
inline |
|
inline |
|
inline |
|
protecteddefault |
bool SettingBase::Delete | ( | ) |
Delete the key if present, and return true iff it was.
Definition at line 549 of file Prefs.cpp.
References GetConfig(), and GetPath().
Referenced by TracksPrefs::Commit().
audacity::BasicSettings * SettingBase::GetConfig | ( | ) | const |
Definition at line 544 of file Prefs.cpp.
References gPrefs.
Referenced by Delete(), Setting< T >::DoWrite(), Setting< T >::ReadWithDefault(), and Setting< T >::Write().
|
inline |
Definition at line 88 of file Prefs.h.
Referenced by Delete(), ShuttleGuiBase::TieCheckBox(), anonymous_namespace{GetInfoCommand.cpp}::ShuttleGuiGetDefinition::TieCheckBox(), ShuttleGuiBase::TieCheckBoxOnRight(), anonymous_namespace{GetInfoCommand.cpp}::ShuttleGuiGetDefinition::TieCheckBoxOnRight(), ShuttleGuiBase::TieIntegerTextBox(), anonymous_namespace{GetInfoCommand.cpp}::ShuttleGuiGetDefinition::TieIntegerTextBox(), anonymous_namespace{GetInfoCommand.cpp}::ShuttleGuiGetDefinition::TieNumberAsChoice(), anonymous_namespace{GetInfoCommand.cpp}::ShuttleGuiGetDefinition::TieNumericTextBox(), ShuttleGuiBase::TieNumericTextBox(), ShuttleGuiBase::TieSlider(), anonymous_namespace{GetInfoCommand.cpp}::ShuttleGuiGetDefinition::TieSlider(), ShuttleGuiBase::TieSpinCtrl(), anonymous_namespace{GetInfoCommand.cpp}::ShuttleGuiGetDefinition::TieSpinCtrl(), ShuttleGuiBase::TieTextBox(), and anonymous_namespace{GetInfoCommand.cpp}::ShuttleGuiGetDefinition::TieTextBox().
|
protected |
Definition at line 95 of file Prefs.h.
Referenced by Setting< T >::DoWrite(), and Setting< T >::ReadWithDefault().