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

Adding EXPERIMENTAL_KEY_VIEW that provides a new keyboard binding view.

This commit is contained in:
lllucius
2013-10-01 06:00:13 +00:00
parent aad9d12c39
commit b0e65b57c2
10 changed files with 2791 additions and 68 deletions

View File

@@ -1155,7 +1155,9 @@ void CommandManager::GetAllCommandData(
wxArrayString &default_keys,
wxArrayString &labels,
wxArrayString &categories,
#if defined(EXPERIMENTAL_KEY_VIEW)
wxArrayString &prefixes,
#endif
bool includeMultis)
{
unsigned int i;
@@ -1168,7 +1170,9 @@ void CommandManager::GetAllCommandData(
default_keys.Add( mCommandList[i]->defaultKey);
labels.Add(mCommandList[i]->label);
categories.Add(mCommandList[i]->labelTop);
#if defined(EXPERIMENTAL_KEY_VIEW)
prefixes.Add(mCommandList[i]->labelPrefix);
#endif
}
else if( includeMultis )
{
@@ -1177,7 +1181,9 @@ void CommandManager::GetAllCommandData(
default_keys.Add( mCommandList[i]->defaultKey);
labels.Add(mCommandList[i]->label);
categories.Add(mCommandList[i]->labelTop);
#if defined(EXPERIMENTAL_KEY_VIEW)
prefixes.Add(mCommandList[i]->labelPrefix);
#endif
}
}
}

View File

@@ -195,7 +195,10 @@ class AUDACITY_DLL_API CommandManager: public XMLTagHandler
void GetAllCommandLabels(wxArrayString &labels, bool includeMultis);
void GetAllCommandData(
wxArrayString &names, wxArrayString &keys, wxArrayString &default_keys,
wxArrayString &labels, wxArrayString &categories, wxArrayString &prefixes,
wxArrayString &labels, wxArrayString &categories,
#if defined(EXPERIMENTAL_KEY_VIEW)
wxArrayString &prefixes,
#endif
bool includeMultis);
wxString GetLabelFromName(wxString name);