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

#include <LadspaEffectOptionsDialog.h>

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

Public Member Functions

 LadspaEffectOptionsDialog (const EffectDefinitionInterface &effect)
 
virtual ~LadspaEffectOptionsDialog ()
 
void PopulateOrExchange (ShuttleGui &S)
 
void OnOk (wxCommandEvent &evt)
 
- Public Member Functions inherited from wxDialogWrapper
 wxDialogWrapper ()
 
 wxDialogWrapper (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog"))
 
bool Create (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog"))
 
void SetTitle (const TranslatableString &title)
 
void SetLabel (const TranslatableString &title)
 
void SetName (const TranslatableString &title)
 
void SetName ()
 
- Public Member Functions inherited from wxTabTraversalWrapper< wxDialog >
 wxTabTraversalWrapper (Args &&... args)
 
 wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete
 
 wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete
 
wxTabTraversalWrapperoperator= (const wxTabTraversalWrapper &)=delete
 
wxTabTraversalWrapperoperator= (wxTabTraversalWrapper &&)=delete
 

Private Attributes

const EffectDefinitionInterfacemEffect
 
bool mUseLatency {}
 

Detailed Description

Definition at line 18 of file LadspaEffectOptionsDialog.h.

Constructor & Destructor Documentation

◆ LadspaEffectOptionsDialog()

LadspaEffectOptionsDialog::LadspaEffectOptionsDialog ( const EffectDefinitionInterface effect)
explicit

Definition at line 21 of file LadspaEffectOptionsDialog.cpp.

23 : wxDialogWrapper{ nullptr, wxID_ANY, XO("LADSPA Effect Options") }
24 , mEffect{ effect }
26{
29}
XO("Cut/Copy/Paste")
@ eIsCreating
Definition: ShuttleGui.h:37
#define S(N)
Definition: ToChars.cpp:64
const EffectDefinitionInterface & mEffect
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:640
static bool LoadUseLatency(const EffectDefinitionInterface &effect)
Get the preference for using latency.

References XO().

Here is the call graph for this function:

◆ ~LadspaEffectOptionsDialog()

LadspaEffectOptionsDialog::~LadspaEffectOptionsDialog ( )
virtual

Definition at line 31 of file LadspaEffectOptionsDialog.cpp.

32{
33}

Member Function Documentation

◆ OnOk()

void LadspaEffectOptionsDialog::OnOk ( wxCommandEvent &  evt)

Definition at line 72 of file LadspaEffectOptionsDialog.cpp.

73{
74 if (!Validate())
75 {
76 return;
77 }
78
80 // Note this call re-visits the controls, not to create them but to fetch
81 // the values, in this case mUseLatency
83
85
86 EndModal(wxID_OK);
87}
@ eIsGettingFromDialog
Definition: ShuttleGui.h:38
static bool SaveUseLatency(const EffectDefinitionInterface &effect, bool value)
Set the preference for using latency.

References eIsGettingFromDialog, mEffect, mUseLatency, PopulateOrExchange(), S, and LadspaInstance::SaveUseLatency().

Here is the call graph for this function:

◆ PopulateOrExchange()

void LadspaEffectOptionsDialog::PopulateOrExchange ( ShuttleGui S)

Definition at line 35 of file LadspaEffectOptionsDialog.cpp.

36{
37 S.SetBorder(5);
38 S.StartHorizontalLay(wxEXPAND, 1);
39 {
40 S.StartVerticalLay(false);
41 {
42 S.StartStatic(XO("Latency Compensation"));
43 {
44 S.AddVariableText( XO(
45"As part of their processing, some LADSPA effects must delay returning "
46"audio to Audacity. When not compensating for this delay, you will "
47"notice that small silences have been inserted into the audio. "
48"Enabling this option will provide that compensation, but it may "
49"not work for all LADSPA effects."),
50 false, 0, 650);
51
52 S.StartHorizontalLay(wxALIGN_LEFT);
53 {
54 S.TieCheckBox(XXO("Enable &compensation"),
56 }
57 S.EndHorizontalLay();
58 }
59 S.EndStatic();
60 }
61 S.EndVerticalLay();
62 }
63 S.EndHorizontalLay();
64
65 S.AddStandardButtons();
66
67 Layout();
68 Fit();
69 Center();
70}
XXO("&Cut/Copy/Paste Toolbar")

References mUseLatency, S, XO(), and XXO().

Referenced by OnOk().

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

Member Data Documentation

◆ mEffect

const EffectDefinitionInterface& LadspaEffectOptionsDialog::mEffect
private

Definition at line 29 of file LadspaEffectOptionsDialog.h.

Referenced by OnOk().

◆ mUseLatency

bool LadspaEffectOptionsDialog::mUseLatency {}
private

Definition at line 30 of file LadspaEffectOptionsDialog.h.

Referenced by OnOk(), and PopulateOrExchange().


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