mirror of
https://github.com/cookiengineer/audacity
synced 2025-09-23 15:41:09 +02: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:
parent
a07bf9c325
commit
3ffcc29bf6
@ -275,13 +275,19 @@ void ExploreMenu( wxMenu * pMenu, int Id, int depth ){
|
|||||||
size_t lcnt = list.GetCount();
|
size_t lcnt = list.GetCount();
|
||||||
wxMenuItem * item;
|
wxMenuItem * item;
|
||||||
wxString Label;
|
wxString Label;
|
||||||
|
wxString Accel;
|
||||||
|
|
||||||
for (size_t lndx = 0; lndx < lcnt; lndx++) {
|
for (size_t lndx = 0; lndx < lcnt; lndx++) {
|
||||||
item = list.Item(lndx)->GetData();
|
item = list.Item(lndx)->GetData();
|
||||||
Label = item->GetItemLabelText();
|
Label = item->GetItemLabelText();
|
||||||
|
Accel = item->GetItemLabel();
|
||||||
|
if( Accel.Contains("\t") )
|
||||||
|
Accel = Accel.AfterLast('\t');
|
||||||
|
else
|
||||||
|
Accel = "";
|
||||||
if( item->IsSeparator() )
|
if( item->IsSeparator() )
|
||||||
Label = "----";
|
Label = "----";
|
||||||
wxLogDebug("%2i: %s", depth, Label );
|
wxLogDebug("%2i,%s,%s", depth, Label,Accel );
|
||||||
if (item->IsSubMenu()) {
|
if (item->IsSubMenu()) {
|
||||||
pMenu = item->GetSubMenu();
|
pMenu = item->GetSubMenu();
|
||||||
ExploreMenu( pMenu, item->GetId(), depth+1 );
|
ExploreMenu( pMenu, item->GetId(), depth+1 );
|
||||||
|
@ -351,6 +351,11 @@ KeyView::SetView(ViewByType type)
|
|||||||
SelectNode(index);
|
SelectNode(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int nLines = mLines.GetCount();
|
||||||
|
for(int i=0;i<nLines;i++){
|
||||||
|
wxLogDebug( "%i,%i,%s,%s", i, mLines[i]->depth, mLines[i]->label, mLines[i]->key );
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user