Audacity  2.2.2
GetTrackInfoCommand.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  Audacity - A Digital Audio Editor
4  Copyright 1999-2009 Audacity Team
5  License: wxwidgets
6 
7  Dan Horgan
8  Marty Goddard
9 ******************************************************************//*******************************************************************/
15 
16 #ifndef __GETTRACKINFOCOMMAND__
17 #define __GETTRACKINFOCOMMAND__
18 
19 #include "Command.h"
20 #include "CommandType.h"
21 
22 #define GET_TRACK_INFO_PLUGIN_SYMBOL IdentInterfaceSymbol{ XO("Get Track Info") }
23 
25 {
26 public:
28  // CommandDefinitionInterface overrides
30  wxString GetDescription() override {return _("Gets track values as JSON.");};
31  bool DefineParams( ShuttleParams & S ) override;
32  void PopulateOrExchange(ShuttleGui & S) override;
33 
34  // AudacityCommand overrides
35  wxString ManualPage() override {return wxT("Extra_Menu:_Tools#get_track_info");};
36 
37  bool Apply(const CommandContext &context ) override;
38 public:
39  int mInfoType;
40 };
41 
42 #endif /* End of include guard: __GETTRACKINFOCOMMAND__ */
Obsolete. GetInfo now does it.
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI...
Definition: ShuttleGui.h:409
Contains declarations for CommandType class.
bool DefineParams(ShuttleParams &S) override
Contains declaration of Command base class.
CommandContext provides addiitonal information to an 'Apply()' command. It provides the project...
Shuttle that deals with parameters. This is a base class with lots of virtual functions that do nothi...
Definition: Shuttle.h:60
wxString ManualPage() override
void PopulateOrExchange(ShuttleGui &S) override
IdentInterfaceSymbol pairs a persistent string identifier used internally with an optional...
Base class for command in Audacity.
#define GET_TRACK_INFO_PLUGIN_SYMBOL
wxString GetDescription() override
_("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 GetSymbol() override
virtual bool Apply()