Define our extra menu item that invokes that factory
| 1155 | |
| 1156 | // Define our extra menu item that invokes that factory |
| 1157 | void OnPlotSpectrum(const CommandContext &context) |
| 1158 | { |
| 1159 | auto &project = context.project; |
| 1160 | CommandManager::Get(project).RegisterLastAnalyzer(context); |
| 1161 | auto freqWindow = &GetAttachedWindows(project) |
| 1162 | .Get< FrequencyPlotDialog >( sFrequencyWindowKey ); |
| 1163 | |
| 1164 | freqWindow->Show(true); |
| 1165 | freqWindow->Raise(); |
| 1166 | freqWindow->SetFocus(); |
| 1167 | } |
| 1168 | |
| 1169 | // Register that menu item |
| 1170 |
nothing calls this directly
no test coverage detected