Audacity 3.2.0
|
A PrefsPanel used to select recording and playback devices and other settings. More...
#include <MidiIOPrefs.h>
Public Member Functions | |
MidiIOPrefs (wxWindow *parent, wxWindowID winid) | |
virtual | ~MidiIOPrefs () |
ComponentInterfaceSymbol | GetSymbol () const override |
TranslatableString | GetDescription () const override |
bool | Commit () override |
bool | Validate () override |
ManualPageID | HelpPageName () override |
If not empty string, the Help button is added below the panel. More... | |
void | PopulateOrExchange (ShuttleGui &S) override |
Public Member Functions inherited from PrefsPanel | |
PrefsPanel (wxWindow *parent, wxWindowID winid, const TranslatableString &title) | |
virtual | ~PrefsPanel () |
virtual void | Preview () |
virtual bool | Commit ()=0 |
virtual PluginPath | GetPath () const override |
virtual VendorSymbol | GetVendor () const override |
virtual wxString | GetVersion () const override |
virtual bool | ShowsPreviewButton () |
virtual void | PopulateOrExchange (ShuttleGui &WXUNUSED(S)) |
virtual ManualPageID | HelpPageName () |
If not empty string, the Help button is added below the panel. More... | |
virtual void | Cancel () |
Public Member Functions inherited from wxPanelWrapper | |
wxPanelWrapper () | |
wxPanelWrapper (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const TranslatableString &name=XO("Panel")) | |
bool | Create (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const TranslatableString &name=XO("Panel")) |
void | SetLabel (const TranslatableString &label) |
void | SetName (const TranslatableString &name) |
void | SetToolTip (const TranslatableString &toolTip) |
void | SetName () |
Public Member Functions inherited from wxTabTraversalWrapper< wxPanel > | |
wxTabTraversalWrapper (Args &&... args) | |
wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete | |
wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete | |
wxTabTraversalWrapper & | operator= (const wxTabTraversalWrapper &)=delete |
wxTabTraversalWrapper & | operator= (wxTabTraversalWrapper &&)=delete |
Private Member Functions | |
void | Populate () |
void | GetNamesAndLabels () |
void | OnHost (wxCommandEvent &e) |
Private Attributes | |
TranslatableStrings | mHostNames |
wxArrayStringEx | mHostLabels |
wxString | mPlayDevice |
wxChoice * | mHost |
wxChoice * | mPlay |
wxTextCtrl * | mLatency |
Additional Inherited Members | |
Public Types inherited from PrefsPanel | |
using | Factories = std::vector< PrefsPanel::PrefsNode > |
using | Factory = std::function< PrefsPanel *(wxWindow *parent, wxWindowID winid, AudacityProject *) > |
Static Public Member Functions inherited from PrefsPanel | |
static Factories & | DefaultFactories () |
A PrefsPanel used to select recording and playback devices and other settings.
Presents interface for user to select the recording device and playback device, from the list of choices that PortMidi makes available.
Also lets user decide whether or not to record in stereo, and whether or not to play other tracks while recording one (duplex).
Definition at line 25 of file MidiIOPrefs.h.
MidiIOPrefs::MidiIOPrefs | ( | wxWindow * | parent, |
wxWindowID | winid | ||
) |
Definition at line 53 of file MidiIOPrefs.cpp.
|
virtual |
Definition at line 60 of file MidiIOPrefs.cpp.
|
overridevirtual |
Implements PrefsPanel.
Definition at line 259 of file MidiIOPrefs.cpp.
References eIsSavingToPrefs, audacity::BasicSettings::Flush(), gPrefs, Setting< T >::Invalidate(), MIDIPlaybackDevice, MIDISynthLatency_ms, mPlay, PopulateOrExchange(), S, Setting< T >::Write(), and wxT().
|
overridevirtual |
Implements ComponentInterface.
Definition at line 69 of file MidiIOPrefs.cpp.
References XO().
|
private |
Gets the lists of names and lists of labels which are used in the choice controls. The names are what the user sees in the wxChoice. The corresponding labels are what gets stored.
Definition at line 107 of file MidiIOPrefs.cpp.
References make_iterator_range(), mHostLabels, mHostNames, name, Verbatim(), wxT(), and XO().
Referenced by Populate().
|
overridevirtual |
Implements ComponentInterface.
Definition at line 64 of file MidiIOPrefs.cpp.
References MIDI_IO_PREFS_PLUGIN_SYMBOL.
|
overridevirtual |
If not empty string, the Help button is added below the panel.
Default returns empty string.
Reimplemented from PrefsPanel.
Definition at line 74 of file MidiIOPrefs.cpp.
|
private |
Definition at line 191 of file MidiIOPrefs.cpp.
References _, mHost, mHostLabels, mHostNames, mPlay, mPlayDevice, name, ShuttleGui::SetMinSize(), and wxT().
Referenced by Populate().
|
private |
Definition at line 79 of file MidiIOPrefs.cpp.
References eIsCreatingFromPrefs, GetNamesAndLabels(), MIDIPlaybackDevice, MIDIRecordingDevice, mPlayDevice, OnHost(), PopulateOrExchange(), Setting< T >::Read(), and S.
|
override |
Definition at line 130 of file MidiIOPrefs.cpp.
References ByColumns, ChannelsID, HostID, mHost, mHostLabels, mHostNames, MIDISynthLatency_ms, mLatency, mPlay, PlayID, RecordID, S, XC, XO(), and XXO().
Referenced by Commit(), and Populate().
|
override |
Definition at line 286 of file MidiIOPrefs.cpp.
References AudacityMessageBox(), mLatency, and XO().
|
private |
Definition at line 54 of file MidiIOPrefs.h.
Referenced by OnHost(), and PopulateOrExchange().
|
private |
Definition at line 46 of file MidiIOPrefs.h.
Referenced by GetNamesAndLabels(), OnHost(), and PopulateOrExchange().
|
private |
Definition at line 45 of file MidiIOPrefs.h.
Referenced by GetNamesAndLabels(), OnHost(), and PopulateOrExchange().
|
private |
Definition at line 56 of file MidiIOPrefs.h.
Referenced by PopulateOrExchange(), and Validate().
|
private |
Definition at line 55 of file MidiIOPrefs.h.
Referenced by Commit(), OnHost(), and PopulateOrExchange().
|
private |
Definition at line 48 of file MidiIOPrefs.h.
Referenced by OnHost(), and Populate().