Audacity 3.2.0
NoteTrackMenuItems.cpp
Go to the documentation of this file.
1/**********************************************************************
2
3Audacity: A Digital Audio Editor
4
5@file NoteTrackMenuItems.cpp
6@brief Injects menu items using NoteTrack but not the views of it
7
8Paul Licameli split from TrackMenus.cpp
9
10**********************************************************************/
11
17// Attach a menu item for diagnostic information
18
19#include "AudioIOBase.h"
20#include "CommandContext.h"
21#include "MenuRegistry.h"
22#include "CommonCommandFlags.h"
23#include "HelpUtilities.h"
24#include "NoteTrack.h"
25
26namespace {
27void OnMidiDeviceInfo(const CommandContext &context)
28{
29 auto &project = context.project;
30 auto gAudioIO = AudioIOBase::Get();
31 auto info = GetMIDIDeviceInfo();
33 XO("MIDI Device Info"), wxT("midideviceinfo.txt") );
34}
35
36using namespace MenuRegistry;
38 Command( wxT("MidiDeviceInfo"), XXO("&MIDI Device Info..."),
40 { wxT("Help/Other/Diagnostics"),
41 { OrderingHint::After, wxT("DeviceInfo") } }
42};
43}
wxT("CloseDown"))
const ReservedCommandFlag & AudioIONotBusyFlag()
XO("Cut/Copy/Paste")
XXO("&Cut/Copy/Paste Toolbar")
void ShowDiagnostics(AudacityProject &project, const wxString &info, const TranslatableString &description, const wxString &defaultPath, bool fixedWidth)
wxString GetMIDIDeviceInfo()
Definition: NoteTrack.cpp:890
const auto project
static AudioIOBase * Get()
Definition: AudioIOBase.cpp:94
CommandContext provides additional information to an 'Apply()' command. It provides the project,...
AudacityProject & project
Generates classes whose instances register items at construction.
Definition: Registry.h:388
constexpr auto Command
Definition: MenuRegistry.h:456
void OnMidiDeviceInfo(const CommandContext &context)