Audacity 3.2.0
|
Base class for containing data common to all commands of a given type. Also acts as a factory. More...
#include <CommandType.h>
Public Member Functions | |
OldStyleCommandType () | |
virtual | ~OldStyleCommandType () |
ComponentInterfaceSymbol | GetSymbol () const override |
CommandSignature & | GetSignature () |
wxString | Describe () |
virtual ComponentInterfaceSymbol | BuildName () const =0 |
virtual void | BuildSignature (CommandSignature &signature)=0 |
Postcondition: signature is a 'signature' map containing parameter. More... | |
virtual OldStyleCommandPointer | Create (AudacityProject &project, std::unique_ptr< CommandOutputTargets > &&target)=0 |
Public Member Functions inherited from AudacityCommand | |
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 |
Private Attributes | |
std::optional< CommandSignature > | mSignature |
Additional Inherited Members | |
Public Types inherited from AudacityCommand | |
enum | : long { DefaultMessageBoxStyle = wxOK | wxCENTRE } |
Protected Attributes inherited from AudacityCommand | |
ProgressDialog * | mProgress |
wxDialog * | mUIDialog |
wxWindow * | mUIParent |
Base class for containing data common to all commands of a given type. Also acts as a factory.
Definition at line 44 of file CommandType.h.
OldStyleCommandType::OldStyleCommandType | ( | ) |
Definition at line 23 of file CommandType.cpp.
|
virtual |
Definition at line 28 of file CommandType.cpp.
|
pure virtual |
Implemented in BatchEvalCommandType.
Referenced by GetSymbol().
|
pure virtual |
Postcondition: signature is a 'signature' map containing parameter.
Implemented in BatchEvalCommandType.
Referenced by GetSignature().
|
pure virtual |
Implemented in BatchEvalCommandType.
Referenced by CommandBuilder::BuildCommand().
wxString OldStyleCommandType::Describe | ( | ) |
Definition at line 47 of file CommandType.cpp.
References anonymous_namespace{ExportPCM.cpp}::desc, GetSignature(), GetSymbol(), ComponentInterfaceSymbol::Internal(), mSignature, and wxT().
CommandSignature & OldStyleCommandType::GetSignature | ( | ) |
Definition at line 37 of file CommandType.cpp.
References BuildSignature(), and mSignature.
Referenced by Describe(), CommandImplementation::GetSignature(), and CommandImplementation::SetParameter().
|
overridevirtual |
Implements AudacityCommand.
Definition at line 32 of file CommandType.cpp.
References BuildName().
Referenced by Describe(), and CommandImplementation::GetSymbol().
|
private |
Definition at line 47 of file CommandType.h.
Referenced by Describe(), and GetSignature().