Audacity 3.2.0
WaveTrackViewConstants.h
Go to the documentation of this file.
1/**********************************************************************
2
3Audacity: A Digital Audio Editor
4
5WaveTrackViewConstants.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.
78 };
79
80 // Handle remapping of enum values from 2.1.0 and earlier
82
84 extern AUDACITY_DLL_API const EnumValueSymbol MultiViewSymbol;
85}
86
87#include <vector>
88
89struct AUDACITY_DLL_API WaveTrackSubViewType {
91
92 // Identifies the type session-wide, and determines relative position in
93 // menus listing all types
95 // The translation is suitable for the track control panel drop-down,
96 // and it may contain a menu accelerator
98
99 bool operator < ( const WaveTrackSubViewType &other ) const
100 { return id < other.id; }
101
102 bool operator == ( const WaveTrackSubViewType &other ) const
103 { return id == other.id; }
104
105 // Typically a file scope statically constructed object
106 struct AUDACITY_DLL_API RegisteredType {
108 };
109
111 static const std::vector<WaveTrackSubViewType> &All();
112
114 static Display Default();
115};
116
117#endif
bool operator<(SnapPoint s1, SnapPoint s2)
Definition: Snap.cpp:23
bool operator==(const Tags &lhs, const Tags &rhs)
Definition: Tags.cpp:332
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
@ 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.
Display ConvertLegacyDisplayValue(int oldValue)