Files
cimtechniques-service-suite/cim_suite
andy 2a39bfec5f feat(iomodbus): spec 5.2 toolbar - suite button, connection chip, catalog menu, disconnect
- Add suiteRequested Signal; act_suite triggers it (SuiteWindow wires this to
  show_launcher via the existing open_module hook - no shell change needed)
- Add ConnectionChip (chip) to toolbar; set_connection_source(source) feeds it
  from module._start_simulator ("SIM") and _connect_to_port (port string)
- _on_connection updates chip and toggles act_connect text Connect/Disconnect
- _toggle_connection dispatches to _ctrl.stop() (disconnect) or _connect() (connect)
- Delete _build_menu / menuBar usage; fold Import Devices, Export Devices,
  Supported Devices into Catalog toolbar QToolButton menu with tooltips visible
- Also fold Export This Tab / Export All Tabs into Catalog menu (BL-DS5 trim):
  with IBM Plex Mono loaded the two export toolbar buttons push sizeHint above
  1240px; grouping all file-level operations under Catalog is semantically
  coherent and keeps the toolbar at ~1093px (themed offscreen) with real margin
- "Log Measurements" -> "Log" (tooltip preserved) - further trim per task spec
- Drop " Address: " and "Update: " bare QLabels; addr_edit gets
  setPlaceholderText("Address"), update_combo gets a tooltip
- resize 1100x720 -> 1280x760 (suite default)
- module.py: set_connection_source("SIM"/"port") before attach in both
  _start_simulator and _connect_to_port

Tests: 5 new in tests/iomodbus/test_main_window_toolbar.py; suite 1010 passed.
Toolbar sizeHint: 1093px (themed+offscreen) vs 1240px limit.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-11 14:15:26 -04:00
..