2018-02-09 19:12:25 +00:00
|
|
|
/**********************************************************************
|
|
|
|
|
|
|
|
Audacity - A Digital Audio Editor
|
2018-02-16 20:34:30 +00:00
|
|
|
Copyright 1999-2018 Audacity Team
|
2018-02-09 19:12:25 +00:00
|
|
|
License: wxwidgets
|
|
|
|
|
|
|
|
James Crook
|
|
|
|
|
|
|
|
******************************************************************//**
|
|
|
|
|
|
|
|
\file SetClipCommand.h
|
|
|
|
\brief Declarations of SetClipCommand and SetClipCommandType classes
|
|
|
|
|
|
|
|
*//*******************************************************************/
|
|
|
|
|
|
|
|
#ifndef __SET_CLIP_COMMAND__
|
|
|
|
#define __SET_CLIP_COMMAND__
|
|
|
|
|
2018-03-19 11:59:33 +00:00
|
|
|
#include "SetTrackInfoCommand.h"
|
2018-02-09 19:12:25 +00:00
|
|
|
|
2018-03-19 11:59:33 +00:00
|
|
|
class SetClipCommand : public SetTrackBase
|
2018-02-09 19:12:25 +00:00
|
|
|
{
|
|
|
|
public:
|
2019-06-24 14:40:45 +00:00
|
|
|
static const ComponentInterfaceSymbol Symbol;
|
|
|
|
|
2018-02-09 19:12:25 +00:00
|
|
|
SetClipCommand();
|
2018-11-02 15:31:44 +00:00
|
|
|
// ComponentInterface overrides
|
2019-06-24 14:40:45 +00:00
|
|
|
ComponentInterfaceSymbol GetSymbol() override {return Symbol;};
|
2019-12-08 18:53:48 +00:00
|
|
|
TranslatableString GetDescription() override {return XO("Sets various values for a clip.");};
|
2018-02-09 19:12:25 +00:00
|
|
|
bool DefineParams( ShuttleParams & S ) override;
|
|
|
|
void PopulateOrExchange(ShuttleGui & S) override;
|
|
|
|
|
|
|
|
// AudacityCommand overrides
|
2021-06-06 16:18:35 +00:00
|
|
|
ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_I#set_clip";}
|
2018-03-19 11:59:33 +00:00
|
|
|
bool ApplyInner( const CommandContext & context, Track * t ) override;
|
2018-02-09 19:12:25 +00:00
|
|
|
|
|
|
|
public:
|
2018-02-16 20:34:30 +00:00
|
|
|
double mContainsTime;
|
2018-02-09 19:12:25 +00:00
|
|
|
int mColour;
|
|
|
|
double mT0;
|
|
|
|
|
|
|
|
// For tracking optional parameters.
|
2018-02-16 20:34:30 +00:00
|
|
|
bool bHasContainsTime;
|
2018-02-09 19:12:25 +00:00
|
|
|
bool bHasColour;
|
|
|
|
bool bHasT0;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* End of include guard: __SETTRACKINFOCOMMAND__ */
|