MCPcopy Create free account
hub / github.com/audacity/audacity / OnViewBy

Method OnViewBy

src/prefs/KeyConfigPrefs.cpp:863–885  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

861}
862
863void KeyConfigPrefs::OnViewBy(wxCommandEvent & e)
864{
865 switch (e.GetId())
866 {
867 case ViewByTreeID:
868 mViewType = ViewByTree;
869 mFilterLabel->SetLabel(_("Searc&h:"));
870 break;
871
872 case ViewByNameID:
873 mViewType = ViewByName;
874 mFilterLabel->SetLabel(_("Searc&h:"));
875 break;
876
877 case ViewByKeyID:
878 mViewType = ViewByKey;
879 mFilterLabel->SetLabel(_("&Hotkey:"));
880 break;
881 }
882
883 mView->SetView(mViewType);
884 mFilter->SetName(wxStripMenuCodes(mFilterLabel->GetLabel()));
885}
886
887bool KeyConfigPrefs::Commit()
888{

Callers

nothing calls this directly

Calls 5

GetIdMethod · 0.80
SetViewMethod · 0.80
SetLabelMethod · 0.45
SetNameMethod · 0.45
GetLabelMethod · 0.45

Tested by

no test coverage detected