1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Each command class registers itself

This commit is contained in:
Paul Licameli
2019-01-17 11:45:51 -05:00
parent 0ca5775234
commit 2522459637
19 changed files with 105 additions and 0 deletions

View File

@@ -17,6 +17,7 @@
#include "../Audacity.h"
#include "ImportExportCommands.h"
#include "LoadCommands.h"
#include "../ProjectFileManager.h"
#include "../ViewInfo.h"
#include "../export/Export.h"
@@ -27,6 +28,8 @@
const ComponentInterfaceSymbol ImportCommand::Symbol
{ XO("Import2") };
namespace{ BuiltinCommandsModule::Registration< ImportCommand > reg; }
bool ImportCommand::DefineParams( ShuttleParams & S ){
S.Define( mFileName, wxT("Filename"), "" );
return true;
@@ -58,6 +61,8 @@ bool ExportCommand::DefineParams( ShuttleParams & S ){
const ComponentInterfaceSymbol ExportCommand::Symbol
{ XO("Export2") };
namespace{ BuiltinCommandsModule::Registration< ExportCommand > reg2; }
void ExportCommand::PopulateOrExchange(ShuttleGui & S)
{
S.AddSpace(0, 5);