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) |
Public Member Functions inherited from ApplyMacroDialog | |
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) |
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 Member Functions inherited from PrefsListener | |
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 Public Member Functions inherited from ApplyMacroDialog | |
static CommandID | MacroIdOfName (const wxString &MacroName) |
Static Public Member Functions inherited from PrefsListener | |
static void | Broadcast (int id=0) |
Call this static function to notify all PrefsListener objects. More... | |
Public Attributes inherited from ApplyMacroDialog | |
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 |
Protected Member Functions inherited from PrefsListener | |
virtual void | UpdateSelectedPrefs (int id) |
Protected Attributes inherited from ApplyMacroDialog | |
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 567 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 587 of file BatchProcessDialog.cpp.
|
private |
Add one item into mList.
Definition at line 757 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 831 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 920 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 1187 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 1001 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 1327 of file BatchProcessDialog.cpp.
References ApplyMacroDialog::OnApplyToFiles(), and SaveChanges().
|
overrideprivatevirtual |
Reimplemented from ApplyMacroDialog.
Definition at line 1320 of file BatchProcessDialog.cpp.
References ApplyMacroDialog::OnApplyToProject(), and SaveChanges().
|
overrideprivatevirtual |
Reimplemented from ApplyMacroDialog.
Definition at line 1361 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 1169 of file BatchProcessDialog.cpp.
References OnEditCommandParams().
|
private |
Definition at line 1255 of file BatchProcessDialog.cpp.
References MacroCommands::DeleteFromMacro(), mChanged, ApplyMacroDialog::mList, ApplyMacroDialog::mMacroCommands, mSave, mSelectedCommand, and PopulateList().
|
private |
Definition at line 1299 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 1215 of file BatchProcessDialog.cpp.
References MacroCommands::AddToMacro(), MacroCommands::DeleteFromMacro(), MacroCommands::GetCommand(), MacroCommands::GetParams(), InsertCommandAt(), mChanged, ApplyMacroDialog::mList, ApplyMacroDialog::mMacroCommands, mProject, mSave, mSelectedCommand, params, PopulateList(), and MacroCommands::PromptForParamsFor().
Referenced by OnCommandActivated().
|
private |
Definition at line 821 of file BatchProcessDialog.cpp.
References UpdateDisplay().
|
private |
Definition at line 1149 of file BatchProcessDialog.cpp.
References ApplyMacroDialog::mMacroCommands, ApplyMacroDialog::mMacros, and MacroCommands::WriteMacro().
|
private |
Definition at line 1122 of file BatchProcessDialog.cpp.
References ChangeOK(), ApplyMacroDialog::mActiveMacro, ApplyMacroDialog::mMacroCommands, ApplyMacroDialog::mMacros, name, ApplyMacroDialog::PopulateMacros(), MacroCommands::ReadMacro(), and UpdateMenus().
|
private |
Definition at line 1176 of file BatchProcessDialog.cpp.
References InsertCommandAt(), and ApplyMacroDialog::mList.
|
private |
Definition at line 1377 of file BatchProcessDialog.cpp.
References wxT().
|
private |
An item in the macros list has been selected.
Definition at line 894 of file BatchProcessDialog.cpp.
References ActionColumn, MacroCommandsCatalog::ByTranslation(), MacroCommandsCatalog::end(), FitColumns(), PluginManager::Get(), PluginManager::GetByCommandIdentifier(), ApplyMacroDialog::mCatalog, mEdit, and ApplyMacroDialog::mList.
|
private |
Definition at line 964 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 860 of file BatchProcessDialog.cpp.
References ChangeOK(), ApplyMacroDialog::mActiveMacro, ApplyMacroDialog::mMacros, and ShowActiveMacro().
|
private |
Definition at line 979 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 1352 of file BatchProcessDialog.cpp.
References SaveChanges().
|
private |
Definition at line 1056 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 1097 of file BatchProcessDialog.cpp.
References ApplyMacroDialog::mMacros, and UpdateMenus().
|
private |
Reset a built in macro.
Definition at line 1111 of file BatchProcessDialog.cpp.
References ApplyMacroDialog::mActiveMacro, mChanged, ApplyMacroDialog::mMacroCommands, mSave, PopulateList(), and MacroCommands::RestoreMacro().
|
private |
Definition at line 1161 of file BatchProcessDialog.cpp.
References SaveChanges().
|
private |
Definition at line 824 of file BatchProcessDialog.cpp.
References ChangeOK(), and UpdateDisplay().
|
private |
The window has been resized.
Definition at line 911 of file BatchProcessDialog.cpp.
References FitColumns(), and ApplyMacroDialog::mbExpanded.
|
private |
Definition at line 1277 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 592 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 724 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 626 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 1334 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 873 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 781 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 774 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 1392 of file BatchProcessDialog.cpp.
References ApplyMacroDialog::mbExpanded, and UpdateDisplay().
|
private |
Definition at line 1386 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(), OnEditCommandParams(), 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().