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
|
|
|
|
|
|
|
|
Dan Horgan
|
|
|
|
James Crook
|
|
|
|
|
|
|
|
******************************************************************//**
|
|
|
|
|
|
|
|
\file SetProjectCommand.h
|
|
|
|
\brief Declarations of SetProjectCommand and SetProjectCommandType classes
|
|
|
|
|
|
|
|
*//*******************************************************************/
|
|
|
|
|
|
|
|
#ifndef __SET_PROJECT_COMMAND__
|
|
|
|
#define __SET_PROJECT_COMMAND__
|
|
|
|
|
|
|
|
#include "Command.h"
|
|
|
|
#include "CommandType.h"
|
|
|
|
|
|
|
|
class SetProjectCommand : public AudacityCommand
|
|
|
|
{
|
|
|
|
public:
|
2019-06-24 14:40:45 +00:00
|
|
|
static const ComponentInterfaceSymbol Symbol;
|
|
|
|
|
2018-02-09 19:12:25 +00:00
|
|
|
SetProjectCommand();
|
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 project.");};
|
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_project";}
|
2018-02-09 19:12:25 +00:00
|
|
|
|
|
|
|
bool Apply(const CommandContext & context) override;
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
wxString mName;
|
|
|
|
int mPosX;
|
|
|
|
int mPosY;
|
|
|
|
int mWidth;
|
|
|
|
int mHeight;
|
2018-10-15 20:45:10 +00:00
|
|
|
double mRate;
|
2018-02-09 19:12:25 +00:00
|
|
|
|
|
|
|
// For tracking optional parameters.
|
|
|
|
bool bHasName;
|
|
|
|
bool bHasSizing;
|
2018-10-15 20:45:10 +00:00
|
|
|
bool bHasRate;
|
2018-02-09 19:12:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* End of include guard: __SETTRACKINFOCOMMAND__ */
|