| 861 | } |
| 862 | |
| 863 | void 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 | |
| 887 | bool KeyConfigPrefs::Commit() |
| 888 | { |