MCPcopy Create free account
hub / github.com/audacity/audacity / ViewModeSetting

Function ViewModeSetting

src/prefs/TracksPrefs.cpp:135–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133};
134
135static TracksViewModeEnumSetting ViewModeSetting()
136{
137 // Do a delayed computation, so that registration of sub-view types completes
138 // first
139 const auto &types = WaveChannelSubViewType::All();
140 auto symbols = transform_container< EnumValueSymbols >(
141 types, std::mem_fn(&WaveChannelSubViewType::name));
142 auto ids = transform_container<std::vector<WaveChannelSubViewType::Display>>(
143 types, std::mem_fn(&WaveChannelSubViewType::id));
144
145 // Special entry for multi
146 symbols.push_back(WaveChannelViewConstants::MultiViewSymbol);
147 ids.push_back(WaveChannelViewConstants::MultiView);
148
149 return {
150 key3,
151 symbols,
152 0, // Waveform
153 ids
154 };
155}
156
157WaveChannelViewConstants::Display TracksPrefs::ViewModeChoice()
158{

Callers 2

ViewModeChoiceMethod · 0.85
PopulateOrExchangeMethod · 0.85

Calls 2

AllFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected