12#ifndef __AUDACITY_LADSPA_EDITOR__
13#define __AUDACITY_LADSPA_EDITOR__
15#include "../EffectEditor.h"
19#include <wx/weakref.h>
46 unsigned numInputControls,
unsigned numOutputControls,
static Settings & settings()
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
constexpr auto sampleRate
Externalized state of a plug-in.
const unsigned mNumInputControls
static const LadspaEffectSettings & GetSettings(const EffectSettings &settings)
Assume settings originated from MakeSettings() and copies thereof.
void PopulateUI(ShuttleGui &S)
ArrayOf< wxSlider * > mSliders
wxWeakRef< wxDialog > mDialog
void Disconnect() override
On the first call only, may disconnect from further event handling.
ArrayOf< wxCheckBox * > mToggles
static LadspaEffectSettings & GetSettings(EffectSettings &settings)
Assume settings originated from MakeSettings() and copies thereof.
LadspaEffectSettings mSettings
NumericTextCtrl * mDuration
ArrayOf< wxStaticText * > mLabels
ArrayOf< wxTextCtrl * > mFields
LadspaEditor(const EffectUIServices &effect, const LadspaInstance &instance, unsigned numInputControls, unsigned numOutputControls, EffectSettingsAccess &access, double sampleRate, EffectType type, const LadspaEffectOutputs *pOutputs)
const LadspaEffectOutputs *const mpOutputs
void UpdateControls(const LadspaEffectSettings &src)
void OnCheckBox(wxCommandEvent &evt)
void OnSlider(wxCommandEvent &evt)
void UpdateControl(int index, float value, float epsilon)
void OnTextCtrl(wxCommandEvent &evt)
bool ValidateUI() override
Get settings data from the panel; may make error dialogs and return false.
std::vector< LadspaEffectMeter * > mMeters
const unsigned mNumOutputControls
const LadspaInstance & mInstance
bool UpdateUI() override
Update appearance of the panel for changes in settings.
Carry output control port information back to main thread.