Audacity 3.2.0
ImportExportCommands.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4 Audacity(R) is copyright (c) 1999-2018 Audacity Team.
5 File License: wxwidgets
6
7 ImportExportCommands.h
8 Dan Horgan
9 James Crook
10
11******************************************************************//*******************************************************************/
20
21#include "Command.h"
22#include "CommandType.h"
23
24// Import
25
27{
28public:
30
31 // ComponentInterface overrides
32 ComponentInterfaceSymbol GetSymbol() const override {return Symbol;};
33 TranslatableString GetDescription() const override {return XO("Imports from a file.");};
34 template<bool Const> bool VisitSettings( SettingsVisitorBase<Const> &S );
35 bool VisitSettings( SettingsVisitor & S ) override;
36 bool VisitSettings( ConstSettingsVisitor & S ) override;
37 void PopulateOrExchange(ShuttleGui & S) override;
38 bool Apply(const CommandContext & context) override;
39
40 // AudacityCommand overrides
41 ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_II#import";}
42public:
43 wxString mFileName;
44};
45
47{
48public:
50
51 // ComponentInterface overrides
52 ComponentInterfaceSymbol GetSymbol() const override {return Symbol;};
53 TranslatableString GetDescription() const override {return XO("Exports to a file.");};
54 template<bool Const> bool VisitSettings( SettingsVisitorBase<Const> &S );
55 bool VisitSettings( SettingsVisitor & S ) override;
56 bool VisitSettings( ConstSettingsVisitor & S ) override;
57 void PopulateOrExchange(ShuttleGui & S) override;
58 bool Apply(const CommandContext & context) override;
59
60 // AudacityCommand overrides
61 ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_II#export";}
62public:
63 wxString mFileName;
65};
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 for exporting audio.
static const ComponentInterfaceSymbol Symbol
ComponentInterfaceSymbol GetSymbol() const override
bool Apply(const CommandContext &context) override
void PopulateOrExchange(ShuttleGui &S) override
TranslatableString GetDescription() const override
ManualPageID ManualPage() override
bool VisitSettings(SettingsVisitorBase< Const > &S)
Command for importing audio.
bool Apply(const CommandContext &context) override
ManualPageID ManualPage() override
bool VisitSettings(SettingsVisitorBase< Const > &S)
void PopulateOrExchange(ShuttleGui &S) override
ComponentInterfaceSymbol GetSymbol() const override
static const ComponentInterfaceSymbol Symbol
TranslatableString GetDescription() const 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.