Audacity
3.2.0
src
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
13
TimeDisplayModeSetting
TimeDisplayModePreference
{
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
{
23
TimeDisplayMode::MinutesAndSeconds
,
24
TimeDisplayMode::BeatsAndMeasures
,
25
}
26
};
27
28
bool
TimeDisplayModeSetting::WriteEnum
(
TimeDisplayMode
value)
29
{
30
if
(!
EnumSetting::WriteEnum
(value))
31
return
false
;
32
33
Publish
(value);
34
35
return
true
;
36
}
wxT
wxT("CloseDown"))
XO
XO("Cut/Copy/Paste")
TimeDisplayModePreference
TimeDisplayModeSetting TimeDisplayModePreference
Definition:
TimeDisplayMode.cpp:13
TimeDisplayMode.h
TimeDisplayMode
TimeDisplayMode
Definition:
TimeDisplayMode.h:19
TimeDisplayMode::BeatsAndMeasures
@ BeatsAndMeasures
TimeDisplayMode::MinutesAndSeconds
@ MinutesAndSeconds
EnumSetting::WriteEnum
bool WriteEnum(Enum value)
Definition:
Prefs.h:546
Observer::Publisher< TimeDisplayMode >::Publish
CallbackReturn Publish(const TimeDisplayMode &message)
Send a message to connected callbacks.
Definition:
Observer.h:207
TimeDisplayModeSetting
Definition:
TimeDisplayMode.h:27
TimeDisplayModeSetting::WriteEnum
bool WriteEnum(TimeDisplayMode value)
Definition:
TimeDisplayMode.cpp:28
Generated by
1.9.3