mirror of
https://github.com/cookiengineer/audacity
synced 2025-09-19 09:30:52 +02:00
65 lines
1.9 KiB
C++
65 lines
1.9 KiB
C++
/**********************************************************************
|
|
|
|
Audacity: A Digital Audio Editor
|
|
Audacity(R) is copyright (c) 1999-2018 Audacity Team.
|
|
File License: wxwidgets
|
|
|
|
OpenSaveCommands.h
|
|
Stephen Parry
|
|
James Crook
|
|
|
|
******************************************************************//**
|
|
|
|
\class OpenProjectCommand
|
|
\brief Command for opening an Audacity project
|
|
|
|
\class SaveProjectCommand
|
|
\brief Command for saving an Audacity project
|
|
|
|
*//*******************************************************************/
|
|
|
|
#include "Command.h"
|
|
#include "CommandType.h"
|
|
|
|
#define OPEN_PROJECT_PLUGIN_SYMBOL IdentInterfaceSymbol{ XO("Open Project2") }
|
|
|
|
class OpenProjectCommand : public AudacityCommand
|
|
{
|
|
public:
|
|
// CommandDefinitionInterface overrides
|
|
IdentInterfaceSymbol GetSymbol() override {return OPEN_PROJECT_PLUGIN_SYMBOL;};
|
|
wxString GetDescription() override {return _("Opens a project.");};
|
|
bool DefineParams( ShuttleParams & S ) override;
|
|
void PopulateOrExchange(ShuttleGui & S) override;
|
|
bool Apply(const CommandContext & context) override;
|
|
|
|
// AudacityCommand overrides
|
|
wxString ManualPage() override {return wxT("Open");};
|
|
public:
|
|
wxString mFileName;
|
|
bool mbAddToHistory;
|
|
bool bHasAddToHistory;
|
|
};
|
|
|
|
#define SAVE_PROJECT_PLUGIN_SYMBOL IdentInterfaceSymbol{ XO("Save Project2") }
|
|
|
|
class SaveProjectCommand : public AudacityCommand
|
|
{
|
|
public:
|
|
// CommandDefinitionInterface overrides
|
|
IdentInterfaceSymbol GetSymbol() override {return SAVE_PROJECT_PLUGIN_SYMBOL;};
|
|
wxString GetDescription() override {return _("Saves a project.");};
|
|
bool DefineParams( ShuttleParams & S ) override;
|
|
void PopulateOrExchange(ShuttleGui & S) override;
|
|
bool Apply(const CommandContext & context) override;
|
|
|
|
// AudacityCommand overrides
|
|
wxString ManualPage() override {return wxT("Save");};
|
|
public:
|
|
wxString mFileName;
|
|
bool mbAddToHistory;
|
|
bool mbCompress;
|
|
bool bHasAddToHistory;
|
|
bool bHasCompress;
|
|
};
|