| 133 | }; |
| 134 | |
| 135 | static 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 | |
| 157 | WaveChannelViewConstants::Display TracksPrefs::ViewModeChoice() |
| 158 | { |
no test coverage detected