Audacity
3.2.0
src
commands
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
23
class
SetProjectCommand
:
public
AudacityCommand
24
{
25
public
:
26
static
const
ComponentInterfaceSymbol
Symbol
;
27
28
SetProjectCommand
();
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
42
public
:
43
44
wxString
mName
;
45
int
mPosX
;
46
int
mPosY
;
47
int
mWidth
;
48
int
mHeight
;
49
double
mRate
;
50
51
// For tracking optional parameters.
52
bool
bHasName
;
53
bool
bHasSizing
;
54
bool
bHasRate
;
55
};
56
57
58
#endif
/* End of include guard: __SETTRACKINFOCOMMAND__ */
Command.h
Contains declaration of Command base class.
CommandType.h
Contains declarations for CommandType class.
XO
XO("Cut/Copy/Paste")
S
#define S(N)
Definition:
ToChars.cpp:64
AudacityCommand
Base class for command in Audacity.
Definition:
AudacityCommand.h:40
CommandContext
CommandContext provides additional information to an 'Apply()' command. It provides the project,...
Definition:
CommandContext.h:37
ComponentInterfaceSymbol
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
Definition:
ComponentInterfaceSymbol.h:27
SetProjectCommand
Command that sets project information.
Definition:
SetProjectCommand.h:24
SetProjectCommand::GetDescription
TranslatableString GetDescription() const override
Definition:
SetProjectCommand.h:31
SetProjectCommand::mWidth
int mWidth
Definition:
SetProjectCommand.h:47
SetProjectCommand::GetSymbol
ComponentInterfaceSymbol GetSymbol() const override
Definition:
SetProjectCommand.h:30
SetProjectCommand::mPosY
int mPosY
Definition:
SetProjectCommand.h:46
SetProjectCommand::mHeight
int mHeight
Definition:
SetProjectCommand.h:48
SetProjectCommand::bHasSizing
bool bHasSizing
Definition:
SetProjectCommand.h:53
SetProjectCommand::bHasName
bool bHasName
Definition:
SetProjectCommand.h:52
SetProjectCommand::SetProjectCommand
SetProjectCommand()
Definition:
SetProjectCommand.cpp:42
SetProjectCommand::VisitSettings
bool VisitSettings(SettingsVisitorBase< Const > &S)
Definition:
SetProjectCommand.cpp:47
SetProjectCommand::PopulateOrExchange
void PopulateOrExchange(ShuttleGui &S) override
Definition:
SetProjectCommand.cpp:63
SetProjectCommand::ManualPage
ManualPageID ManualPage() override
Definition:
SetProjectCommand.h:38
SetProjectCommand::bHasRate
bool bHasRate
Definition:
SetProjectCommand.h:54
SetProjectCommand::mName
wxString mName
Definition:
SetProjectCommand.h:44
SetProjectCommand::Symbol
static const ComponentInterfaceSymbol Symbol
Definition:
SetProjectCommand.h:26
SetProjectCommand::Apply
bool Apply(const CommandContext &context) override
Definition:
SetProjectCommand.cpp:84
SetProjectCommand::mRate
double mRate
Definition:
SetProjectCommand.h:49
SetProjectCommand::mPosX
int mPosX
Definition:
SetProjectCommand.h:45
SettingsVisitorBase
Visitor of effect or command parameters. This is a base class with lots of virtual functions that do ...
Definition:
SettingsVisitor.h:79
ShuttleGui
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition:
ShuttleGui.h:640
TaggedIdentifier< ManualPageIDTag >
TranslatableString
Holds a msgid for the translation catalog; may also bind format arguments.
Definition:
TranslatableString.h:32
Generated by
1.9.3