Audacity 3.2.0
WaveChannelViewConstants.h
Go to the documentation of this file.
1/**********************************************************************
2
3Audacity: A Digital Audio Editor
4
5WaveChannelViewConstants.h
6
7Paul Licameli split from class WaveTrack
8
9**********************************************************************/
10
11#ifndef __AUDACITY_WAVE_TRACK_VIEW_CONSTANTS__
12#define __AUDACITY_WAVE_TRACK_VIEW_CONSTANTS__
13
14#include "ComponentInterfaceSymbol.h" // for EnumValueSymbol
15
17{
18 enum Display : int {
19
20 MultiView = -1,
21
22 // DO NOT REORDER OLD VALUES! Replace obsoletes with placeholders.
23
26
28
30
31 obsolete1, // was SpectrumLogDisplay
32 obsolete2, // was SpectralSelectionDisplay
33 obsolete3, // was SpectralSelectionLogDisplay
34 obsolete4, // was PitchDisplay
35
36 // Add values here, and update MaxDisplay.
37
39 };
40
41 // Only two types of sample display for now, but
42 // others (eg sinc interpolation) may be added later.
46 };
47
48 // Various preset zooming levels.
65 };
66
68 // Note that these can be with or without spectrum view which
69 // adds a constant.
76 };
77
78 // Handle remapping of enum values from 2.1.0 and earlier
80
82 extern AUDACITY_DLL_API const EnumValueSymbol MultiViewSymbol;
83}
84
85#include <vector>
86
87struct AUDACITY_DLL_API WaveChannelSubViewType {
89
90 // Identifies the type session-wide, and determines relative position in
91 // menus listing all types
93 // The translation is suitable for the track control panel drop-down,
94 // and it may contain a menu accelerator
96
97 bool operator < (const WaveChannelSubViewType &other) const
98 { return id < other.id; }
99
100 bool operator == (const WaveChannelSubViewType &other) const
101 { return id == other.id; }
102
103 // Typically a file scope statically constructed object
104 struct AUDACITY_DLL_API RegisteredType {
106 };
107
109 static const std::vector<WaveChannelSubViewType> &All();
110
112 static Display Default();
113};
114
115#endif
bool operator==(const EffectReverbSettings &a, const EffectReverbSettings &b)
Definition: Reverb.cpp:632
bool operator<(sampleCount a, sampleCount b)
Definition: SampleCount.h:85
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
auto All(Tuple &&tuple)
Projection of all of a tuple.
Definition: Tuple.h:120
Display ConvertLegacyDisplayValue(int oldValue)
@ MultiView
"Multi" is special, not really a view type on par with the others.
AUDACITY_DLL_API const EnumValueSymbol MultiViewSymbol
String identifier for a preference for one of each type of view.