1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-19 09:17:54 +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

@@ -21,6 +21,7 @@ parameters. It is for development purposes.
#include "../Audacity.h"
#include "Demo.h"
#include "LoadCommands.h"
#include <float.h>
@@ -35,6 +36,8 @@ parameters. It is for development purposes.
const ComponentInterfaceSymbol DemoCommand::Symbol
{ XO("Demo") };
namespace{ BuiltinCommandsModule::Registration< DemoCommand > reg; }
bool DemoCommand::DefineParams( ShuttleParams & S ){
S.Define( delay, wxT("Delay"), 1.0f, 0.001f, FLT_MAX, 1.0f );
S.Define( decay, wxT("Decay"), 0.5f, 0.0f, FLT_MAX, 1.0f );