Audacity 3.2.0
MidiIOPrefs.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 AudioIOPrefs.h
6
7 Joshua Haberman
8 James Crook
9
10**********************************************************************/
11
12class wxChoice;
13class wxTextCtrl;
14class ShuttleGui;
15
16#ifdef EXPERIMENTAL_MIDI_OUT
17
18#ifndef __AUDACITY_MIDI_IO_PREFS__
19#define __AUDACITY_MIDI_IO_PREFS__
20
21#include <wx/defs.h>
22
23#include "PrefsPanel.h"
24
25#define MIDI_IO_PREFS_PLUGIN_SYMBOL ComponentInterfaceSymbol{ XO("Midi IO") }
26
27class MidiIOPrefs final : public PrefsPanel
28{
29 public:
30 MidiIOPrefs(wxWindow * parent, wxWindowID winid);
31 virtual ~MidiIOPrefs();
32 ComponentInterfaceSymbol GetSymbol() const override;
33 TranslatableString GetDescription() const override;
34
35 bool Commit() override;
36 bool Validate() override;
37 ManualPageID HelpPageName() override;
38 void PopulateOrExchange(ShuttleGui & S) override;
39
40 private:
41 void Populate();
42 void GetNamesAndLabels();
43
44 void OnHost(wxCommandEvent & e);
45// void OnDevice(wxCommandEvent & e);
46
47 TranslatableStrings mHostNames;
48 wxArrayStringEx mHostLabels;
49
50 wxString mPlayDevice;
51#ifdef EXPERIMENTAL_MIDI_IN
52 wxString mRecordDevice;
53#endif
54// long mRecordChannels;
55
56 wxChoice *mHost;
57 wxChoice *mPlay;
58 wxTextCtrl *mLatency;
59#ifdef EXPERIMENTAL_MIDI_IN
60 wxChoice *mRecord;
61#endif
62// wxChoice *mChannels;
63
64 DECLARE_EVENT_TABLE()
65};
66
67#endif
68
69#endif
#define S(N)
Definition: ToChars.cpp:64
std::vector< TranslatableString > TranslatableStrings
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
A PrefsPanel used to select recording and playback devices and other settings.
Base class for a panel in the PrefsDialog. Classes derived from this class include BatchPrefs,...
Definition: PrefsPanel.h:51
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:625
Holds a msgid for the translation catalog; may also bind format arguments.
Extend wxArrayString with move operations and construction and insertion fromstd::initializer_list.