| 332 | } |
| 333 | |
| 334 | void AppFrame::initMenuBar() {// File Menu |
| 335 | menuBar = new wxMenuBar; |
| 336 | fileMenu = makeFileMenu(); |
| 337 | menuBar->Append(fileMenu, wxT("&File")); |
| 338 | |
| 339 | // Settings Menu |
| 340 | settingsMenu = new wxMenu; |
| 341 | menuBar->Append(settingsMenu, wxT("&Settings")); |
| 342 | |
| 343 | // Sample Rate Menu |
| 344 | sampleRateMenu = new wxMenu; |
| 345 | menuBar->Append(sampleRateMenu, wxT("Sample &Rate")); |
| 346 | |
| 347 | // Audio Sample Rate Menu |
| 348 | menuBar->Append(makeAudioSampleRateMenu(), wxT("Audio &Sample Rate")); |
| 349 | |
| 350 | //Add a Recording menu |
| 351 | recordingMenu = makeRecordingMenu(); |
| 352 | menuBar->Append(recordingMenu, wxT("Recordin&g")); |
| 353 | updateRecordingMenu(); |
| 354 | |
| 355 | #ifdef USE_HAMLIB |
| 356 | rigPortDialog = nullptr; |
| 357 | |
| 358 | // Rig Menu |
| 359 | rigMenu = makeRigMenu(); |
| 360 | menuBar->Append(rigMenu, wxT("&Rig Control")); |
| 361 | #endif |
| 362 | |
| 363 | // Display Menu |
| 364 | displayMenu = makeDisplayMenu(); |
| 365 | menuBar->Append(displayMenu, wxT("&Display")); |
| 366 | |
| 367 | SetMenuBar(menuBar); |
| 368 | |
| 369 | wxAcceleratorEntry entries[3]; |
| 370 | entries[0].Set(wxACCEL_CTRL, (int) 'O', wxID_OPEN); |
| 371 | entries[1].Set(wxACCEL_CTRL, (int) 'S', wxID_SAVE); |
| 372 | entries[2].Set(wxACCEL_CTRL, (int) 'A', wxID_SAVEAS); |
| 373 | |
| 374 | wxAcceleratorTable accel(3, entries); |
| 375 | SetAcceleratorTable(accel); |
| 376 | } |
| 377 | |
| 378 | void AppFrame::initConfigurationSettings() { |
| 379 |
nothing calls this directly
no outgoing calls
no test coverage detected