Refactor: Move all UI widget construction to module level

- Extract all QWidget/QLayout instances and property configuration to module level
- Group by element: constructor → properties for each widget
- Keep __init__ assembly-only: addWidget, addLayout, addStretch, signals
- Explicit naming for clarity: separator_vertical_fader_zone_left, etc
- Applies to: IO columns (MIDI IN/OUT, Transport, OSC), Preset Browser, Transport/Fader/Toggle rows, OSC feedback containers
- Pattern: Module = what it is; __init__ = where it goes
This commit is contained in:
Paul Lipscomb
2026-06-18 18:57:27 -04:00
parent a382c521a8
commit 460515ba0d
2 changed files with 821 additions and 512 deletions
+808 -499
View File
File diff suppressed because it is too large Load Diff
+5 -5
View File
@@ -1,5 +1,5 @@
{ {
"__last_used__": null, "__last_used__": "gay3",
"presets": { "presets": {
"1": { "1": {
"midi_port": "IAC Driver Bus 1", "midi_port": "IAC Driver Bus 1",
@@ -1027,7 +1027,7 @@
"hw_cc": null, "hw_cc": null,
"output_mode": "osc", "output_mode": "osc",
"osc_addr": "/play", "osc_addr": "/play",
"trigger_mode": "momentary" "trigger_mode": "toggle"
}, },
{ {
"uid": "e2e8eb84-c2c9-4060-a818-b087ebd5aabd", "uid": "e2e8eb84-c2c9-4060-a818-b087ebd5aabd",
@@ -1041,7 +1041,7 @@
"hw_cc": null, "hw_cc": null,
"output_mode": "osc", "output_mode": "osc",
"osc_addr": "/play", "osc_addr": "/play",
"trigger_mode": "momentary" "trigger_mode": "toggle"
}, },
{ {
"uid": "6b5bcaf7-1d01-4ccd-b23a-ebae8da57a7f", "uid": "6b5bcaf7-1d01-4ccd-b23a-ebae8da57a7f",
@@ -1055,7 +1055,7 @@
"hw_cc": null, "hw_cc": null,
"output_mode": "osc", "output_mode": "osc",
"osc_addr": "/play", "osc_addr": "/play",
"trigger_mode": "momentary" "trigger_mode": "toggle"
}, },
{ {
"uid": "2a1fcb50-b9f2-4c33-bce0-5bd5cadd9c46", "uid": "2a1fcb50-b9f2-4c33-bce0-5bd5cadd9c46",
@@ -1069,7 +1069,7 @@
"hw_cc": null, "hw_cc": null,
"output_mode": "osc", "output_mode": "osc",
"osc_addr": "/play", "osc_addr": "/play",
"trigger_mode": "momentary" "trigger_mode": "toggle"
} }
], ],
"browser": { "browser": {