Audacity 3.2.0
|
Shows progress in executing commands in MacroCommands. More...
#include <BatchProcessDialog.h>
Public Member Functions | |
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 |
Static Public Member Functions | |
static CommandID | MacroIdOfName (const wxString &MacroName) |
Public Attributes | |
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 Attributes | |
AudacityProject & | mProject |
const MacroCommandsCatalog | mCatalog |
Shows progress in executing commands in MacroCommands.
Definition at line 30 of file BatchProcessDialog.h.
ApplyMacroDialog::ApplyMacroDialog | ( | wxWindow * | parent, |
AudacityProject & | project, | ||
bool | bInherited = false |
||
) |
Definition at line 93 of file BatchProcessDialog.cpp.
References project.
|
virtual |
Definition at line 112 of file BatchProcessDialog.cpp.
void ApplyMacroDialog::ApplyMacroToProject | ( | const CommandID & | MacroID, |
bool | bHasGui = true |
||
) |
Definition at line 255 of file BatchProcessDialog.cpp.
References ApplyMacroToProject(), MacroIdOfName(), mMacros, and name.
void ApplyMacroDialog::ApplyMacroToProject | ( | int | iMacro, |
bool | bHasGui = true |
||
) |
Definition at line 267 of file BatchProcessDialog.cpp.
References MacroCommands::ApplyMacro(), eIsCreating, audacity::BasicSettings::Flush(), gPrefs, mCatalog, mMacroCommands, mMacros, name, MacroCommands::ReadMacro(), S, wxDialogWrapper::SetName(), ExportProgressUI::Show(), audacity::BasicSettings::Write(), wxT(), and XO().
Referenced by ApplyMacroToProject(), anonymous_namespace{BatchProcessDialog.cpp}::OnApplyMacroDirectlyByName(), and OnApplyToProject().
|
inlinevirtual |
Reimplemented in MacrosWindow.
Definition at line 45 of file BatchProcessDialog.h.
Referenced by OnHelp().
|
static |
Definition at line 245 of file BatchProcessDialog.cpp.
Referenced by ApplyMacroToProject(), and anonymous_namespace{BatchProcessDialog.cpp}::PopulateMacrosMenu().
|
virtual |
Reimplemented in MacrosWindow.
Definition at line 331 of file BatchProcessDialog.cpp.
References MacroCommands::ApplyMacro(), AudacityMessageBox(), ProjectFileManager::CloseProject(), CommandsListID, SelectUtilities::DoSelectAll(), eIsCreating, TrackList::empty(), FileNames::FindDefaultPath(), audacity::BasicSettings::Flush(), Importer::Get(), Clipboard::Get(), TrackList::Get(), Viewport::Get(), ProjectFileManager::Get(), ProjectManager::Get(), Importer::GetFileTypes(), FileDialog::GetPaths(), gPrefs, ProjectFileManager::Import(), mAbort, mCatalog, mMacroCommands, mMacros, mProject, name, ProjectFileManager::OpenProject(), project, MacroCommands::ReadMacro(), ProjectManager::ResetProjectToEmpty(), S, anonymous_namespace{wxCommandTargets.cpp}::scope, Importer::SelectDefaultOpenType(), FileDialog::SetFilterIndex(), wxDialogWrapper::SetName(), ExportProgressUI::Show(), FileDialog::ShowModal(), Verbatim(), audacity::BasicSettings::Write(), wxT(), XO(), XXO(), and Viewport::ZoomFitHorizontallyAndShowTrack().
Referenced by MacrosWindow::OnApplyToFiles().
|
virtual |
Reimplemented in MacrosWindow.
Definition at line 232 of file BatchProcessDialog.cpp.
References ApplyMacroToProject(), AudacityMessageBox(), mMacros, and XO().
Referenced by MacrosWindow::OnApplyToProject().
|
virtual |
Reimplemented in MacrosWindow.
Definition at line 496 of file BatchProcessDialog.cpp.
|
virtual |
Definition at line 226 of file BatchProcessDialog.cpp.
References GetHelpPageName(), and HelpSystem::ShowHelp().
void ApplyMacroDialog::Populate | ( | ) |
Definition at line 116 of file BatchProcessDialog.cpp.
References eIsCreating, gPrefs, mActiveMacro, min(), mMacros, PopulateMacros(), PopulateOrExchange(), audacity::BasicSettings::Read(), S, and wxT().
Referenced by MacrosWindow::MacrosWindow(), and MacrosWindow::UpdateDisplay().
void ApplyMacroDialog::PopulateMacros | ( | ) |
This clears and updates the contents of mMacros, the list of macros. It has cut-and-paste code from PopulateList, and both should call a shared function.
Definition at line 192 of file BatchProcessDialog.cpp.
References MacroCommands::GetNames(), mActiveMacro, mMacroCommands, mMacros, and names.
Referenced by MacrosWindow::OnAdd(), MacrosWindow::OnImport(), MacrosWindow::OnMacrosEndEdit(), MacrosWindow::OnRemove(), Populate(), and MacrosWindow::Populate().
void ApplyMacroDialog::PopulateOrExchange | ( | ShuttleGui & | S | ) |
Defines the dialog and does data exchange with it.
Definition at line 144 of file BatchProcessDialog.cpp.
References ApplyToFilesID, ApplyToProjectID, eCloseButton, eHelpButton, ExpandID, MacrosListID, mMacros, mResize, S, safenew, XO(), and XXO().
Referenced by Populate().
bool ApplyMacroDialog::mAbort |
Definition at line 61 of file BatchProcessDialog.h.
Referenced by OnApplyToFiles().
wxString ApplyMacroDialog::mActiveMacro |
Definition at line 63 of file BatchProcessDialog.h.
Referenced by MacrosWindow::ChangeOK(), MacrosWindow::OnAdd(), MacrosWindow::OnImport(), MacrosWindow::OnMacroSelected(), MacrosWindow::OnMacrosEndEdit(), MacrosWindow::OnRemove(), MacrosWindow::OnRestore(), Populate(), MacrosWindow::Populate(), PopulateMacros(), MacrosWindow::SaveChanges(), and MacrosWindow::ShowActiveMacro().
bool ApplyMacroDialog::mbExpanded |
Definition at line 62 of file BatchProcessDialog.h.
Referenced by MacrosWindow::GetHelpPageName(), MacrosWindow::MacrosWindow(), MacrosWindow::OnSize(), MacrosWindow::ShowActiveMacro(), MacrosWindow::UpdateDisplay(), MacrosWindow::UpdatePrefs(), and MacrosWindow::WindowTitle().
wxButton* ApplyMacroDialog::mCancel |
Definition at line 59 of file BatchProcessDialog.h.
|
protected |
Definition at line 68 of file BatchProcessDialog.h.
Referenced by MacrosWindow::AddItem(), ApplyMacroToProject(), OnApplyToFiles(), and MacrosWindow::OnListSelected().
wxListCtrl* ApplyMacroDialog::mList |
Definition at line 53 of file BatchProcessDialog.h.
Referenced by MacrosWindow::AddItem(), MacrosWindow::FitColumns(), MacrosWindow::OnDelete(), MacrosWindow::OnDown(), MacrosWindow::OnEditCommandParams(), MacrosWindow::OnInsert(), MacrosWindow::OnListSelected(), MacrosWindow::OnUp(), MacrosWindow::PopulateList(), and MacrosWindow::PopulateOrExchange().
wxString ApplyMacroDialog::mMacroBeingRenamed |
Definition at line 64 of file BatchProcessDialog.h.
Referenced by MacrosWindow::OnMacrosBeginEdit(), and MacrosWindow::OnMacrosEndEdit().
MacroCommands ApplyMacroDialog::mMacroCommands |
Definition at line 55 of file BatchProcessDialog.h.
Referenced by ApplyMacroToProject(), MacrosWindow::ChangeOK(), MacrosWindow::InsertCommandAt(), MacrosWindow::OnAdd(), OnApplyToFiles(), MacrosWindow::OnDelete(), MacrosWindow::OnDown(), MacrosWindow::OnEditCommandParams(), MacrosWindow::OnExport(), MacrosWindow::OnImport(), MacrosWindow::OnMacrosBeginEdit(), MacrosWindow::OnMacrosEndEdit(), MacrosWindow::OnRemove(), MacrosWindow::OnRestore(), MacrosWindow::OnUp(), MacrosWindow::PopulateList(), PopulateMacros(), MacrosWindow::SaveChanges(), and MacrosWindow::ShowActiveMacro().
wxListCtrl* ApplyMacroDialog::mMacros |
Definition at line 54 of file BatchProcessDialog.h.
Referenced by ApplyMacroToProject(), OnApplyToFiles(), OnApplyToProject(), MacrosWindow::OnExport(), MacrosWindow::OnImport(), MacrosWindow::OnMacrosBeginEdit(), MacrosWindow::OnMacroSelected(), MacrosWindow::OnRemove(), MacrosWindow::OnRename(), Populate(), MacrosWindow::Populate(), PopulateMacros(), PopulateOrExchange(), and MacrosWindow::PopulateOrExchange().
wxButton* ApplyMacroDialog::mOK |
Definition at line 58 of file BatchProcessDialog.h.
|
protected |
Definition at line 67 of file BatchProcessDialog.h.
Referenced by OnApplyToFiles().
wxButton* ApplyMacroDialog::mResize |
Provides list of available commands.
Definition at line 57 of file BatchProcessDialog.h.
Referenced by PopulateOrExchange(), MacrosWindow::PopulateOrExchange(), and MacrosWindow::UpdateDisplay().
wxTextCtrl* ApplyMacroDialog::mResults |
Definition at line 60 of file BatchProcessDialog.h.