Skip to content

chore(cpn): implement ui bindings to auto widgets and apply to timers#7331

Open
elecpower wants to merge 8 commits intomainfrom
elecpower/cpn-auto-wdgts-add-ui-ctl-funcs
Open

chore(cpn): implement ui bindings to auto widgets and apply to timers#7331
elecpower wants to merge 8 commits intomainfrom
elecpower/cpn-auto-wdgts-add-ui-ctl-funcs

Conversation

@elecpower
Copy link
Copy Markdown
Collaborator

@elecpower elecpower commented Apr 29, 2026

This PR is based on Phase 1 from Claude analysis of the code base.

Summary of changes:

  • add enabled, visible and post changed binds to every Auto widget
  • selectively add text and model binds to Auto widgets
  • add the same for GenericPanel to support base Qt ui widgets
  • add buddy widgets that rely on the parent widget to control enabled and visibility. Benefit is set the rules on the parent and execute once per update cycle then apply results to buddies. Ideal for label and edit widget but use cases where more than one buddy such as modules.
  • reduce dependency and overhead of Qt signals and slots by calling auto widget functions directly
  • add ItemModelEventHandler class to encapsulate the generic code embedded in every edit panel
  • refactor Timer (simpler than TelemetrySensors) editing to demonstrate implementation of the new methodology

Note: there is no noticeable changes for users

@elecpower elecpower added this to the 3.0 milestone Apr 29, 2026
@elecpower elecpower added companion Related to the companion software house keeping 🧹 Cleanup of code and house keeping labels Apr 29, 2026
@elecpower
Copy link
Copy Markdown
Collaborator Author

My hands are off this now except for bug fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

companion Related to the companion software house keeping 🧹 Cleanup of code and house keeping

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant