![]() |
Audacity 3.2.0
|
A PrefsPanel used to select recording and playback devices and other settings. More...
#include <DevicePrefs.h>
Public Member Functions | |
DevicePrefs (wxWindow *parent, wxWindowID winid) | |
virtual | ~DevicePrefs () |
ComponentInterfaceSymbol | GetSymbol () const override |
TranslatableString | GetDescription () const override |
bool | Commit () override |
ManualPageID | HelpPageName () override |
If not empty string, the Help button is added below the panel. More... | |
void | PopulateOrExchange (ShuttleGui &S) override |
![]() | |
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 () |
![]() | |
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 () |
![]() | |
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) |
void | OnDevice (wxCommandEvent &e) |
Private Attributes | |
TranslatableStrings | mHostNames |
wxArrayStringEx | mHostLabels |
wxString | mPlayDevice |
wxString | mRecordDevice |
wxString | mRecordSource |
long | mRecordChannels |
wxChoice * | mHost |
wxChoice * | mPlay |
wxChoice * | mRecord |
wxChoice * | mChannels |
Additional Inherited Members | |
![]() | |
using | Factories = std::vector< PrefsPanel::PrefsNode > |
using | Factory = std::function< PrefsPanel *(wxWindow *parent, wxWindowID winid, AudacityProject *) > |
![]() | |
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 PortAudio makes available.
Also lets user decide how many channels to record.
Definition at line 24 of file DevicePrefs.h.
DevicePrefs::DevicePrefs | ( | wxWindow * | parent, |
wxWindowID | winid | ||
) |
Definition at line 55 of file DevicePrefs.cpp.
|
virtual |
Definition at line 61 of file DevicePrefs.cpp.
|
overridevirtual |
Implements PrefsPanel.
Definition at line 386 of file DevicePrefs.cpp.
References AudioIOLatencyCorrection, AudioIOLatencyDuration, AudioIOPlaybackDevice, AudioIORecordChannels, AudioIORecordingDevice, AudioIORecordingSource, AudioIORecordingSourceIndex, DeviceSourceMap::deviceString, eIsSavingToPrefs, Setting< T >::Invalidate(), mChannels, mPlay, mRecord, PopulateOrExchange(), Setting< T >::Reset(), S, DeviceSourceMap::sourceIndex, DeviceSourceMap::sourceString, DeviceSourceMap::totalSources, and Setting< T >::Write().
|
overridevirtual |
Implements ComponentInterface.
Definition at line 71 of file DevicePrefs.cpp.
References XO().
|
private |
Definition at line 108 of file DevicePrefs.cpp.
References make_iterator_range(), mHostLabels, mHostNames, name, and Verbatim().
Referenced by Populate().
|
overridevirtual |
Implements ComponentInterface.
Definition at line 66 of file DevicePrefs.cpp.
References DEVICE_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 76 of file DevicePrefs.cpp.
|
private |
Definition at line 322 of file DevicePrefs.cpp.
References _, mChannels, mRecord, mRecordChannels, name, DeviceSourceMap::numChannels, ShuttleGui::SetMinSize(), and wxT().
Referenced by OnHost().
|
private |
Definition at line 210 of file DevicePrefs.cpp.
References _, DeviceManager::GetDefaultInputDevice(), DeviceManager::GetDefaultOutputDevice(), DeviceManager::GetInputDeviceMaps(), DeviceManager::GetOutputDeviceMaps(), DeviceManager::Instance(), MakeDeviceSourceString(), mHost, mHostLabels, mHostNames, mPlay, mPlayDevice, mRecord, mRecordDevice, mRecordSource, name, OnDevice(), ShuttleGui::SetMinSize(), and wxT().
Referenced by Populate().
|
private |
Definition at line 81 of file DevicePrefs.cpp.
References AudioIOPlaybackDevice, AudioIORecordChannels, AudioIORecordingDevice, AudioIORecordingSource, eIsCreatingFromPrefs, GetNamesAndLabels(), mPlayDevice, mRecordChannels, mRecordDevice, mRecordSource, OnHost(), PopulateOrExchange(), Setting< T >::Read(), and S.
|
override |
Definition at line 127 of file DevicePrefs.cpp.
References AudioIOHost, AudioIOLatencyCorrection, AudioIOLatencyDuration, ByColumns, ChannelsID, HostID, mChannels, mHost, mHostLabels, mHostNames, mPlay, mRecord, PlayID, RecordID, S, Verbatim(), XC, XO(), and XXO().
Referenced by Commit(), and Populate().
|
private |
Definition at line 54 of file DevicePrefs.h.
Referenced by Commit(), OnDevice(), and PopulateOrExchange().
|
private |
Definition at line 51 of file DevicePrefs.h.
Referenced by OnHost(), and PopulateOrExchange().
|
private |
Definition at line 44 of file DevicePrefs.h.
Referenced by GetNamesAndLabels(), OnHost(), and PopulateOrExchange().
|
private |
Definition at line 43 of file DevicePrefs.h.
Referenced by GetNamesAndLabels(), OnHost(), and PopulateOrExchange().
|
private |
Definition at line 52 of file DevicePrefs.h.
Referenced by Commit(), OnHost(), and PopulateOrExchange().
|
private |
Definition at line 46 of file DevicePrefs.h.
Referenced by OnHost(), and Populate().
|
private |
Definition at line 53 of file DevicePrefs.h.
Referenced by Commit(), OnDevice(), OnHost(), and PopulateOrExchange().
|
private |
Definition at line 49 of file DevicePrefs.h.
Referenced by OnDevice(), and Populate().
|
private |
Definition at line 47 of file DevicePrefs.h.
Referenced by OnHost(), and Populate().
|
private |
Definition at line 48 of file DevicePrefs.h.
Referenced by OnHost(), and Populate().