Audacity  2.2.2
Public Member Functions | Public Attributes | List of all members
GetTrackInfoCommand Class Referencefinal

Obsolete. GetInfo now does it. More...

#include <GetTrackInfoCommand.h>

Inheritance diagram for GetTrackInfoCommand:
AudacityCommand CommandDefinitionInterface IdentInterface ParamsInterface

Public Member Functions

 GetTrackInfoCommand ()
 
IdentInterfaceSymbol GetSymbol () override
 
wxString GetDescription () override
 
bool DefineParams (ShuttleParams &S) override
 
void PopulateOrExchange (ShuttleGui &S) override
 
wxString ManualPage () override
 
bool Apply (const CommandContext &context) override
 
- Public Member Functions inherited from AudacityCommand
 AudacityCommand ()
 
virtual ~AudacityCommand ()
 
wxString GetPath () override
 
IdentInterfaceSymbol GetVendor () override
 
wxString GetVersion () override
 
virtual bool IsBatchProcessing ()
 
virtual void SetBatchProcessing (bool start)
 
virtual bool Apply (const CommandContext &WXUNUSED(context))
 
virtual bool Apply ()
 
bool ShowInterface (wxWindow *parent, bool forceModal=false)
 
virtual void SetHostUI (EffectUIHostInterface *WXUNUSED(host))
 
bool PopulateUI (wxWindow *parent)
 
wxDialog * CreateUI (wxWindow *parent, AudacityCommand *client)
 
virtual bool GetAutomationParameters (wxString &parms)
 
virtual bool SetAutomationParameters (const wxString &parms)
 
bool DoAudacityCommand (wxWindow *parent, const CommandContext &context, bool shouldPrompt=true)
 
int MessageBox (const wxString &message, long style=DefaultMessageBoxStyle, const wxString &titleStr=wxString{})
 
virtual bool Init ()
 
virtual bool PromptUser (wxWindow *parent)
 
virtual bool CheckWhetherSkipAudacityCommand ()
 
virtual void End ()
 
virtual void PopulateOrExchange (ShuttleGui &WXUNUSED(S))
 
virtual bool TransferDataToWindow ()
 
virtual bool TransferDataFromWindow ()
 
- Public Member Functions inherited from CommandDefinitionInterface
virtual ~CommandDefinitionInterface ()
 
- Public Member Functions inherited from IdentInterface
virtual ~IdentInterface ()
 
const wxString & GetTranslatedName ()
 
- Public Member Functions inherited from ParamsInterface
virtual ~ParamsInterface ()
 
virtual bool DefineParams (ShuttleParams &WXUNUSED(S))
 

Public Attributes

int mInfoType
 

Additional Inherited Members

- Public Types inherited from AudacityCommand
enum  : long { DefaultMessageBoxStyle = wxOK | wxCENTRE }
 
- Protected Attributes inherited from AudacityCommand
ProgressDialogmProgress
 
wxDialog * mUIDialog
 
wxWindow * mUIParent
 
int mUIResultID
 

Detailed Description

Obsolete. GetInfo now does it.

Definition at line 24 of file GetTrackInfoCommand.h.

Constructor & Destructor Documentation

GetTrackInfoCommand::GetTrackInfoCommand ( )

Definition at line 37 of file GetTrackInfoCommand.cpp.

References mInfoType.

38 {
39  mInfoType = 0;
40 }

Member Function Documentation

bool GetTrackInfoCommand::Apply ( const CommandContext context)
override

Definition at line 62 of file GetTrackInfoCommand.cpp.

63 {
64  return false;
65 }
bool GetTrackInfoCommand::DefineParams ( ShuttleParams S)
override

Definition at line 42 of file GetTrackInfoCommand.cpp.

References ShuttleParams::DefineEnum(), mInfoType, and nTypes.

42  {
43  S.DefineEnum( mInfoType, wxT("Type"), 0, kTypes, nTypes );
44 
45  return true;
46 }
const int nTypes
kTypes
Definition: Noise.cpp:30
virtual void DefineEnum(int &var, const wxChar *key, const int vdefault, const IdentInterfaceSymbol strings[], size_t nStrings)
Definition: Shuttle.cpp:346
wxString GetTrackInfoCommand::GetDescription ( )
inlineoverridevirtual

Reimplemented from AudacityCommand.

Definition at line 30 of file GetTrackInfoCommand.h.

References _().

30 {return _("Gets track values as JSON.");};
_("Move Track &Down")+wxT("\t")+(GetActiveProject() -> GetCommandManager() ->GetKeyFromName(wxT("TrackMoveDown")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveTopID, _("Move Track to &Top")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveTop")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveBottomID, _("Move Track to &Bottom")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveBottom")).Raw()), OnMoveTrack)#define SET_TRACK_NAME_PLUGIN_SYMBOLclass SetTrackNameCommand:public AudacityCommand
IdentInterfaceSymbol GetTrackInfoCommand::GetSymbol ( )
inlineoverridevirtual

Implements AudacityCommand.

Definition at line 29 of file GetTrackInfoCommand.h.

References GET_TRACK_INFO_PLUGIN_SYMBOL.

#define GET_TRACK_INFO_PLUGIN_SYMBOL
wxString GetTrackInfoCommand::ManualPage ( )
inlineoverridevirtual

Reimplemented from AudacityCommand.

Definition at line 35 of file GetTrackInfoCommand.h.

35 {return wxT("Extra_Menu:_Tools#get_track_info");};
void GetTrackInfoCommand::PopulateOrExchange ( ShuttleGui S)
override

Definition at line 48 of file GetTrackInfoCommand.cpp.

References _(), ShuttleGui::AddSpace(), ShuttleGuiBase::EndMultiColumn(), LocalizedStrings(), mInfoType, nTypes, ShuttleGuiBase::StartMultiColumn(), and ShuttleGuiBase::TieChoice().

49 {
50  auto types = LocalizedStrings( kTypes, nTypes );
51  S.AddSpace(0, 5);
52 
53  S.StartMultiColumn(2, wxALIGN_CENTER);
54  {
55  S.TieChoice( _("Types:"), mInfoType, &types);
56  }
57  S.EndMultiColumn();
58 }
wxChoice * TieChoice(const wxString &Prompt, WrappedType &WrappedRef, const wxArrayString *pChoices)
wxArrayString LocalizedStrings(const IdentInterfaceSymbol strings[], size_t nStrings)
Definition: Internat.cpp:303
void EndMultiColumn()
const int nTypes
kTypes
Definition: Noise.cpp:30
void StartMultiColumn(int nCols, int PositionFlags=wxALIGN_LEFT)
_("Move Track &Down")+wxT("\t")+(GetActiveProject() -> GetCommandManager() ->GetKeyFromName(wxT("TrackMoveDown")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveTopID, _("Move Track to &Top")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveTop")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveBottomID, _("Move Track to &Bottom")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveBottom")).Raw()), OnMoveTrack)#define SET_TRACK_NAME_PLUGIN_SYMBOLclass SetTrackNameCommand:public AudacityCommand
wxSizerItem * AddSpace(int width, int height)

Member Data Documentation

int GetTrackInfoCommand::mInfoType

Definition at line 39 of file GetTrackInfoCommand.h.

Referenced by DefineParams(), GetTrackInfoCommand(), and PopulateOrExchange().


The documentation for this class was generated from the following files: