text: /**********************************************************************
  
     Sneedacity - A Digital Audio Editor
     Copyright 1999-2018 Sneedacity Team
     License: wxwidgets
  
     Dan Horgan
  
  ******************************************************************//**
  
  \file MessageCommand.cpp
  \brief Definitions for MessageCommand class
  
  *//*******************************************************************/
  
  
  #include "MessageCommand.h"
  
  #include "LoadCommands.h"
  #include "CommandContext.h"
  #include "../Shuttle.h"
  #include "../ShuttleGui.h"
  
  const ComponentInterfaceSymbol MessageCommand::Symbol
  { XO("Message") };
  
  namespace{ BuiltinCommandsModule::Registration< MessageCommand > reg; }
  
  bool MessageCommand::DefineParams( ShuttleParams & S ){
     S.Define( mMessage, wxT("Text"),  "Some message" );
     return true;
  }
  
  void MessageCommand::PopulateOrExchange(ShuttleGui & S)
  {
     S.AddSpace(0, 5);
  
     S.StartMultiColumn(2, wxALIGN_CENTER);
     {
        S.TieTextBox(XXO("Text:"),mMessage,60);
     }
     S.EndMultiColumn();
  }
  
  bool MessageCommand::Apply(const CommandContext & context){
     context.Status( mMessage );
     return true;
  }
  