Open thanasipantazides opened 1 year ago
Need to be careful that SystemConfiguration
is init'ed only once, then passed as reference to all others. Maybe need to structure application startup process.
Control flows like this:
flowchart TD
QMainWindow -- inits --> DetectorGridDisplay
QMainWindow -- inits --> FormatterInterface
QMainWindow -- inits --> SystemConfiguration
DetectorGridDisplay -- inits --> DetectorBackend
SystemConfiguration -- arg --> DetectorBackend
FormatterInterface -- arg --> DetectorBackend
SystemConfiguration -- arg --> SettingsPanel
SettingsPanel -- inits --> SettingsDialog
SettingsDialog -- modifies --> SystemConfiguration
DetectorBackend -- arg --> DetectorView
Improvements for Settings functionality
SystemConfiguration
or something?). Maybe divide into flight/nonflight.SettingsDialog
with a defaultsettings.json
file.FilePathLoad
QFileDialog
s.settings.json
. The selectedsettings.json
file should be used again after closing and opening the application.FormatterUDPInterface
should ingestSystemConfiguration
(or whatever it's called) and use to try opening sockets using the configured address/port.DetectorBackend
class that wrapsFormatterUDPInterface
andSystemConfiguration
(and possibly others)? Then pass it to allDetector...View
objects.