Audacity 3.2.0
|
#include <TimeDisplayMode.h>
Public Member Functions | |
bool | WriteEnum (TimeDisplayMode value) |
template<typename Callback > | |
Observer::Subscription | Subscribe (Callback callback) |
template<typename Key > | |
EnumSetting (Key &&key, EnumValueSymbols symbols, long defaultSymbol, std::vector< Enum > values, const wxString &oldKey={}) | |
Public Member Functions inherited from EnumSetting< TimeDisplayMode > | |
EnumSetting (Key &&key, EnumValueSymbols symbols, long defaultSymbol, std::vector< TimeDisplayMode > values, const wxString &oldKey={}) | |
TimeDisplayMode | ReadEnum () const |
TimeDisplayMode | ReadEnumWithDefault (TimeDisplayMode defaultValue) const |
bool | WriteEnum (TimeDisplayMode value) |
Public Member Functions inherited from EnumSettingBase | |
template<typename Key > | |
EnumSettingBase (Key &&key, EnumValueSymbols symbols, long defaultSymbol, std::vector< int > intValues, const wxString &oldKey={}) | |
Public Member Functions inherited from ChoiceSetting | |
ChoiceSetting (const SettingPath &, EnumValueSymbols, long=-1)=delete | |
ChoiceSetting (TransactionalSettingBase &key, EnumValueSymbols symbols, long defaultSymbol=-1) | |
ChoiceSetting (const SettingBase &key, EnumValueSymbols symbols, long defaultSymbol=-1) | |
const wxString & | Key () const |
const EnumValueSymbol & | Default () const |
const EnumValueSymbols & | GetSymbols () const |
wxString | Read () const |
wxString | ReadWithDefault (const wxString &) const |
bool | Write (const wxString &value) |
void | SetDefault (long value) |
Additional Inherited Members | |
Protected Member Functions inherited from EnumSettingBase | |
int | ReadInt () const |
int | ReadIntWithDefault (int defaultValue) const |
bool | WriteInt (int code) |
size_t | FindInt (int code) const |
void | Migrate (wxString &) override |
Protected Member Functions inherited from ChoiceSetting | |
size_t | Find (const wxString &value) const |
virtual void | Migrate (wxString &) |
Protected Attributes inherited from ChoiceSetting | |
const wxString | mKey |
const EnumValueSymbols | mSymbols |
TransactionalSettingBase *const | mpOtherSettings {} |
bool | mMigrated { false } |
long | mDefaultSymbol |
Private Types inherited from Observer::Publisher< TimeDisplayMode > | |
using | message_type = TimeDisplayMode |
using | CallbackReturn = std::conditional_t< true, void, bool > |
using | Callback = std::function< CallbackReturn(const TimeDisplayMode &) > |
Type of functions that can be connected to the Publisher. More... | |
Private Member Functions inherited from Observer::Publisher< TimeDisplayMode > | |
Publisher (ExceptionPolicy *pPolicy=nullptr, Alloc a={}) | |
Constructor supporting type-erased custom allocation/deletion. More... | |
Publisher (Publisher &&)=default | |
Publisher & | operator= (Publisher &&)=default |
Subscription | Subscribe (Callback callback) |
Connect a callback to the Publisher; later-connected are called earlier. More... | |
Subscription | Subscribe (Object &obj, Return(Object::*callback)(Args...)) |
Overload of Subscribe takes an object and pointer-to-member-function. More... | |
CallbackReturn | Publish (const TimeDisplayMode &message) |
Send a message to connected callbacks. More... | |
Static Private Attributes inherited from Observer::Publisher< TimeDisplayMode > | |
static constexpr bool | notifies_all |
Definition at line 24 of file TimeDisplayMode.h.
|
inline |
intValues.size() == symbols.size()
Definition at line 519 of file Prefs.h.
|
inline |
Definition at line 34 of file TimeDisplayMode.h.
References Observer::Publisher< Message, NotifyAll >::Subscribe().
bool TimeDisplayModeSetting::WriteEnum | ( | TimeDisplayMode | value | ) |
Definition at line 28 of file TimeDisplayMode.cpp.
References Observer::Publisher< TimeDisplayMode >::Publish(), and EnumSetting< Enum >::WriteEnum().
Referenced by AdornedRulerPanel::OnTimelineFormatChange(), and AdornedRulerPanel::SetTimeDisplayMode().