56 lines
1.4 KiB
C++
56 lines
1.4 KiB
C++
/**********************************************************************
|
|
|
|
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"
|
|
|
|
#define SET_CLIP_PLUGIN_SYMBOL XO("Set Clip")
|
|
|
|
class SetClipCommand : public AudacityCommand
|
|
{
|
|
public:
|
|
SetClipCommand();
|
|
// CommandDefinitionInterface overrides
|
|
wxString 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 Apply(const CommandContext & context) override;
|
|
|
|
public:
|
|
int mTrackIndex;
|
|
int mChannelIndex;
|
|
double mContainsTime;
|
|
int mColour;
|
|
double mT0;
|
|
|
|
// For tracking optional parameters.
|
|
bool bHasTrackIndex;
|
|
bool bHasChannelIndex;
|
|
bool bHasContainsTime;
|
|
bool bHasColour;
|
|
bool bHasT0;
|
|
};
|
|
|
|
|
|
#endif /* End of include guard: __SETTRACKINFOCOMMAND__ */
|