MCPcopy Create free account
hub / github.com/cjcliffe/CubicSDR / initMenuBar

Method initMenuBar

src/AppFrame.cpp:334–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332}
333
334void 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
378void AppFrame::initConfigurationSettings() {
379

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected