Audacity  2.2.2
Public Member Functions | Private Attributes | List of all members
LadspaEffectOptionsDialog Class Referencefinal
Inheritance diagram for LadspaEffectOptionsDialog:
wxDialogWrapper wxTabTraversalWrapper< wxDialog >

Public Member Functions

 LadspaEffectOptionsDialog (wxWindow *parent, EffectHostInterface *host)
 
virtual ~LadspaEffectOptionsDialog ()
 
void PopulateOrExchange (ShuttleGui &S)
 
void OnOk (wxCommandEvent &evt)
 
- Public Member Functions inherited from wxDialogWrapper
 wxDialogWrapper ()
 
 wxDialogWrapper (wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const wxString &name=_("Dialog"))
 
bool Create (wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const wxString &name=_("Dialog"))
 
- 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

EffectHostInterfacemHost
 
bool mUseLatency
 

Detailed Description

Definition at line 379 of file LadspaEffect.cpp.

Constructor & Destructor Documentation

LadspaEffectOptionsDialog::LadspaEffectOptionsDialog ( wxWindow *  parent,
EffectHostInterface host 
)

Definition at line 400 of file LadspaEffect.cpp.

References eIsCreating.

401 : wxDialogWrapper(parent, wxID_ANY, wxString(_("LADSPA Effect Options")))
402 {
403  mHost = host;
404 
405  mHost->GetSharedConfig(wxT("Options"), wxT("UseLatency"), mUseLatency, true);
406 
407  ShuttleGui S(this, eIsCreating);
409 }
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI...
Definition: ShuttleGui.h:409
EffectHostInterface * mHost
virtual bool GetSharedConfig(const wxString &group, const wxString &key, wxString &value, const wxString &defval)=0
void PopulateOrExchange(ShuttleGui &S)
_("Move Track &Down")+wxT("\t")+(GetActiveProject() -> GetCommandManager() ->GetKeyFromName(wxT("TrackMoveDown")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveTopID, _("Move Track to &Top")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveTop")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveBottomID, _("Move Track to &Bottom")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveBottom")).Raw()), OnMoveTrack)#define SET_TRACK_NAME_PLUGIN_SYMBOLclass SetTrackNameCommand:public AudacityCommand
LadspaEffectOptionsDialog::~LadspaEffectOptionsDialog ( )
virtual

Definition at line 411 of file LadspaEffect.cpp.

412 {
413 }

Member Function Documentation

void LadspaEffectOptionsDialog::OnOk ( wxCommandEvent &  evt)

Definition at line 451 of file LadspaEffect.cpp.

References eIsGettingFromDialog.

452 {
453  if (!Validate())
454  {
455  return;
456  }
457 
460 
461  mHost->SetSharedConfig(wxT("Options"), wxT("UseLatency"), mUseLatency);
462 
463  EndModal(wxID_OK);
464 }
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI...
Definition: ShuttleGui.h:409
EffectHostInterface * mHost
virtual bool SetSharedConfig(const wxString &group, const wxString &key, const wxString &value)=0
void PopulateOrExchange(ShuttleGui &S)
void LadspaEffectOptionsDialog::PopulateOrExchange ( ShuttleGui S)

Definition at line 415 of file LadspaEffect.cpp.

References _(), ShuttleGui::AddStandardButtons(), ShuttleGuiBase::AddVariableText(), ShuttleGuiBase::EndHorizontalLay(), ShuttleGuiBase::EndStatic(), ShuttleGuiBase::EndVerticalLay(), ShuttleGuiBase::SetBorder(), ShuttleGuiBase::StartHorizontalLay(), ShuttleGuiBase::StartStatic(), ShuttleGuiBase::StartVerticalLay(), and ShuttleGuiBase::TieCheckBox().

416 {
417  S.SetBorder(5);
418  S.StartHorizontalLay(wxEXPAND, 1);
419  {
420  S.StartVerticalLay(false);
421  {
422  S.StartStatic(_("Latency Compensation"));
423  {
424  S.AddVariableText(wxString() +
425  _("As part of their processing, some LADSPA effects must delay returning ") +
426  _("audio to Audacity. When not compensating for this delay, you will ") +
427  _("notice that small silences have been inserted into the audio. ") +
428  _("Enabling this option will provide that compensation, but it may ") +
429  _("not work for all LADSPA effects."))->Wrap(650);
430 
431  S.StartHorizontalLay(wxALIGN_LEFT);
432  {
433  S.TieCheckBox(_("Enable &compensation"),
434  mUseLatency);
435  }
436  S.EndHorizontalLay();
437  }
438  S.EndStatic();
439  }
440  S.EndVerticalLay();
441  }
442  S.EndHorizontalLay();
443 
444  S.AddStandardButtons();
445 
446  Layout();
447  Fit();
448  Center();
449 }
void EndHorizontalLay()
void EndVerticalLay()
void StartHorizontalLay(int PositionFlags=wxALIGN_CENTRE, int iProp=1)
_("Move Track &Down")+wxT("\t")+(GetActiveProject() -> GetCommandManager() ->GetKeyFromName(wxT("TrackMoveDown")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveTopID, _("Move Track to &Top")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveTop")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveBottomID, _("Move Track to &Bottom")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveBottom")).Raw()), OnMoveTrack)#define SET_TRACK_NAME_PLUGIN_SYMBOLclass SetTrackNameCommand:public AudacityCommand
wxCheckBox * TieCheckBox(const wxString &Prompt, WrappedType &WrappedRef)
wxStaticText * AddVariableText(const wxString &Str, bool bCenter=false, int PositionFlags=0)
Definition: ShuttleGui.cpp:414
wxStaticBox * StartStatic(const wxString &Str, int iProp=0)
Definition: ShuttleGui.cpp:763
void AddStandardButtons(long buttons=eOkButton|eCancelButton, wxButton *extra=NULL)
void SetBorder(int Border)
Definition: ShuttleGui.h:286
void StartVerticalLay(int iProp=1)

Member Data Documentation

EffectHostInterface* LadspaEffectOptionsDialog::mHost
private

Definition at line 390 of file LadspaEffect.cpp.

bool LadspaEffectOptionsDialog::mUseLatency
private

Definition at line 391 of file LadspaEffect.cpp.


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