/********************************************************************** Audacity - A Digital Audio Editor Copyright 1999-2018 Audacity Team License: wxwidgets James Crook ******************************************************************//** \file SetClipCommand.h \brief Declarations of SetClipCommand and SetClipCommandType classes *//*******************************************************************/ #ifndef __SET_CLIP_COMMAND__ #define __SET_CLIP_COMMAND__ #include "Command.h" #include "CommandType.h" #include "SetTrackInfoCommand.h" #define SET_CLIP_PLUGIN_SYMBOL IdentInterfaceSymbol{ XO("Set Clip") } class SetClipCommand : public SetTrackBase { public: SetClipCommand(); // CommandDefinitionInterface overrides IdentInterfaceSymbol GetSymbol() override {return SET_CLIP_PLUGIN_SYMBOL;}; wxString GetDescription() override {return _("Sets various values for a clip.");}; bool DefineParams( ShuttleParams & S ) override; void PopulateOrExchange(ShuttleGui & S) override; // AudacityCommand overrides wxString ManualPage() override {return wxT("Extra_Menu:_Tools#set_clip");}; bool ApplyInner( const CommandContext & context, Track * t ) override; public: double mContainsTime; int mColour; double mT0; // For tracking optional parameters. bool bHasContainsTime; bool bHasColour; bool bHasT0; }; #endif /* End of include guard: __SETTRACKINFOCOMMAND__ */