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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user