mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-25 08:38:39 +02:00
... for functions in final classes. override is like const -- it's not necessary, but it helps the compiler to catch mistakes. There may be some overriding functions not explicitly declared virtual and I did not identify such cases, in which I might also add override.
49 lines
1.2 KiB
C++
49 lines
1.2 KiB
C++
/**********************************************************************
|
|
|
|
Audacity - A Digital Audio Editor
|
|
Copyright 1999-2009 Audacity Team
|
|
License: wxWidgets
|
|
|
|
Dan Horgan
|
|
|
|
******************************************************************//**
|
|
|
|
\file GetAllMenuCommands.h
|
|
\brief Contains declaration of GetAllMenuCommands class.
|
|
|
|
\class GetAllMenuCommands
|
|
\brief Command which outputs a list of available menu commands on the status
|
|
channel.
|
|
|
|
*//*******************************************************************/
|
|
|
|
#ifndef __GETALLMENUCOMMANDS__
|
|
#define __GETALLMENUCOMMANDS__
|
|
|
|
#include "Command.h"
|
|
#include "CommandType.h"
|
|
|
|
class GetAllMenuCommandsType final : public CommandType
|
|
{
|
|
public:
|
|
wxString BuildName() override;
|
|
void BuildSignature(CommandSignature &signature) override;
|
|
Command *Create(CommandOutputTarget *target) override;
|
|
};
|
|
|
|
class GetAllMenuCommands final : public CommandImplementation
|
|
{
|
|
public:
|
|
GetAllMenuCommands(CommandType &type,
|
|
CommandOutputTarget *target)
|
|
: CommandImplementation(type, target)
|
|
{ }
|
|
|
|
virtual ~GetAllMenuCommands()
|
|
{ }
|
|
|
|
bool Apply(CommandExecutionContext context) override;
|
|
};
|
|
|
|
#endif /* End of include guard: __GETALLMENUCOMMANDS__ */
|