1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-21 14:02:57 +02:00

AddItemList takes IdentInterfaceSymbol (untranslated) ...

... so that we can use a static constant table of names, which can't use
macro _ in initializers.
This commit is contained in:
Paul Licameli
2018-10-19 10:39:52 -04:00
parent 1b05ba9a78
commit 27aa59ed50
4 changed files with 16 additions and 14 deletions

View File

@@ -772,7 +772,7 @@ void CommandManager::AddItem(const wxChar *name,
/// When you call Enable on this command name, it will enable or disable
/// all of the items at once.
void CommandManager::AddItemList(const wxString & name,
const TranslatedInternalString items[],
const IdentInterfaceSymbol items[],
size_t nItems,
CommandHandlerFinder finder,
CommandFunctorPointer callback,
@@ -780,9 +780,10 @@ void CommandManager::AddItemList(const wxString & name,
bool bIsEffect)
{
for (size_t i = 0, cnt = nItems; i < cnt; i++) {
auto translated = items[i].Translation();
CommandListEntry *entry = NewIdentifier(name,
items[i].TranslatedForMenu(),
items[i].TranslatedForMenu(),
translated,
translated,
// No means yet to specify !
false,
CurrentMenu(),

View File

@@ -179,7 +179,7 @@ class AUDACITY_DLL_API CommandManager final : public XMLTagHandler
};
void AddItemList(const wxString & name,
const TranslatedInternalString items[],
const IdentInterfaceSymbol items[],
size_t nItems,
CommandHandlerFinder finder,
CommandFunctorPointer callback,