Audacity  2.2.2
MessageCommand.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  Audacity - A Digital Audio Editor
4  Copyright 1999-2009 Audacity Team
5  File License: wxWidgets
6 
7  Dan Horgan
8 
9 ******************************************************************//***************************************************************//*******************************************************************/
20 
21 #ifndef __MESSAGE_COMMAND__
22 #define __MESSAGE_COMMAND__
23 
24 #include "CommandType.h"
25 #include "Command.h"
26 
27 #define MESSAGE_PLUGIN_SYMBOL IdentInterfaceSymbol{ XO("Message") }
28 
30 {
31 public:
32  // CommandDefinitionInterface overrides
34  wxString GetDescription() override {return _("Echos a message.");};
35  bool DefineParams( ShuttleParams & S ) override;
36  void PopulateOrExchange(ShuttleGui & S) override;
37  bool Apply(const CommandContext & context) override;
38 
39  // AudacityCommand overrides
40  wxString ManualPage() override {return wxT("Message");};
41 public:
42  wxString mMessage;
43 };
44 
45 
46 #endif /* End of include guard: __MESSAGECOMMAND__ */
IdentInterfaceSymbol GetSymbol() override
void PopulateOrExchange(ShuttleGui &S) override
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI...
Definition: ShuttleGui.h:409
bool DefineParams(ShuttleParams &S) override
Contains declarations for CommandType class.
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
Command to get a message response. Used for testing, and used internally to create messages for forwa...
wxString mMessage
#define MESSAGE_PLUGIN_SYMBOL
IdentInterfaceSymbol pairs a persistent string identifier used internally with an optional...
Base class for command in Audacity.
_("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
wxString GetDescription() override
virtual bool Apply()