1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-14 09:03:54 +01:00

Eliminate one of the ## macro hacks in LoadCommands

This commit is contained in:
Paul Licameli
2019-06-24 10:40:45 -04:00
parent 8832621b0a
commit 0ca5775234
36 changed files with 165 additions and 78 deletions

View File

@@ -175,8 +175,6 @@ END_POPUP_MENU()
#define SET_TRACK_NAME_PLUGIN_SYMBOL ComponentInterfaceSymbol{ XO("Set Track Name") }
// An example of using an AudacityCommand simply to create a dialog.
// We can add additional functions later, if we want to make it
// available to scripting.
@@ -184,9 +182,11 @@ END_POPUP_MENU()
class SetTrackNameCommand : public AudacityCommand
{
public:
static const ComponentInterfaceSymbol Symbol;
// ComponentInterface overrides
ComponentInterfaceSymbol GetSymbol() override
{return SET_TRACK_NAME_PLUGIN_SYMBOL;};
{ return Symbol; }
//TranslatableString GetDescription() override {return XO("Sets the track name.");};
//bool DefineParams( ShuttleParams & S ) override;
void PopulateOrExchange(ShuttleGui & S) override;
@@ -198,6 +198,9 @@ public:
wxString mName;
};
const ComponentInterfaceSymbol SetTrackNameCommand::Symbol
{ XO("Set Track Name") };
void SetTrackNameCommand::PopulateOrExchange(ShuttleGui & S)
{
S.AddSpace(0, 5);