Audacity 3.2.0
|
A PrefsPanel used to select manage external libraries like the MP3 and FFmpeg encoding libraries. More...
#include <LibraryPrefs.h>
Classes | |
struct | PopulatorItem |
struct | RegisteredControls |
To be statically constructed, it registers additions to the Library preference page. More... | |
struct | Traits |
Public Types | |
using | Populator = std::function< void(ShuttleGui &) > |
Type of function that adds to the Library preference page. More... | |
Public Types inherited from PrefsPanel | |
using | Factories = std::vector< PrefsPanel::PrefsNode > |
using | Factory = std::function< PrefsPanel *(wxWindow *parent, wxWindowID winid, AudacityProject *) > |
Public Member Functions | |
LibraryPrefs (wxWindow *parent, wxWindowID winid) | |
~LibraryPrefs () | |
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 |
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 () |
Creates the dialog and its contents. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from PrefsPanel | |
static Factories & | DefaultFactories () |
A PrefsPanel used to select manage external libraries like the MP3 and FFmpeg encoding libraries.
Definition at line 27 of file LibraryPrefs.h.
using LibraryPrefs::Populator = std::function< void(ShuttleGui&) > |
Type of function that adds to the Library preference page.
Definition at line 33 of file LibraryPrefs.h.
LibraryPrefs::LibraryPrefs | ( | wxWindow * | parent, |
wxWindowID | winid | ||
) |
Definition at line 56 of file LibraryPrefs.cpp.
References Populate().
LibraryPrefs::~LibraryPrefs | ( | ) |
Definition at line 63 of file LibraryPrefs.cpp.
|
overridevirtual |
Implements PrefsPanel.
Definition at line 120 of file LibraryPrefs.cpp.
References eIsSavingToPrefs, PopulateOrExchange(), and S.
|
overridevirtual |
Implements ComponentInterface.
Definition at line 72 of file LibraryPrefs.cpp.
References XO().
|
overridevirtual |
Implements ComponentInterface.
Definition at line 67 of file LibraryPrefs.cpp.
References LIBRARY_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 77 of file LibraryPrefs.cpp.
|
private |
Creates the dialog and its contents.
Definition at line 83 of file LibraryPrefs.cpp.
References eIsCreatingFromPrefs, PopulateOrExchange(), and S.
Referenced by LibraryPrefs().
|
override |
This PopulateOrExchange function is a good example of mixing the fully automatic style of reading/writing from GUI to prefs with the partial form.
You'll notice that some of the Tie functions have Prefs identifiers in them and others don't.
Definition at line 99 of file LibraryPrefs.cpp.
References LibraryPrefs::PopulatorItem::mPopulator, PathStart, LibraryPrefs::PopulatorItem::Registry(), S, Registry::Visit(), and wxT().
Referenced by Commit(), and Populate().