ham-radio-software / D-Rats

D-Rats program for D-Star Ham Radios
https://iz2lxi.jimdofree.com/
Other
41 stars 12 forks source link

Refactor dratsconfig.py #287

Closed wb8tyw closed 3 weeks ago

wb8tyw commented 4 weeks ago

Refactor classes into individual modules to make future maintenance easier.

d_rats/mainapp.py: Adjust for new singleton DratsConfig class. Convert MainApp to be a singleton class. Adjust for config refactor. Fix to better tolerate syntax errors in D-Rats config file for radio definitions.

d_rats/mainwindow.py: d_rats/session_coordinator.py: d_rats/ui/test_message_popup_model.py: d_rats/map/mapdisplay.py: Adjust for refactored DratsConfig class.

d_rats/dratsconfig.py: Refactored from config.py and converted to singleton.

d_rats/config_defaults.py: d_rats/configui/drats*panel.py: d_rats/configui/config_exception.py: d_rats/configui/dratsconfigwidget.py: docs/source/d_rats.rst Refactored from config.py.

d_rats/ui/main_files.py: Change some noisy log messages to debug level.

docs/source/d_rats.configui.rst: New for the config refactor

debian_packages.sh: New for helping setup a Debian system for D-rats.

wb8tyw commented 4 weeks ago

Only minor changes, some startup log noise has been moved to debug level.

Most of this is preparation for putting enhancements into the configuration menus, to make it easier for future updates.

maurizioandreotti commented 4 weeks ago

Tested on win10 with mobaxterm - just to be sure the version i see in the info box is 0.4.1.dev24-ga6b7e1f-dirty

did some tests on basic features and all seems working.