mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-21 14:02:57 +02:00
Add DragCommand. Default Y/N on optional fields. Open/Save project items.
- More Y/N in Optional, making it easier to omit parameters. - AT removed from Envelope, since T already gives it.
This commit is contained in:
committed by
Paul Licameli
parent
bcf0865c1a
commit
e3ef968d57
59
src/commands/DragCommand.h
Normal file
59
src/commands/DragCommand.h
Normal file
@@ -0,0 +1,59 @@
|
||||
/**********************************************************************
|
||||
|
||||
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"
|
||||
|
||||
#define DRAG_PLUGIN_SYMBOL XO("Drag")
|
||||
|
||||
class DragCommand : public AudacityCommand
|
||||
{
|
||||
public:
|
||||
DragCommand();
|
||||
// CommandDefinitionInterface overrides
|
||||
wxString GetSymbol() override {return DRAG_PLUGIN_SYMBOL;};
|
||||
wxString GetDescription() override {return _("Drags mouse from one place to another.");};
|
||||
bool DefineParams( ShuttleParams & S ) override;
|
||||
void PopulateOrExchange(ShuttleGui & S) override;
|
||||
|
||||
// AudacityCommand overrides
|
||||
wxString ManualPage() override {return wxT("Extra_Menu:_Automation#drag");};
|
||||
|
||||
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__ */
|
Reference in New Issue
Block a user