![]() |
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) |
![]() | |
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 () |
![]() | |
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 |
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 27 of file BatchCommandDialog.h.
MacroCommandDialog::MacroCommandDialog | ( | wxWindow * | parent, |
wxWindowID | id, | ||
AudacityProject & | project | ||
) |
Definition at line 59 of file BatchCommandDialog.cpp.
|
inlineprivate |
Definition at line 45 of file BatchCommandDialog.h.
Referenced by OnHelp().
|
private |
Definition at line 164 of file BatchCommandDialog.cpp.
|
private |
Definition at line 149 of file BatchCommandDialog.cpp.
|
private |
Definition at line 211 of file BatchCommandDialog.cpp.
References mInternalCommandName, mParameters, params, and MacroCommands::PromptForParamsFor().
|
private |
Definition at line 169 of file BatchCommandDialog.cpp.
References GetHelpPageName(), and HelpSystem::ShowHelp().
|
private |
Definition at line 175 of file BatchCommandDialog.cpp.
References EffectManager::Get(), Identifier::GET(), MacroCommands::GetCurrentParamsFor(), EffectManager::GetDefaultPreset(), EffectManager::GetEffectByIdentifier(), EffectManager::HasPresets(), mCatalog, mCommand, mDetails, mEditParams, mInternalCommandName, mParameters, mUsePreset, and params.
|
private |
Definition at line 153 of file BatchCommandDialog.cpp.
References mInternalCommandName, mParameters, mSelectedCommand, and mSelectedParameters.
|
private |
Definition at line 222 of file BatchCommandDialog.cpp.
References mInternalCommandName, mParameters, params, preset, and MacroCommands::PromptForPresetFor().
|
private |
Definition at line 71 of file BatchCommandDialog.cpp.
References eIsCreating, PopulateOrExchange(), and S.
|
private |
Definition at line 136 of file BatchCommandDialog.cpp.
References entry, mCatalog, and mChoices.
Referenced by PopulateOrExchange().
|
private |
Definition at line 79 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 233 of file BatchCommandDialog.cpp.
References MacroCommandsCatalog::begin(), MacroCommandsCatalog::ByCommandId(), MenuTable::Command, MacroCommandsCatalog::end(), EffectManager::Get(), EffectManager::GetEffectByIdentifier(), EffectManager::HasPresets(), mCatalog, mChoices, mCommand, mDetails, mEditParams, mInternalCommandName, mParameters, and mUsePreset.
|
private |
Definition at line 145 of file BatchCommandDialog.cpp.
|
private |
Definition at line 60 of file BatchCommandDialog.h.
Referenced by OnItemSelected(), PopulateCommandList(), and SetCommandAndParams().
|
private |
Definition at line 53 of file BatchCommandDialog.h.
Referenced by PopulateCommandList(), PopulateOrExchange(), and SetCommandAndParams().
|
private |
Definition at line 54 of file BatchCommandDialog.h.
Referenced by OnItemSelected(), PopulateOrExchange(), and SetCommandAndParams().
|
private |
Definition at line 56 of file BatchCommandDialog.h.
Referenced by OnItemSelected(), PopulateOrExchange(), and SetCommandAndParams().
|
private |
Definition at line 51 of file BatchCommandDialog.h.
Referenced by OnItemSelected(), PopulateOrExchange(), and SetCommandAndParams().
|
private |
Definition at line 58 of file BatchCommandDialog.h.
Referenced by OnEditParams(), OnItemSelected(), OnOk(), OnUsePreset(), and SetCommandAndParams().
|
private |
Definition at line 55 of file BatchCommandDialog.h.
Referenced by OnEditParams(), OnItemSelected(), OnOk(), OnUsePreset(), PopulateOrExchange(), and SetCommandAndParams().
CommandID MacroCommandDialog::mSelectedCommand |
Definition at line 33 of file BatchCommandDialog.h.
Referenced by MacrosWindow::InsertCommandAt(), and OnOk().
wxString MacroCommandDialog::mSelectedParameters |
Definition at line 34 of file BatchCommandDialog.h.
Referenced by MacrosWindow::InsertCommandAt(), and OnOk().
|
private |
Definition at line 52 of file BatchCommandDialog.h.
Referenced by OnItemSelected(), PopulateOrExchange(), and SetCommandAndParams().