![]() |
Audacity 3.2.0
|
#include <BatchProcessDialog.h>
Public Member Functions | |
MacrosWindow (wxWindow *parent, AudacityProject &project, bool bExpanded=true) | |
Constructor. More... | |
~MacrosWindow () | |
void | UpdateDisplay (bool bExpanded) |
![]() | |
ApplyMacroDialog (wxWindow *parent, AudacityProject &project, bool bInherited=false) | |
virtual | ~ApplyMacroDialog () |
void | Populate () |
void | PopulateOrExchange (ShuttleGui &S) |
Defines the dialog and does data exchange with it. More... | |
virtual void | OnApplyToProject (wxCommandEvent &event) |
virtual void | OnApplyToFiles (wxCommandEvent &event) |
virtual void | OnCancel (wxCommandEvent &event) |
virtual void | OnHelp (wxCommandEvent &event) |
virtual ManualPageID | GetHelpPageName () |
void | PopulateMacros () |
void | ApplyMacroToProject (int iMacro, bool bHasGui=true) |
void | ApplyMacroToProject (const CommandID &MacroID, bool bHasGui=true) |
![]() | |
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 |
![]() | |
PrefsListener () | |
virtual | ~PrefsListener () |
virtual void | UpdatePrefs ()=0 |
Private Member Functions | |
TranslatableString | WindowTitle () const |
void | Populate () |
Creates the dialog and its contents. More... | |
void | PopulateOrExchange (ShuttleGui &S) |
Defines the dialog and does data exchange with it. More... | |
void | OnApplyToProject (wxCommandEvent &event) override |
void | OnApplyToFiles (wxCommandEvent &event) override |
void | OnCancel (wxCommandEvent &event) override |
virtual ManualPageID | GetHelpPageName () override |
void | PopulateList () |
This clears and updates the contents of mList, the commands for the current macro. More... | |
void | AddItem (const CommandID &command, wxString const ¶ms) |
Add one item into mList. More... | |
bool | ChangeOK () |
void | UpdateMenus () |
void | ShowActiveMacro () |
void | OnMacroSelected (wxListEvent &event) |
An item in the macros list has been selected. More... | |
void | OnListSelected (wxListEvent &event) |
An item in the macros list has been selected. More... | |
void | OnMacrosBeginEdit (wxListEvent &event) |
void | OnMacrosEndEdit (wxListEvent &event) |
void | OnAdd (wxCommandEvent &event) |
void | OnRemove (wxCommandEvent &event) |
void | OnRename (wxCommandEvent &event) |
void | OnRestore (wxCommandEvent &event) |
Reset a built in macro. More... | |
void | OnImport (wxCommandEvent &event) |
void | OnExport (wxCommandEvent &event) |
void | OnSave (wxCommandEvent &event) |
void | OnExpand (wxCommandEvent &event) |
void | OnShrink (wxCommandEvent &event) |
void | OnSize (wxSizeEvent &event) |
The window has been resized. More... | |
void | OnCommandActivated (wxListEvent &event) |
void | OnInsert (wxCommandEvent &event) |
void | OnEditCommandParams (wxCommandEvent &event) |
void | OnDelete (wxCommandEvent &event) |
void | OnUp (wxCommandEvent &event) |
void | OnDown (wxCommandEvent &event) |
void | OnOK (wxCommandEvent &event) |
Send changed values back to Prefs, and update Audacity. More... | |
void | OnKeyDown (wxKeyEvent &event) |
void | FitColumns () |
void | InsertCommandAt (int item) |
bool | SaveChanges () |
void | UpdatePrefs () override |
Private Attributes | |
AudacityProject & | mProject |
wxButton * | mRemove |
wxButton * | mRename |
wxButton * | mRestore |
wxButton * | mImport |
wxButton * | mExport |
wxButton * | mEdit |
wxButton * | mSave |
int | mSelectedCommand |
bool | mChanged |
Additional Inherited Members | |
![]() | |
static CommandID | MacroIdOfName (const wxString &MacroName) |
![]() | |
static void | Broadcast (int id=0) |
Call this static function to notify all PrefsListener objects. More... | |
![]() | |
wxListCtrl * | mList |
wxListCtrl * | mMacros |
MacroCommands | mMacroCommands |
wxButton * | mResize |
Provides list of available commands. More... | |
wxButton * | mOK |
wxButton * | mCancel |
wxTextCtrl * | mResults |
bool | mAbort |
bool | mbExpanded |
wxString | mActiveMacro |
wxString | mMacroBeingRenamed |
![]() | |
virtual void | UpdateSelectedPrefs (int id) |
![]() | |
AudacityProject & | mProject |
const MacroCommandsCatalog | mCatalog |
Definition at line 73 of file BatchProcessDialog.h.
MacrosWindow::MacrosWindow | ( | wxWindow * | parent, |
AudacityProject & | project, | ||
bool | bExpanded = true |
||
) |
Constructor.
Definition at line 565 of file BatchProcessDialog.cpp.
References ApplyMacroDialog::mbExpanded, mChanged, mSelectedCommand, ApplyMacroDialog::Populate(), Populate(), wxDialogWrapper::SetLabel(), wxDialogWrapper::SetName(), wxDialogWrapper::SetTitle(), and WindowTitle().
MacrosWindow::~MacrosWindow | ( | ) |
Definition at line 585 of file BatchProcessDialog.cpp.
|
private |
Add one item into mList.
Definition at line 755 of file BatchProcessDialog.cpp.
References ActionColumn, MacroCommandsCatalog::ByCommandId(), MacroCommandsCatalog::end(), entry, ApplyMacroDialog::mCatalog, ApplyMacroDialog::mList, ParamsColumn, and wxT().
Referenced by PopulateList().
|
private |
Definition at line 829 of file BatchProcessDialog.cpp.
References AudacityMessageBox(), id, ApplyMacroDialog::mActiveMacro, mChanged, ApplyMacroDialog::mMacroCommands, mSave, title, MacroCommands::WriteMacro(), and XO().
Referenced by OnAdd(), OnCancel(), OnImport(), OnMacroSelected(), and OnShrink().
|
private |
Definition at line 918 of file BatchProcessDialog.cpp.
References ApplyMacroDialog::mList.
Referenced by OnListSelected(), OnSize(), and Populate().
|
inlineoverrideprivatevirtual |
Reimplemented from ApplyMacroDialog.
Definition at line 91 of file BatchProcessDialog.h.
References ApplyMacroDialog::mbExpanded.
|
private |
Definition at line 1185 of file BatchProcessDialog.cpp.
References MacroCommands::AddToMacro(), Identifier::empty(), mChanged, ApplyMacroDialog::mMacroCommands, mProject, mSave, MacroCommandDialog::mSelectedCommand, mSelectedCommand, MacroCommandDialog::mSelectedParameters, and PopulateList().
Referenced by OnEditCommandParams(), and OnInsert().
|
private |
Definition at line 999 of file BatchProcessDialog.cpp.
References MacroCommands::AddMacro(), AudacityMessageBox(), ChangeOK(), ApplyMacroDialog::mActiveMacro, ApplyMacroDialog::mMacroCommands, name, ApplyMacroDialog::PopulateMacros(), UpdateMenus(), WindowTitle(), and XO().
|
overrideprivatevirtual |
Reimplemented from ApplyMacroDialog.
Definition at line 1325 of file BatchProcessDialog.cpp.
References ApplyMacroDialog::OnApplyToFiles(), and SaveChanges().
|
overrideprivatevirtual |
Reimplemented from ApplyMacroDialog.
Definition at line 1318 of file BatchProcessDialog.cpp.
References ApplyMacroDialog::OnApplyToProject(), and SaveChanges().
|
overrideprivatevirtual |
Reimplemented from ApplyMacroDialog.
Definition at line 1359 of file BatchProcessDialog.cpp.
References ChangeOK(), mChanged, and ShowActiveMacro().
|
private |
An item in the list has been selected. Bring up a dialog to allow its parameters to be edited.
Definition at line 1167 of file BatchProcessDialog.cpp.
References OnEditCommandParams().
|
private |
Definition at line 1253 of file BatchProcessDialog.cpp.
References MacroCommands::DeleteFromMacro(), mChanged, ApplyMacroDialog::mList, ApplyMacroDialog::mMacroCommands, mSave, mSelectedCommand, and PopulateList().
|
private |
Definition at line 1297 of file BatchProcessDialog.cpp.
References MacroCommands::AddToMacro(), MacroCommands::DeleteFromMacro(), MacroCommands::GetCommand(), MacroCommands::GetParams(), mChanged, ApplyMacroDialog::mList, ApplyMacroDialog::mMacroCommands, mSave, mSelectedCommand, and PopulateList().
|
private |
Definition at line 1213 of file BatchProcessDialog.cpp.
References MacroCommands::AddToMacro(), MacroCommands::DeleteFromMacro(), MacroCommands::GetCommand(), MacroCommands::GetParams(), InsertCommandAt(), mChanged, ApplyMacroDialog::mList, ApplyMacroDialog::mMacroCommands, mSave, mSelectedCommand, params, PopulateList(), and MacroCommands::PromptForParamsFor().
Referenced by OnCommandActivated().
|
private |
Definition at line 819 of file BatchProcessDialog.cpp.
References UpdateDisplay().
|
private |
Definition at line 1147 of file BatchProcessDialog.cpp.
References ApplyMacroDialog::mMacroCommands, ApplyMacroDialog::mMacros, and MacroCommands::WriteMacro().
|
private |
Definition at line 1120 of file BatchProcessDialog.cpp.
References ChangeOK(), ApplyMacroDialog::mActiveMacro, ApplyMacroDialog::mMacroCommands, ApplyMacroDialog::mMacros, name, ApplyMacroDialog::PopulateMacros(), MacroCommands::ReadMacro(), and UpdateMenus().
|
private |
Definition at line 1174 of file BatchProcessDialog.cpp.
References InsertCommandAt(), and ApplyMacroDialog::mList.
|
private |
Definition at line 1375 of file BatchProcessDialog.cpp.
References wxT().
|
private |
An item in the macros list has been selected.
Definition at line 892 of file BatchProcessDialog.cpp.
References ActionColumn, MacroCommandsCatalog::ByTranslation(), MacroCommandsCatalog::end(), FitColumns(), EffectManager::Get(), EffectManager::GetEffectByIdentifier(), ApplyMacroDialog::mCatalog, mEdit, and ApplyMacroDialog::mList.
|
private |
Definition at line 962 of file BatchProcessDialog.cpp.
References MacroCommands::IsFixed(), ApplyMacroDialog::mMacroBeingRenamed, ApplyMacroDialog::mMacroCommands, and ApplyMacroDialog::mMacros.
|
private |
An item in the macros list has been selected.
Definition at line 858 of file BatchProcessDialog.cpp.
References ChangeOK(), ApplyMacroDialog::mActiveMacro, ApplyMacroDialog::mMacros, and ShowActiveMacro().
|
private |
Definition at line 977 of file BatchProcessDialog.cpp.
References ApplyMacroDialog::mActiveMacro, ApplyMacroDialog::mMacroBeingRenamed, ApplyMacroDialog::mMacroCommands, ApplyMacroDialog::PopulateMacros(), MacroCommands::RenameMacro(), and UpdateMenus().
|
private |
Send changed values back to Prefs, and update Audacity.
Definition at line 1350 of file BatchProcessDialog.cpp.
References SaveChanges().
|
private |
Definition at line 1054 of file BatchProcessDialog.cpp.
References MacroCommands::DeleteMacro(), ApplyMacroDialog::mActiveMacro, mChanged, ApplyMacroDialog::mMacroCommands, ApplyMacroDialog::mMacros, mSave, name, ApplyMacroDialog::PopulateMacros(), UpdateMenus(), Verbatim(), and XO().
|
private |
Definition at line 1095 of file BatchProcessDialog.cpp.
References ApplyMacroDialog::mMacros, and UpdateMenus().
|
private |
Reset a built in macro.
Definition at line 1109 of file BatchProcessDialog.cpp.
References ApplyMacroDialog::mActiveMacro, mChanged, ApplyMacroDialog::mMacroCommands, mSave, PopulateList(), and MacroCommands::RestoreMacro().
|
private |
Definition at line 1159 of file BatchProcessDialog.cpp.
References SaveChanges().
|
private |
Definition at line 822 of file BatchProcessDialog.cpp.
References ChangeOK(), and UpdateDisplay().
|
private |
The window has been resized.
Definition at line 909 of file BatchProcessDialog.cpp.
References FitColumns(), and ApplyMacroDialog::mbExpanded.
|
private |
Definition at line 1275 of file BatchProcessDialog.cpp.
References MacroCommands::AddToMacro(), MacroCommands::DeleteFromMacro(), MacroCommands::GetCommand(), MacroCommands::GetParams(), mChanged, ApplyMacroDialog::mList, ApplyMacroDialog::mMacroCommands, mSave, mSelectedCommand, and PopulateList().
|
private |
Creates the dialog and its contents.
Definition at line 590 of file BatchProcessDialog.cpp.
References eIsCreating, FitColumns(), gPrefs, ApplyMacroDialog::mActiveMacro, min(), ApplyMacroDialog::mMacros, PopulateList(), ApplyMacroDialog::PopulateMacros(), PopulateOrExchange(), audacity::BasicSettings::Read(), S, and wxT().
Referenced by MacrosWindow(), and UpdateDisplay().
|
private |
This clears and updates the contents of mList, the commands for the current macro.
Definition at line 722 of file BatchProcessDialog.cpp.
References _, AddItem(), MacroCommands::GetCommand(), MacroCommands::GetCount(), MacroCommands::GetParams(), ApplyMacroDialog::mList, ApplyMacroDialog::mMacroCommands, mSelectedCommand, and wxT().
Referenced by InsertCommandAt(), OnDelete(), OnDown(), OnEditCommandParams(), OnRestore(), OnUp(), Populate(), and ShowActiveMacro().
|
private |
Defines the dialog and does data exchange with it.
Definition at line 624 of file BatchProcessDialog.cpp.
References AddButtonID, ApplyToFilesID, ApplyToProjectID, CommandsListID, DeleteButtonID, DownButtonID, eCloseButton, EditButtonID, eHelpButton, ExportButtonID, ImportButtonID, InsertButtonID, MacrosListID, mChanged, mEdit, mExport, mImport, ApplyMacroDialog::mList, ApplyMacroDialog::mMacros, mRemove, mRename, ApplyMacroDialog::mResize, mRestore, mSave, RemoveButtonID, RenameButtonID, RestoreButtonID, S, safenew, SaveButtonID, ShrinkID, UpButtonID, XO(), and XXO().
Referenced by Populate().
|
private |
Definition at line 1332 of file BatchProcessDialog.cpp.
References audacity::BasicSettings::Flush(), gPrefs, ApplyMacroDialog::mActiveMacro, mChanged, ApplyMacroDialog::mMacroCommands, mSave, audacity::BasicSettings::Write(), MacroCommands::WriteMacro(), and wxT().
Referenced by OnApplyToFiles(), OnApplyToProject(), OnOK(), OnSave(), and UpdateDisplay().
|
private |
Definition at line 871 of file BatchProcessDialog.cpp.
References MacroCommands::IsFixed(), ApplyMacroDialog::mActiveMacro, ApplyMacroDialog::mbExpanded, ApplyMacroDialog::mMacroCommands, mRemove, mRename, mRestore, PopulateList(), and MacroCommands::ReadMacro().
Referenced by OnCancel(), and OnMacroSelected().
void MacrosWindow::UpdateDisplay | ( | bool | bExpanded | ) |
Definition at line 779 of file BatchProcessDialog.cpp.
References ApplyMacroDialog::mbExpanded, mChanged, ApplyMacroDialog::mResize, mSave, mSelectedCommand, ApplyMacroDialog::Populate(), Populate(), SaveChanges(), wxDialogWrapper::SetLabel(), wxDialogWrapper::SetName(), wxDialogWrapper::SetTitle(), and WindowTitle().
Referenced by anonymous_namespace{BatchProcessDialog.cpp}::OnApplyMacrosPalette(), OnExpand(), anonymous_namespace{BatchProcessDialog.cpp}::OnManageMacros(), OnShrink(), and UpdatePrefs().
|
private |
Definition at line 772 of file BatchProcessDialog.cpp.
References MenuCreator::Get(), mProject, and MenuCreator::RebuildMenuBar().
Referenced by OnAdd(), OnImport(), OnMacrosEndEdit(), OnRemove(), and OnRename().
|
overrideprivatevirtual |
Implements PrefsListener.
Definition at line 1390 of file BatchProcessDialog.cpp.
References ApplyMacroDialog::mbExpanded, and UpdateDisplay().
|
private |
Definition at line 1384 of file BatchProcessDialog.cpp.
References MacrosPaletteTitle, ManageMacrosTitle, and ApplyMacroDialog::mbExpanded.
Referenced by MacrosWindow(), OnAdd(), and UpdateDisplay().
|
private |
Definition at line 146 of file BatchProcessDialog.h.
Referenced by ChangeOK(), InsertCommandAt(), MacrosWindow(), OnCancel(), OnDelete(), OnDown(), OnEditCommandParams(), OnRemove(), OnRestore(), OnUp(), PopulateOrExchange(), SaveChanges(), and UpdateDisplay().
|
private |
Definition at line 142 of file BatchProcessDialog.h.
Referenced by OnListSelected(), and PopulateOrExchange().
|
private |
Definition at line 141 of file BatchProcessDialog.h.
Referenced by PopulateOrExchange().
|
private |
Definition at line 140 of file BatchProcessDialog.h.
Referenced by PopulateOrExchange().
|
private |
Definition at line 135 of file BatchProcessDialog.h.
Referenced by InsertCommandAt(), and UpdateMenus().
|
private |
Definition at line 137 of file BatchProcessDialog.h.
Referenced by PopulateOrExchange(), and ShowActiveMacro().
|
private |
Definition at line 138 of file BatchProcessDialog.h.
Referenced by PopulateOrExchange(), and ShowActiveMacro().
|
private |
Definition at line 139 of file BatchProcessDialog.h.
Referenced by PopulateOrExchange(), and ShowActiveMacro().
|
private |
Definition at line 143 of file BatchProcessDialog.h.
Referenced by ChangeOK(), InsertCommandAt(), OnDelete(), OnDown(), OnEditCommandParams(), OnRemove(), OnRestore(), OnUp(), PopulateOrExchange(), SaveChanges(), and UpdateDisplay().
|
private |
Definition at line 145 of file BatchProcessDialog.h.
Referenced by InsertCommandAt(), MacrosWindow(), OnDelete(), OnDown(), OnEditCommandParams(), OnUp(), PopulateList(), and UpdateDisplay().