2018-02-17 13:29:46 +00:00
|
|
|
/**********************************************************************
|
|
|
|
|
|
|
|
Audacity - A Digital Audio Editor
|
|
|
|
Copyright 1999-2009 Audacity Team
|
|
|
|
License: wxwidgets
|
|
|
|
|
|
|
|
James Crook
|
|
|
|
|
|
|
|
******************************************************************//**
|
|
|
|
|
|
|
|
\file DragCommand.h
|
|
|
|
\brief Declarations of DragCommand and DragCommandType classes
|
|
|
|
|
|
|
|
*//*******************************************************************/
|
|
|
|
|
|
|
|
#ifndef __DRAG_COMMAND__
|
|
|
|
#define __DRAG_COMMAND__
|
|
|
|
|
|
|
|
#include "Command.h"
|
|
|
|
#include "CommandType.h"
|
|
|
|
|
|
|
|
class DragCommand : public AudacityCommand
|
|
|
|
{
|
|
|
|
public:
|
2019-06-24 14:40:45 +00:00
|
|
|
static const ComponentInterfaceSymbol Symbol;
|
|
|
|
|
2018-02-17 13:29:46 +00:00
|
|
|
DragCommand();
|
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("Drags mouse from one place to another.");};
|
2018-02-17 13:29:46 +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_II#move_mouse";}
|
2018-02-17 13:29:46 +00:00
|
|
|
|
|
|
|
bool Apply(const CommandContext & context) override;
|
|
|
|
|
|
|
|
public:
|
|
|
|
double mFromX;
|
|
|
|
double mFromY;
|
|
|
|
double mToX;
|
|
|
|
double mToY;
|
|
|
|
int mRelativeTo;
|
|
|
|
int mId;
|
|
|
|
wxString mWinName;
|
|
|
|
|
|
|
|
bool bHasFromX;
|
|
|
|
bool bHasFromY;
|
|
|
|
bool bHasToX;
|
|
|
|
bool bHasToY;
|
|
|
|
bool bHasRelativeTo;
|
|
|
|
bool bHasId;
|
|
|
|
bool bHasWinName;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* End of include guard: __DRAG_COMMAND__ */
|