Audacity 3.2.0
Public Member Functions | Private Member Functions | List of all members
EffectsPrefs Class Referencefinal

A PrefsPanel for general GUI preferences. More...

#include <EffectsPrefs.h>

Inheritance diagram for EffectsPrefs:
[legend]
Collaboration diagram for EffectsPrefs:
[legend]

Public Member Functions

 EffectsPrefs (wxWindow *parent, wxWindowID winid)
 
 ~EffectsPrefs ()
 
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
 
wxTabTraversalWrapperoperator= (const wxTabTraversalWrapper &)=delete
 
wxTabTraversalWrapperoperator= (wxTabTraversalWrapper &&)=delete
 

Private Member Functions

void Populate ()
 

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 FactoriesDefaultFactories ()
 

Detailed Description

A PrefsPanel for general GUI preferences.

Definition at line 25 of file EffectsPrefs.h.

Constructor & Destructor Documentation

◆ EffectsPrefs()

EffectsPrefs::EffectsPrefs ( wxWindow *  parent,
wxWindowID  winid 
)

Definition at line 30 of file EffectsPrefs.cpp.

31: PrefsPanel(parent, winid, XO("Effects"))
32{
33 Populate();
34}
XO("Cut/Copy/Paste")
PrefsPanel(wxWindow *parent, wxWindowID winid, const TranslatableString &title)
Definition: PrefsPanel.h:90

References Populate().

Here is the call graph for this function:

◆ ~EffectsPrefs()

EffectsPrefs::~EffectsPrefs ( )

Definition at line 36 of file EffectsPrefs.cpp.

37{
38}

Member Function Documentation

◆ Commit()

bool EffectsPrefs::Commit ( )
overridevirtual

Implements PrefsPanel.

Definition at line 229 of file EffectsPrefs.cpp.

230{
233
234 return true;
235}
@ eIsSavingToPrefs
Definition: ShuttleGui.h:49
#define S(N)
Definition: ToChars.cpp:64
void PopulateOrExchange(ShuttleGui &S) override
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:628

References eIsSavingToPrefs, PopulateOrExchange(), and S.

Here is the call graph for this function:

◆ GetDescription()

TranslatableString EffectsPrefs::GetDescription ( ) const
overridevirtual

Implements ComponentInterface.

Definition at line 45 of file EffectsPrefs.cpp.

46{
47 return XO("Preferences for Effects");
48}

References XO().

Here is the call graph for this function:

◆ GetSymbol()

ComponentInterfaceSymbol EffectsPrefs::GetSymbol ( ) const
overridevirtual

Implements ComponentInterface.

Definition at line 40 of file EffectsPrefs.cpp.

41{
43}
#define EFFECTS_PREFS_PLUGIN_SYMBOL
Definition: EffectsPrefs.h:23

References EFFECTS_PREFS_PLUGIN_SYMBOL.

◆ HelpPageName()

ManualPageID EffectsPrefs::HelpPageName ( )
overridevirtual

If not empty string, the Help button is added below the panel.

Default returns empty string.

Reimplemented from PrefsPanel.

Definition at line 50 of file EffectsPrefs.cpp.

51{
52 return "Effects_Preferences";
53}

◆ Populate()

void EffectsPrefs::Populate ( )
private

Definition at line 55 of file EffectsPrefs.cpp.

56{
57 //------------------------- Main section --------------------
58 // Now construct the GUI itself.
59 // Use 'eIsCreatingFromPrefs' so that the GUI is
60 // initialised with values from gPrefs.
63 // ----------------------- End of main section --------------
64}
@ eIsCreatingFromPrefs
Definition: ShuttleGui.h:48

References eIsCreatingFromPrefs, PopulateOrExchange(), and S.

Referenced by EffectsPrefs().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PopulateOrExchange()

void EffectsPrefs::PopulateOrExchange ( ShuttleGui S)
override

Definition at line 177 of file EffectsPrefs.cpp.

178{
179 S.SetBorder(2);
180 S.StartScroller();
181
182 S.StartStatic(XO("Enable Effects"));
183 {
184 for ( const auto &entry : GetModuleData() )
185 {
186 S.TieCheckBox(
187 entry.prompt,
188 {entry.setting,
189 true}
190 );
191 }
192 }
193 S.EndStatic();
194
195 S.StartStatic(XO("Effect Options"));
196 {
197 S.StartMultiColumn(2);
198 {
199 wxChoice *c = S
200 .MinSize()
201 .TieChoice( XXO("S&ort or Group:"), EffectsGroupBy);
202
203 S.TieIntegerTextBox(XXO("&Maximum effects per group (0 to disable):"),
204 {wxT("/Effects/MaxPerGroup"),
205#if defined(__WXGTK__)
206 15
207#else
208 0
209#endif
210 },
211 5);
212 }
213 S.EndMultiColumn();
214 }
215 S.EndStatic();
216
217#ifdef EXPERIMENTAL_EQ_SSE_THREADED
218 S.StartStatic(XO("Instruction Set"));
219 {
220 S.TieCheckBox(XXO("&Use SSE/SSE2/.../AVX"),
221 {wxT("/SSE/GUI"),
222 true});
223 }
224 S.EndStatic();
225#endif
226 S.EndScroller();
227}
wxT("CloseDown"))
ChoiceSetting EffectsGroupBy
XXO("&Cut/Copy/Paste Toolbar")
static ProjectFileIORegistry::AttributeWriterEntry entry
static const std::vector< Entry > & GetModuleData()

References EffectsGroupBy, entry, anonymous_namespace{EffectsPrefs.cpp}::GetModuleData(), S, wxT(), XO(), and XXO().

Referenced by Commit(), and Populate().

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: