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#ifndef __AUDACITY_MIDI_IO_PREFS__
17#define __AUDACITY_MIDI_IO_PREFS__
18
19#include <wx/defs.h>
20
21#include "PrefsPanel.h"
22
23#define MIDI_IO_PREFS_PLUGIN_SYMBOL ComponentInterfaceSymbol{ XO("Midi IO") }
24
25class MidiIOPrefs final : public PrefsPanel
26{
27 public:
28 MidiIOPrefs(wxWindow * parent, wxWindowID winid);
29 virtual ~MidiIOPrefs();
30 ComponentInterfaceSymbol GetSymbol() const override;
31 TranslatableString GetDescription() const override;
32
33 bool Commit() override;
34 bool Validate() override;
35 ManualPageID HelpPageName() override;
36 void PopulateOrExchange(ShuttleGui & S) override;
37
38 private:
39 void Populate();
40 void GetNamesAndLabels();
41
42 void OnHost(wxCommandEvent & e);
43// void OnDevice(wxCommandEvent & e);
44
47
48 wxString mPlayDevice;
49#ifdef EXPERIMENTAL_MIDI_IN
50 wxString mRecordDevice;
51#endif
52// long mRecordChannels;
53
54 wxChoice *mHost;
55 wxChoice *mPlay;
56 wxTextCtrl *mLatency;
57#ifdef EXPERIMENTAL_MIDI_IN
58 wxChoice *mRecord;
59#endif
60// wxChoice *mChannels;
61
62 DECLARE_EVENT_TABLE()
63};
64
65#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.
Definition: MidiIOPrefs.h:26
TranslatableString GetDescription() const override
Definition: MidiIOPrefs.cpp:69
MidiIOPrefs(wxWindow *parent, wxWindowID winid)
Definition: MidiIOPrefs.cpp:53
wxArrayStringEx mHostLabels
Definition: MidiIOPrefs.h:46
wxTextCtrl * mLatency
Definition: MidiIOPrefs.h:56
wxChoice * mHost
Definition: MidiIOPrefs.h:54
TranslatableStrings mHostNames
Definition: MidiIOPrefs.h:45
void OnHost(wxCommandEvent &e)
virtual ~MidiIOPrefs()
Definition: MidiIOPrefs.cpp:60
wxString mPlayDevice
Definition: MidiIOPrefs.h:48
void Populate()
Definition: MidiIOPrefs.cpp:79
void PopulateOrExchange(ShuttleGui &S) override
bool Commit() override
wxChoice * mPlay
Definition: MidiIOPrefs.h:55
ComponentInterfaceSymbol GetSymbol() const override
Definition: MidiIOPrefs.cpp:64
void GetNamesAndLabels()
bool Validate() override
ManualPageID HelpPageName() override
If not empty string, the Help button is added below the panel.
Definition: MidiIOPrefs.cpp:74
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:640
Holds a msgid for the translation catalog; may also bind format arguments.
Extend wxArrayString with move operations and construction and insertion fromstd::initializer_list.