Audacity 3.2.0
TimeDisplayMode.cpp
Go to the documentation of this file.
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*!********************************************************************
3
4 Audacity: A Digital Audio Editor
5
6 TimeDisplayMode.cpp
7
8 Dmitry Vedenko
9
10**********************************************************************/
11#include "TimeDisplayMode.h"
12
14 // Keep for the compatibility with old Audacity versions
15 L"/GUI/RulerType",
16 {
17 { wxT("MinutesAndSeconds"), XO("Minutes and Seconds") },
18 { wxT("BeatsAndMeasures"), XO("Beats and Measures") },
19 },
20
21 0, // minutes and seconds
22 {
25 }
26};
27
29{
30 if (!EnumSetting::WriteEnum(value))
31 return false;
32
33 Publish(value);
34
35 return true;
36}
wxT("CloseDown"))
XO("Cut/Copy/Paste")
TimeDisplayModeSetting TimeDisplayModePreference
TimeDisplayMode
bool WriteEnum(Enum value)
Definition: Prefs.h:546
CallbackReturn Publish(const TimeDisplayMode &message)
Send a message to connected callbacks.
Definition: Observer.h:207
bool WriteEnum(TimeDisplayMode value)