Audacity
3.2.0
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
p
r
s
t
u
v
Enumerations
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
w
z
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
h
i
k
l
m
o
p
r
s
t
x
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
y
Related Functions
a
b
c
d
e
f
g
l
m
n
o
p
r
s
t
v
w
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
c
d
e
f
k
l
m
n
o
p
r
s
t
u
v
z
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
z
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
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