Audacity 3.2.0
SetProjectCommand.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity - A Digital Audio Editor
4 Copyright 1999-2018 Audacity Team
5 License: wxwidgets
6
7 Dan Horgan
8 James Crook
9
10******************************************************************//*******************************************************************/
16
17#ifndef __SET_PROJECT_COMMAND__
18#define __SET_PROJECT_COMMAND__
19
20#include "Command.h"
21#include "CommandType.h"
22
24{
25public:
27
29 // ComponentInterface overrides
30 ComponentInterfaceSymbol GetSymbol() const override {return Symbol;};
31 TranslatableString GetDescription() const override {return XO("Sets various values for a project.");};
32 template<bool Const> bool VisitSettings( SettingsVisitorBase<Const> &S );
33 bool VisitSettings( SettingsVisitor & S ) override;
34 bool VisitSettings( ConstSettingsVisitor & S ) override;
35 void PopulateOrExchange(ShuttleGui & S) override;
36
37 // AudacityCommand overrides
38 ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_I#set_project";}
39
40 bool Apply(const CommandContext & context) override;
41
42public:
43
44 wxString mName;
45 int mPosX;
46 int mPosY;
47 int mWidth;
49 double mRate;
50
51// For tracking optional parameters.
55};
56
57
58#endif /* End of include guard: __SETTRACKINFOCOMMAND__ */
Contains declaration of Command base class.
Contains declarations for CommandType class.
XO("Cut/Copy/Paste")
#define S(N)
Definition: ToChars.cpp:64
Base class for command in Audacity.
CommandContext provides additional information to an 'Apply()' command. It provides the project,...
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
Command that sets project information.
TranslatableString GetDescription() const override
ComponentInterfaceSymbol GetSymbol() const override
bool VisitSettings(SettingsVisitorBase< Const > &S)
void PopulateOrExchange(ShuttleGui &S) override
ManualPageID ManualPage() override
static const ComponentInterfaceSymbol Symbol
bool Apply(const CommandContext &context) override
Visitor of effect or command parameters. This is a base class with lots of virtual functions that do ...
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:640
Holds a msgid for the translation catalog; may also bind format arguments.