1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-13 08:06:32 +01:00

Add code to capture command List

Capture the commands and key bindings to debug channel:
a) From the menus
b) from the preferences.
This commit is contained in:
James Crook
2017-03-23 18:38:28 +00:00
parent a07bf9c325
commit 3ffcc29bf6
2 changed files with 12 additions and 1 deletions

View File

@@ -275,13 +275,19 @@ void ExploreMenu( wxMenu * pMenu, int Id, int depth ){
size_t lcnt = list.GetCount();
wxMenuItem * item;
wxString Label;
wxString Accel;
for (size_t lndx = 0; lndx < lcnt; lndx++) {
item = list.Item(lndx)->GetData();
Label = item->GetItemLabelText();
Accel = item->GetItemLabel();
if( Accel.Contains("\t") )
Accel = Accel.AfterLast('\t');
else
Accel = "";
if( item->IsSeparator() )
Label = "----";
wxLogDebug("%2i: %s", depth, Label );
wxLogDebug("%2i,%s,%s", depth, Label,Accel );
if (item->IsSubMenu()) {
pMenu = item->GetSubMenu();
ExploreMenu( pMenu, item->GetId(), depth+1 );