Audacity  2.2.0
GetAllMenuCommands.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 
9 ******************************************************************//*******************************************************************/
19 
20 #ifndef __GETALLMENUCOMMANDS__
21 #define __GETALLMENUCOMMANDS__
22 
23 #include "Command.h"
24 #include "CommandType.h"
25 
26 class GetAllMenuCommandsType final : public CommandType
27 {
28 public:
29  wxString BuildName() override;
30  void BuildSignature(CommandSignature &signature) override;
31  CommandHolder Create(std::unique_ptr<CommandOutputTarget> &&target) override;
32 };
33 
35 {
36 public:
38  std::unique_ptr<CommandOutputTarget> &&target)
39  : CommandImplementation(type, std::move(target))
40  { }
41 
43  { }
44 
45  bool Apply(CommandExecutionContext context) override;
46 };
47 
48 #endif /* End of include guard: __GETALLMENUCOMMANDS__ */
bool Apply(CommandExecutionContext context) override
Definition: GetAllMenuCommands.cpp:36
std::shared_ptr< Command > CommandHolder
Definition: AppCommandEvent.h:26
Contains declarations for CommandType class.
Contains declaration of Command base class.
void BuildSignature(CommandSignature &signature) override
Postcondition: signature is a 'signature' map containing parameter.
Definition: GetAllMenuCommands.cpp:25
Definition: GetAllMenuCommands.h:26
GetAllMenuCommands(CommandType &type, std::unique_ptr< CommandOutputTarget > &&target)
Definition: GetAllMenuCommands.h:37
CommandHolder Create(std::unique_ptr< CommandOutputTarget > &&target) override
Definition: GetAllMenuCommands.cpp:31
Definition: Command.h:108
Base class for containing data common to all commands of a given type. Also acts as a factory...
Definition: CommandType.h:29
wxString BuildName() override
Definition: GetAllMenuCommands.cpp:20
Represents a context to which a command may be applied.
Definition: Command.h:40
Command which outputs a list of available menu commands on the status channel.
Definition: GetAllMenuCommands.h:34
virtual ~GetAllMenuCommands()
Definition: GetAllMenuCommands.h:42
Class that maps parameter names to default values and validators.
Definition: CommandSignature.h:28