![]() |
Audacity 3.2.0
|
Provides a list of configurable commands for use with MacroCommands. More...
#include <BatchCommandDialog.h>
Public Member Functions | |
| MacroCommandDialog (wxWindow *parent, wxWindowID id, AudacityProject &project) | |
| void | SetCommandAndParams (const CommandID &Command, const wxString &Params) |
Public Member Functions inherited from wxDialogWrapper | |
| wxDialogWrapper () | |
| wxDialogWrapper (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog")) | |
| bool | Create (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog")) |
| void | SetTitle (const TranslatableString &title) |
| void | SetLabel (const TranslatableString &title) |
| void | SetName (const TranslatableString &title) |
| void | SetName () |
Public Member Functions inherited from wxTabTraversalWrapper< wxDialog > | |
| wxTabTraversalWrapper (Args &&... args) | |
| wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete | |
| wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete | |
| wxTabTraversalWrapper & | operator= (const wxTabTraversalWrapper &)=delete |
| wxTabTraversalWrapper & | operator= (wxTabTraversalWrapper &&)=delete |
Public Attributes | |
| CommandID | mSelectedCommand |
| wxString | mSelectedParameters |
Private Member Functions | |
| void | Populate () |
| void | PopulateOrExchange (ShuttleGui &S) |
| void | OnEditParams (wxCommandEvent &event) |
| void | OnUsePreset (wxCommandEvent &event) |
| void | OnChoice (wxCommandEvent &event) |
| void | OnOk (wxCommandEvent &event) |
| void | OnCancel (wxCommandEvent &event) |
| void | OnHelp (wxCommandEvent &event) |
| void | OnItemSelected (wxListEvent &event) |
| ManualPageID | GetHelpPageName () |
| void | ValidateChoices () |
| void | PopulateCommandList () |
Private Attributes | |
| wxButton * | mEditParams |
| wxButton * | mUsePreset |
| wxListCtrl * | mChoices |
| wxTextCtrl * | mCommand |
| wxTextCtrl * | mParameters |
| wxTextCtrl * | mDetails |
| CommandID | mInternalCommandName |
| AudacityProject & | mProject |
| const MacroCommandsCatalog | mCatalog |
Provides a list of configurable commands for use with MacroCommands.
Provides a list of commands, mostly effects, which can be chained together in a simple linear sequence. Can configure parameters on each selected command.
Definition at line 28 of file BatchCommandDialog.h.
| MacroCommandDialog::MacroCommandDialog | ( | wxWindow * | parent, |
| wxWindowID | id, | ||
| AudacityProject & | project | ||
| ) |
Definition at line 59 of file BatchCommandDialog.cpp.
References project.
|
inlineprivate |
Definition at line 46 of file BatchCommandDialog.h.
Referenced by OnHelp().
|
private |
Definition at line 165 of file BatchCommandDialog.cpp.
|
private |
Definition at line 150 of file BatchCommandDialog.cpp.
|
private |
Definition at line 213 of file BatchCommandDialog.cpp.
References mInternalCommandName, mParameters, mProject, params, and MacroCommands::PromptForParamsFor().
|
private |
Definition at line 170 of file BatchCommandDialog.cpp.
References GetHelpPageName(), and HelpSystem::ShowHelp().
|
private |
Definition at line 176 of file BatchCommandDialog.cpp.
References EffectManager::Get(), PluginManager::Get(), Identifier::GET(), PluginManager::GetByCommandIdentifier(), MacroCommands::GetCurrentParamsFor(), EffectManager::GetDefaultPreset(), EffectManager::HasPresets(), mCatalog, mCommand, mDetails, mEditParams, mInternalCommandName, mParameters, mUsePreset, and params.
|
private |
Definition at line 154 of file BatchCommandDialog.cpp.
References mInternalCommandName, mParameters, mSelectedCommand, and mSelectedParameters.
|
private |
Definition at line 224 of file BatchCommandDialog.cpp.
References mInternalCommandName, mParameters, params, preset, and MacroCommands::PromptForPresetFor().
|
private |
Definition at line 72 of file BatchCommandDialog.cpp.
References eIsCreating, PopulateOrExchange(), and S.
|
private |
Definition at line 137 of file BatchCommandDialog.cpp.
References entry, mCatalog, and mChoices.
Referenced by PopulateOrExchange().
|
private |
Definition at line 80 of file BatchCommandDialog.cpp.
References CommandsListID, eCancelButton, EditParamsButtonID, eHelpButton, eOkButton, mChoices, mCommand, mDetails, mEditParams, mParameters, mUsePreset, PopulateCommandList(), S, UsePresetButtonID, wxT(), XO(), and XXO().
Referenced by Populate().
| void MacroCommandDialog::SetCommandAndParams | ( | const CommandID & | Command, |
| const wxString & | Params | ||
| ) |
Definition at line 235 of file BatchCommandDialog.cpp.
References MacroCommandsCatalog::begin(), MacroCommandsCatalog::ByCommandId(), MenuRegistry::Command, MacroCommandsCatalog::end(), EffectManager::Get(), PluginManager::Get(), PluginManager::GetByCommandIdentifier(), mCatalog, mChoices, mCommand, mDetails, mEditParams, mInternalCommandName, mParameters, and mUsePreset.
|
private |
Definition at line 146 of file BatchCommandDialog.cpp.
|
private |
Definition at line 62 of file BatchCommandDialog.h.
Referenced by OnItemSelected(), PopulateCommandList(), and SetCommandAndParams().
|
private |
Definition at line 54 of file BatchCommandDialog.h.
Referenced by PopulateCommandList(), PopulateOrExchange(), and SetCommandAndParams().
|
private |
Definition at line 55 of file BatchCommandDialog.h.
Referenced by OnItemSelected(), PopulateOrExchange(), and SetCommandAndParams().
|
private |
Definition at line 57 of file BatchCommandDialog.h.
Referenced by OnItemSelected(), PopulateOrExchange(), and SetCommandAndParams().
|
private |
Definition at line 52 of file BatchCommandDialog.h.
Referenced by OnItemSelected(), PopulateOrExchange(), and SetCommandAndParams().
|
private |
Definition at line 59 of file BatchCommandDialog.h.
Referenced by OnEditParams(), OnItemSelected(), OnOk(), OnUsePreset(), and SetCommandAndParams().
|
private |
Definition at line 56 of file BatchCommandDialog.h.
Referenced by OnEditParams(), OnItemSelected(), OnOk(), OnUsePreset(), PopulateOrExchange(), and SetCommandAndParams().
|
private |
Definition at line 61 of file BatchCommandDialog.h.
Referenced by OnEditParams().
| CommandID MacroCommandDialog::mSelectedCommand |
Definition at line 34 of file BatchCommandDialog.h.
Referenced by MacrosWindow::InsertCommandAt(), and OnOk().
| wxString MacroCommandDialog::mSelectedParameters |
Definition at line 35 of file BatchCommandDialog.h.
Referenced by MacrosWindow::InsertCommandAt(), and OnOk().
|
private |
Definition at line 53 of file BatchCommandDialog.h.
Referenced by OnItemSelected(), PopulateOrExchange(), and SetCommandAndParams().