Audacity 3.2.0
EffectPresetDialog.h
Go to the documentation of this file.
1#pragma once
2
3#include "wxPanelWrapper.h"
4#include <wx/choice.h>
5#include <wx/listbox.h>
6
7class EffectPlugin;
8
10{
11public:
12 EffectPresetsDialog(wxWindow* parent, EffectPlugin* effect);
13 virtual ~EffectPresetsDialog();
14
15 wxString GetSelected() const;
16 void SetSelected(const wxString& parms);
17
18private:
19 void SetPrefix(const TranslatableString& type, const wxString& prefix);
20 void UpdateUI();
21
22 void OnType(wxCommandEvent& evt);
23 void OnOk(wxCommandEvent& evt);
24 void OnCancel(wxCommandEvent& evt);
25
26private:
27 wxChoice* mType;
28 wxListBox* mPresets;
29
32 wxString mSelection;
33
34 DECLARE_EVENT_TABLE()
35};
std::vector< RegistryPath > RegistryPaths
Definition: Identifier.h:219
Factory of instances of an effect.
Definition: EffectPlugin.h:36
wxString GetSelected() const
void SetPrefix(const TranslatableString &type, const wxString &prefix)
RegistryPaths mFactoryPresets
void OnType(wxCommandEvent &evt)
void SetSelected(const wxString &parms)
void OnOk(wxCommandEvent &evt)
void OnCancel(wxCommandEvent &evt)
RegistryPaths mUserPresets
EffectPresetsDialog(wxWindow *parent, EffectPlugin *effect)
Holds a msgid for the translation catalog; may also bind format arguments.