mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-24 07:13:48 +02:00
Make Message command into an AudacityCommand.
This commit is contained in:
committed by
Paul Licameli
parent
edf90d6e2c
commit
f7fe295651
@@ -18,26 +18,29 @@
|
||||
|
||||
*//*******************************************************************/
|
||||
|
||||
#ifndef __MESSAGECOMMAND__
|
||||
#define __MESSAGECOMMAND__
|
||||
#ifndef __MESSAGE_COMMAND__
|
||||
#define __MESSAGE_COMMAND__
|
||||
|
||||
#include "Command.h"
|
||||
#include "CommandType.h"
|
||||
#include "Command.h"
|
||||
|
||||
class MessageCommandType final : public OldStyleCommandType
|
||||
#define MESSAGE_PLUGIN_SYMBOL XO("Message")
|
||||
|
||||
class MessageCommand : public AudacityCommand
|
||||
{
|
||||
public:
|
||||
wxString BuildName() override;
|
||||
void BuildSignature(CommandSignature &signature) override;
|
||||
OldStyleCommandPointer Create(std::unique_ptr<CommandOutputTargets> &&target) override;
|
||||
// CommandDefinitionInterface overrides
|
||||
wxString GetSymbol() override {return MESSAGE_PLUGIN_SYMBOL;};
|
||||
wxString GetDescription() override {return _("Echos a message.");};
|
||||
bool DefineParams( ShuttleParams & S ) override;
|
||||
void PopulateOrExchange(ShuttleGui & S) override;
|
||||
bool Apply(const CommandContext & context) override;
|
||||
|
||||
// AudacityCommand overrides
|
||||
wxString ManualPage() override {return wxT("Message");};
|
||||
public:
|
||||
wxString mMessage;
|
||||
};
|
||||
|
||||
class MessageCommand final : public CommandImplementation
|
||||
{
|
||||
public:
|
||||
MessageCommand(OldStyleCommandType &type)
|
||||
: CommandImplementation(type) {}
|
||||
bool Apply(const CommandContext &context ) override;
|
||||
};
|
||||
|
||||
#endif /* End of include guard: __MESSAGECOMMAND__ */
|
||||
|
||||
Reference in New Issue
Block a user