1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-08 16:11:14 +02:00
audacity/src/commands/MessageCommand.cpp
martynshaw99 4ce2643d5f Remove the
// Indentation settings for Vim and Emacs
etc. lines from all files, as Campbell's patch (except for other changes to Languages.cpp)
2013-09-24 00:14:37 +00:00

41 lines
1004 B
C++

/**********************************************************************
Audacity - A Digital Audio Editor
Copyright 1999-2009 Audacity Team
License: wxwidgets
Dan Horgan
******************************************************************//**
\file MessageCommand.cpp
\brief Definitions for MessageCommand class
*//*******************************************************************/
#include "MessageCommand.h"
#include "CommandType.h"
wxString MessageCommandType::BuildName()
{
return wxT("Message");
}
void MessageCommandType::BuildSignature(CommandSignature &signature)
{
Validator *stringValidator = new Validator();
signature.AddParameter(wxT("MessageString"), wxT(""), stringValidator);
}
Command *MessageCommandType::Create(CommandOutputTarget *target)
{
return new MessageCommand(*this, target);
}
bool MessageCommand::Apply(CommandExecutionContext WXUNUSED(context))
{
wxString message = GetString(wxT("MessageString"));
Status(message);
return true;
}