42 wxWindow& parent, wxDialog& dialog,
51 dialog.SetWindowStyle(dialog.GetWindowStyle() & ~(wxRESIZE_BORDER | wxMAXIMIZE_BOX));
55 return dialog.ShowModal();
71 const auto vst3instance =
dynamic_cast<VST3Instance*
>(&instance);
73 return std::make_unique<VST3Editor>(
S.GetParent(),
74 vst3instance->GetWrapper(), *
this,
GetType(), access, useGUI);
91 const auto path =
SelectFile(FileNames::Operation::Presets,
92 XO(
"Save VST3 Preset As:"),
97 {
XO(
"VST3 preset file"), {
wxT(
"vstpreset") },
true }
99 wxFD_SAVE | wxFD_OVERWRITE_PROMPT | wxRESIZE_BORDER,
106 wrapper->InitializeComponents();
109 wrapper->FetchSettings(dummy);
110 wrapper->SavePresetToFile(path);
118 const auto path =
SelectFile(FileNames::Operation::Presets,
119 XO(
"Load VST3 preset:"),
124 {
XO(
"VST3 preset file"), {
wxT(
"vstpreset") },
true }
126 wxFD_OPEN | wxRESIZE_BORDER,
143static VST3EffectsModule::Factory::SubstituteInUnique<VST3Effect>
scope;
std::optional< std::unique_ptr< EffectSettingsAccess::Message > > OptionalMessage
FilePath SelectFile(FileNames::Operation op, const TranslatableString &message, const FilePath &default_path, const FilePath &default_filename, const FileExtension &default_extension, const FileTypes &fileTypes, int flags, wxWindow *parent)
static Settings & settings()
static VST3EffectsModule::Factory::SubstituteInUnique< VST3Effect > scope
bool CloseUI() const override
virtual bool IsGraphicalUI()
Performs effect computation.
Hold values to send to effect output meters.
Factory of instances of an effect.
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
void LoadPreset(const wxString &id, EffectSettings &settings) const
const VST3::Hosting::ClassInfo mEffectClassInfo
std::shared_ptr< VST3::Hosting::Module > mModule
EffectType GetType() const override
Type determines how it behaves.
std::unique_ptr< EffectEditor > PopulateUI(const EffectPlugin &plugin, ShuttleGui &S, EffectInstance &instance, EffectSettingsAccess &access, const EffectOutputs *pOutputs) const override
Adds controls to a panel that is given as the parent window of S
virtual std::unique_ptr< EffectEditor > MakeEditor(ShuttleGui &S, EffectInstance &instance, EffectSettingsAccess &access, const EffectOutputs *pOutputs) const final
Will never be called.
void ExportPresets(const EffectPlugin &plugin, const EffectSettings &settings) const override
OptionalMessage ImportPresets(const EffectPlugin &plugin, EffectSettings &settings) const override
void ShowOptions(const EffectPlugin &plugin) const override
int ShowClientInterface(const EffectPlugin &plugin, wxWindow &parent, wxDialog &dialog, EffectEditor *pEditor, bool forceModal) const override
bool GetConfig(const EffectDefinitionInterface &ident, ConfigurationType type, const RegistryPath &group, const RegistryPath &key, Value &var, const Value &defval)
Externalized state of a plug-in.