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 parent,
id,
XO("Select
Command"), wxDefaultPosition, wxDefaultSize,
63 wxCAPTION | wxRESIZE_BORDER)
67 SetLabel(
XO(
"Select Command"));
68 SetName(
XO(
"Select Command"));
82 S.StartVerticalLay(
true);
84 S.StartMultiColumn(4, wxEXPAND);
91 .AddButton(
XXO(
"&Edit Parameters"));
94 .AddButton(
XXO(
"&Use Preset"));
98 S.StartMultiColumn(2, wxEXPAND);
103 auto prompt =
XXO(
"&Details");
104 S.Prop(0).AddPrompt(prompt);
107 .AddTextWindow(
wxT(
""));
112 S.Prop(10).StartStatic(
XO(
"Choose command"),
true);
115 .Style( wxLC_LIST | wxLC_SINGLE_SEL)
128 mChoices->SetItemState(0, wxLIST_STATE_FOCUSED | wxLIST_STATE_SELECTED,
129 wxLIST_STATE_FOCUSED | wxLIST_STATE_SELECTED);
132 SetMinSize(wxSize(780, 560));
143 mChoices->InsertItem( ii++,
entry.name.StrippedTranslation() );
178 const auto &command =
mCatalog[
event.GetIndex() ];
189 auto value = command.name.StrippedTranslation();
190 if ( value ==
mCommand->GetValue() )
247 mCommand->SetValue( iter->name.StrippedTranslation() );
252 iter->name.Internal() +
"\r\n" + iter->category.Translation() );
254 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
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)
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)
AudacityProject & mProject
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 PromptForParamsFor(const CommandID &command, const wxString ¶ms, AudacityProject &project)
static wxString PromptForPresetFor(const CommandID &command, const wxString ¶ms, wxWindow *parent)
static wxString GetCurrentParamsFor(const CommandID &command)
const PluginID & GetByCommandIdentifier(const CommandID &strTarget)
static PluginManager & Get()
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.