| 1994 | } |
| 1995 | |
| 1996 | bool AppFrame::actionOnMenuSetPPM(wxCommandEvent &event) { |
| 1997 | if (event.GetId() == wxID_SET_PPM) { |
| 1998 | long ofs = wxGetNumberFromUser( |
| 1999 | "Frequency correction for device in PPM.\ni.e. -51 for -51 PPM\n\nNote: you can adjust PPM interactively\nby holding ALT over the frequency tuning bar.\n", |
| 2000 | "Parts per million (PPM)", |
| 2001 | "Frequency Correction", wxGetApp().getPPM(), -1000, 1000, this); |
| 2002 | wxGetApp().setPPM(ofs); |
| 2003 | |
| 2004 | settingsMenuItems[wxID_SET_PPM]->SetItemLabel( |
| 2005 | getSettingsLabel("Device PPM", to_string(wxGetApp().getPPM()), "ppm")); |
| 2006 | |
| 2007 | return true; |
| 2008 | } |
| 2009 | return false; |
| 2010 | } |
| 2011 | |
| 2012 | bool AppFrame::actionOnMenuSDRDevices(wxCommandEvent &event) { |
| 2013 | if (event.GetId() == wxID_SDR_DEVICES) { |