MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / AppUI

Method AppUI

App/AppUI.cpp:47–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45using namespace SigDigger;
46
47AppUI::AppUI(QMainWindow *owner)
48{
49 this->main = new Ui_MainWindow();
50
51 this->main->setupUi(owner);
52
53 this->timeToolbar = new QToolBar("Time controls");
54 this->timeSlider = new QTimeSlider(nullptr);
55
56 this->timeToolbar->setAllowedAreas(Qt::ToolBarArea::AllToolBarAreas);
57 this->timeToolbar->setMovable(false);
58
59 owner->addToolBarBreak(Qt::TopToolBarArea);
60 owner->addToolBar(Qt::TopToolBarArea, timeToolbar);
61
62 this->timeToolbar->addWidget(this->timeSlider);
63
64 // In MacOS X there is already a system feature to show windows in full
65 // screen, and therefore this option is not needed.
66#ifdef __APPLE__
67 delete this->main->action_Full_screen;
68 this->main->action_Full_screen = nullptr;
69#endif // __APPLE__
70
71 this->spectrum = new MainSpectrum(owner);
72 this->quickConnectDialog = new QuickConnectDialog(owner);
73 this->aboutDialog = new AboutDialog(owner);
74 this->deviceDialog = new DeviceDialog(owner);
75 this->panoramicDialog = new PanoramicDialog(owner);
76 this->logDialog = new LogDialog(owner);
77 this->backgroundTasksDialog = new BackgroundTasksDialog(owner);
78 this->addBookmarkDialog = new AddBookmarkDialog(owner);
79 this->bookmarkManagerDialog = new BookmarkManagerDialog(owner);
80}
81
82void
83AppUI::postLoadInit(QMainWindow *owner)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected