1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-01 17:34:24 +01:00

Redo CommandManager::DescribeCommandsAndShortcuts with pairs...

... Later we may make other types for the members of that pair.
This commit is contained in:
Paul Licameli
2018-01-08 13:57:51 -05:00
parent 82952ac998
commit 6967925e48
12 changed files with 91 additions and 84 deletions

View File

@@ -310,13 +310,15 @@ void TranscriptionToolBar::RegenerateTooltips()
},
};
std::vector<wxString> commands;
LocalizedCommandNameVector commands;
for (const auto &entry : table) {
commands.clear();
commands.push_back(wxGetTranslation(entry.untranslatedLabel));
commands.push_back(entry.commandName);
commands.push_back(wxGetTranslation(entry.untranslatedLabel2));
commands.push_back(entry.commandName2);
commands.push_back( LocalizedCommandName(
wxGetTranslation(entry.untranslatedLabel), entry.commandName
) );
commands.push_back( LocalizedCommandName(
wxGetTranslation(entry.untranslatedLabel2), entry.commandName2
) );
ToolBar::SetButtonToolTip(*mButtons[entry.tool], commands);
}