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
79 WAVE_TRACK_API
81
83 extern WAVE_TRACK_API const EnumValueSymbol MultiViewSymbol;
84}
85
86#include <vector>
87
88struct WAVE_TRACK_API WaveChannelSubViewType {
90
91 // Identifies the type session-wide, and determines relative position in
92 // menus listing all types
94 // The translation is suitable for the track control panel drop-down,
95 // and it may contain a menu accelerator
97
98 bool operator < (const WaveChannelSubViewType &other) const
99 { return id < other.id; }
100
101 bool operator == (const WaveChannelSubViewType &other) const
102 { return id == other.id; }
103
104 // Typically a file scope statically constructed object
105 struct WAVE_TRACK_API RegisteredType {
107 };
108
110 static const std::vector<WaveChannelSubViewType> &All();
111
113 static Display Default();
114};
115
116#endif
bool operator<(sampleCount a, sampleCount b)
Definition: SampleCount.h:85
bool operator==(const WaveTrackLocation &a, const WaveTrackLocation &b)
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
WAVE_TRACK_API Display ConvertLegacyDisplayValue(int oldValue)
@ MultiView
"Multi" is special, not really a view type on par with the others.
WAVE_TRACK_API const EnumValueSymbol MultiViewSymbol
String identifier for a preference for one of each type of view.