Audacity 3.2.0
|
Base class for command in Audacity. More...
#include <AudacityCommand.h>
Public Types | |
enum | : long { DefaultMessageBoxStyle = wxOK | wxCENTRE } |
Public Member Functions | |
AudacityCommand () | |
virtual | ~AudacityCommand () |
PluginPath | GetPath () const override |
VendorSymbol | GetVendor () const override |
wxString | GetVersion () const override |
ComponentInterfaceSymbol | GetSymbol () const override=0 |
virtual TranslatableString | GetDescription () const override |
virtual ManualPageID | ManualPage () |
virtual bool | IsBatchProcessing () const |
virtual void | SetBatchProcessing (bool start) |
virtual bool | Apply (const CommandContext &WXUNUSED(context)) |
bool | ShowInterface (wxWindow *parent, bool forceModal=false) |
wxDialog * | CreateUI (wxWindow *parent, AudacityCommand *client) |
bool | SaveSettingsAsString (wxString &parms) |
bool | LoadSettingsFromString (const wxString &parms) |
bool | DoAudacityCommand (const CommandContext &context, bool shouldPrompt=true) |
int | MessageBox (const TranslatableString &message, long style=DefaultMessageBoxStyle, const TranslatableString &titleStr={}) |
virtual bool | Init () |
virtual bool | PromptUser (AudacityProject &) |
virtual bool | CheckWhetherSkipAudacityCommand () |
virtual void | End () |
virtual void | PopulateOrExchange (ShuttleGui &WXUNUSED(S)) |
virtual bool | TransferDataToWindow () |
virtual bool | TransferDataFromWindow () |
virtual bool | VisitSettings (SettingsVisitor &) |
virtual bool | VisitSettings (ConstSettingsVisitor &) |
Public Member Functions inherited from ComponentInterface | |
virtual | ~ComponentInterface () |
virtual PluginPath | GetPath () const =0 |
virtual ComponentInterfaceSymbol | GetSymbol () const =0 |
virtual VendorSymbol | GetVendor () const =0 |
virtual wxString | GetVersion () const =0 |
virtual TranslatableString | GetDescription () const =0 |
TranslatableString | GetName () const |
Protected Attributes | |
ProgressDialog * | mProgress |
wxDialog * | mUIDialog |
wxWindow * | mUIParent |
Private Attributes | |
bool | mIsBatch |
bool | mNeedsInit |
Base class for command in Audacity.
Definition at line 37 of file AudacityCommand.h.
anonymous enum : long |
AudacityCommand::AudacityCommand | ( | ) |
Definition at line 47 of file AudacityCommand.cpp.
References mIsBatch, mNeedsInit, mProgress, mUIDialog, and mUIParent.
|
virtual |
Definition at line 56 of file AudacityCommand.cpp.
References mUIDialog.
|
inlinevirtual |
Definition at line 66 of file AudacityCommand.h.
Referenced by DoAudacityCommand().
|
inlinevirtual |
Definition at line 110 of file AudacityCommand.h.
Referenced by DoAudacityCommand().
wxDialog * AudacityCommand::CreateUI | ( | wxWindow * | parent, |
AudacityCommand * | client | ||
) |
Definition at line 100 of file AudacityCommand.cpp.
References ComponentInterface::GetName(), and safenew.
Referenced by ShowInterface().
bool AudacityCommand::DoAudacityCommand | ( | const CommandContext & | context, |
bool | shouldPrompt = true |
||
) |
Definition at line 156 of file AudacityCommand.cpp.
References Apply(), CheckWhetherSkipAudacityCommand(), End(), ComponentInterface::GetName(), Init(), mProgress, name, pdlgHideStopButton, CommandContext::project, PromptUser(), valueRestorer(), and XO().
Referenced by EffectAndCommandPluginManager::DoAudacityCommand().
|
inlinevirtual |
Definition at line 115 of file AudacityCommand.h.
Referenced by DoAudacityCommand().
|
inlineoverridevirtual |
Implements ComponentInterface.
Reimplemented in CompareAudioCommand, DemoCommand, DragCommand, GetInfoCommand, GetTrackInfoCommand, HelpCommand, CommentCommand, ImportCommand, ExportCommand, MessageCommand, OpenProjectCommand, SaveProjectCommand, SaveCopyCommand, SaveLogCommand, ClearLogCommand, GetPreferenceCommand, SetPreferenceCommand, SelectTimeCommand, SelectFrequenciesCommand, SelectTracksCommand, SelectCommand, SetClipCommand, SetEnvelopeCommand, SetLabelCommand, SetProjectCommand, SetTrackStatusCommand, SetTrackAudioCommand, SetTrackVisualsCommand, and SetTrackCommand.
Definition at line 58 of file AudacityCommand.h.
References XO().
Referenced by EffectAndCommandPluginManager::GetCommandTip().
|
overridevirtual |
Implements ComponentInterface.
Definition at line 63 of file AudacityCommand.cpp.
References BUILTIN_GENERIC_COMMAND_PREFIX, GetSymbol(), and ComponentInterfaceSymbol::Internal().
|
overridepure virtual |
Implements ComponentInterface.
Implemented in OldStyleCommandType, CompareAudioCommand, DemoCommand, DragCommand, GetInfoCommand, GetTrackInfoCommand, HelpCommand, CommentCommand, ImportCommand, ExportCommand, MessageCommand, OpenProjectCommand, SaveProjectCommand, SaveCopyCommand, SaveLogCommand, ClearLogCommand, GetPreferenceCommand, SetPreferenceCommand, SelectTimeCommand, SelectFrequenciesCommand, SelectTracksCommand, SelectCommand, SetClipCommand, SetEnvelopeCommand, SetLabelCommand, SetProjectCommand, SetTrackStatusCommand, SetTrackAudioCommand, SetTrackVisualsCommand, SetTrackCommand, SetWaveClipNameCommand, and SetTrackNameCommand.
Referenced by GetPath().
|
overridevirtual |
Implements ComponentInterface.
Definition at line 64 of file AudacityCommand.cpp.
References XO().
|
overridevirtual |
Implements ComponentInterface.
Definition at line 65 of file AudacityCommand.cpp.
|
virtual |
Definition at line 68 of file AudacityCommand.cpp.
References mNeedsInit, and VisitSettings().
Referenced by DoAudacityCommand(), EffectAndCommandPluginManager::GetAudacityCommand(), and EffectAndCommandPluginManager::SetEffectParameters().
|
inlinevirtual |
Definition at line 63 of file AudacityCommand.h.
Referenced by PromptUser().
bool AudacityCommand::LoadSettingsFromString | ( | const wxString & | parms | ) |
Definition at line 131 of file AudacityCommand.cpp.
References ComponentInterface::GetName(), MessageBox(), preset, S, TransferDataToWindow(), VisitSettings(), and XO().
Referenced by EffectAndCommandPluginManager::SetEffectParameters().
|
inlinevirtual |
Reimplemented in CompareAudioCommand, DemoCommand, DragCommand, GetInfoCommand, GetTrackInfoCommand, HelpCommand, CommentCommand, ImportCommand, ExportCommand, MessageCommand, OpenProjectCommand, SaveProjectCommand, SaveCopyCommand, SaveLogCommand, ClearLogCommand, GetPreferenceCommand, SetPreferenceCommand, SelectTimeCommand, SelectFrequenciesCommand, SelectTracksCommand, SelectCommand, SetClipCommand, SetEnvelopeCommand, SetLabelCommand, SetProjectCommand, SetTrackStatusCommand, SetTrackAudioCommand, SetTrackVisualsCommand, and SetTrackCommand.
Definition at line 62 of file AudacityCommand.h.
Referenced by EffectAndCommandPluginManager::GetCommandUrl(), and AudacityCommandDialog::OnHelp().
int AudacityCommand::MessageBox | ( | const TranslatableString & | message, |
long | style = DefaultMessageBoxStyle , |
||
const TranslatableString & | titleStr = {} |
||
) |
Definition at line 224 of file AudacityCommand.cpp.
References AudacityMessageBox(), TranslatableString::empty(), ComponentInterface::GetName(), mUIParent, anonymous_namespace{AudacityDontAskAgainMessageDialog.cpp}::style, title, and XO().
Referenced by LoadSettingsFromString().
|
inlinevirtual |
Definition at line 116 of file AudacityCommand.h.
Referenced by AudacityCommandDialog::PopulateOrExchange().
|
virtual |
Reimplemented in ClearLogCommand.
Definition at line 195 of file AudacityCommand.cpp.
References GetProjectFrame(), IsBatchProcessing(), project, and ShowInterface().
Referenced by DoAudacityCommand(), and EffectAndCommandPluginManager::PromptUser().
bool AudacityCommand::SaveSettingsAsString | ( | wxString & | parms | ) |
Definition at line 113 of file AudacityCommand.cpp.
References CommandParameters::GetParameters(), mUIDialog, S, TransferDataFromWindow(), and VisitSettings().
Referenced by EffectAndCommandPluginManager::GetEffectParameters().
|
inlinevirtual |
Definition at line 64 of file AudacityCommand.h.
bool AudacityCommand::ShowInterface | ( | wxWindow * | parent, |
bool | forceModal = false |
||
) |
Definition at line 76 of file AudacityCommand.cpp.
References CreateUI(), mUIDialog, and valueRestorer().
Referenced by PromptUser().
|
virtual |
Definition at line 207 of file AudacityCommand.cpp.
References mUIParent.
Referenced by SaveSettingsAsString().
|
virtual |
Definition at line 200 of file AudacityCommand.cpp.
References mUIParent.
Referenced by LoadSettingsFromString().
|
virtual |
Visit settings, if defined. false means no defined settings. Default implementation returns false
Reimplemented in CompareAudioCommand, DemoCommand, DragCommand, GetInfoCommand, GetTrackInfoCommand, HelpCommand, CommentCommand, ImportCommand, ExportCommand, MessageCommand, OpenProjectCommand, SaveProjectCommand, SaveCopyCommand, SaveLogCommand, ClearLogCommand, GetPreferenceCommand, SetPreferenceCommand, SelectTimeCommand, SelectFrequenciesCommand, SelectTracksCommand, SelectCommand, SetClipCommand, SetEnvelopeCommand, SetLabelCommand, SetProjectCommand, SetTrackStatusCommand, SetTrackAudioCommand, SetTrackVisualsCommand, and SetTrackCommand.
Definition at line 219 of file AudacityCommand.cpp.
|
virtual |
Visit settings, if defined. false means no defined settings. Default implementation returns false
Reimplemented in CompareAudioCommand, DemoCommand, DragCommand, GetInfoCommand, GetTrackInfoCommand, HelpCommand, CommentCommand, ImportCommand, ExportCommand, MessageCommand, OpenProjectCommand, SaveProjectCommand, SaveCopyCommand, SaveLogCommand, ClearLogCommand, GetPreferenceCommand, SetPreferenceCommand, SelectTimeCommand, SelectFrequenciesCommand, SelectTracksCommand, SelectCommand, SetClipCommand, SetEnvelopeCommand, SetLabelCommand, SetProjectCommand, SetTrackStatusCommand, SetTrackAudioCommand, SetTrackVisualsCommand, and SetTrackCommand.
Definition at line 214 of file AudacityCommand.cpp.
Referenced by EffectAndCommandPluginManager::GetCommandDefinition(), Init(), LoadSettingsFromString(), and SaveSettingsAsString().
|
private |
Definition at line 135 of file AudacityCommand.h.
Referenced by AudacityCommand().
|
private |
Definition at line 136 of file AudacityCommand.h.
Referenced by AudacityCommand(), and Init().
|
protected |
Definition at line 129 of file AudacityCommand.h.
Referenced by AudacityCommand(), and DoAudacityCommand().
|
protected |
Definition at line 131 of file AudacityCommand.h.
Referenced by AudacityCommand(), SaveSettingsAsString(), ShowInterface(), and ~AudacityCommand().
|
protected |
Definition at line 132 of file AudacityCommand.h.
Referenced by AudacityCommand(), MessageBox(), TransferDataFromWindow(), and TransferDataToWindow().