25 #include <wx/ownerdrw.h>
30#include <wx/checkbox.h>
32#include <wx/statbox.h>
33#include <wx/stattext.h>
34#include <wx/textctrl.h>
35#include <wx/listctrl.h>
45#define CommandsListID 7001
46#define EditParamsButtonID 7002
47#define UsePresetButtonID 7003
62 wxDefaultPosition, wxDefaultSize,
63 wxCAPTION | wxRESIZE_BORDER)
66 SetLabel(
XO(
"Select Command"));
67 SetName(
XO(
"Select Command"));
81 S.StartVerticalLay(
true);
83 S.StartMultiColumn(4, wxEXPAND);
90 .AddButton(
XXO(
"&Edit Parameters"));
93 .AddButton(
XXO(
"&Use Preset"));
97 S.StartMultiColumn(2, wxEXPAND);
102 auto prompt =
XXO(
"&Details");
103 S.Prop(0).AddPrompt(prompt);
106 .AddTextWindow(
wxT(
""));
111 S.Prop(10).StartStatic(
XO(
"Choose command"),
true);
114 .Style(wxSUNKEN_BORDER | wxLC_LIST | wxLC_SINGLE_SEL)
127 mChoices->SetItemState(0, wxLIST_STATE_FOCUSED | wxLIST_STATE_SELECTED,
128 wxLIST_STATE_FOCUSED | wxLIST_STATE_SELECTED);
131 SetMinSize(wxSize(780, 560));
142 mChoices->InsertItem( ii++,
entry.name.StrippedTranslation() );
177 const auto &command =
mCatalog[
event.GetIndex() ];
187 auto value = command.name.StrippedTranslation();
188 if ( value ==
mCommand->GetValue() )
245 mCommand->SetValue( iter->name.StrippedTranslation() );
250 iter->name.Internal() +
"\r\n" + iter->category.Translation() );
252 wxLIST_STATE_SELECTED, wxLIST_STATE_SELECTED);
#define EditParamsButtonID
#define UsePresetButtonID
EVT_BUTTON(wxID_NO, DependencyDialog::OnNo) EVT_BUTTON(wxID_YES
EffectDistortionSettings params
EVT_LIST_ITEM_SELECTED(CurvesListID, EqualizationCurvesDialog::OnListSelectionChange) EVT_LIST_ITEM_DESELECTED(CurvesListID
XXO("&Cut/Copy/Paste Toolbar")
static ProjectFileIORegistry::AttributeWriterEntry entry
EffectReverbSettings preset
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
EffectManager is the class that handles effects and effect categories.
bool HasPresets(const PluginID &ID)
static EffectManager & Get()
wxString GetDefaultPreset(const PluginID &ID)
const PluginID & GetEffectByIdentifier(const CommandID &strTarget)
static void ShowHelp(wxWindow *parent, const FilePath &localFileName, const URLString &remoteURL, bool bModal=false, bool alwaysDefaultBrowser=false)
const wxString & GET() const
Explicit conversion to wxString, meant to be ugly-looking and demanding of a comment why it's correct...
Provides a list of configurable commands for use with MacroCommands.
void OnOk(wxCommandEvent &event)
void OnCancel(wxCommandEvent &event)
void OnUsePreset(wxCommandEvent &event)
const MacroCommandsCatalog mCatalog
CommandID mInternalCommandName
void OnHelp(wxCommandEvent &event)
void PopulateCommandList()
void OnEditParams(wxCommandEvent &event)
void PopulateOrExchange(ShuttleGui &S)
void OnItemSelected(wxListEvent &event)
CommandID mSelectedCommand
void SetCommandAndParams(const CommandID &Command, const wxString &Params)
void OnChoice(wxCommandEvent &event)
ManualPageID GetHelpPageName()
wxString mSelectedParameters
Entries::const_iterator ByCommandId(const CommandID &commandId) const
Entries::const_iterator end() const
Entries::const_iterator begin() const
static wxString PromptForPresetFor(const CommandID &command, const wxString ¶ms, wxWindow *parent)
static wxString GetCurrentParamsFor(const CommandID &command)
static wxString PromptForParamsFor(const CommandID &command, const wxString ¶ms, wxWindow &parent)
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.