Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qtsignals refactor #321

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Conversation

vshekar
Copy link
Collaborator

@vshekar vshekar commented Aug 1, 2023

Previously, any Epics PV that triggers a change in the QT UI would do the following:

  • Define EPICS PV
  • Define QtSignal
  • EPICS callback that triggers the QT signal
  • QT Signal then runs a callback that does some work in the frontend
    In practically every case, the EPICS callback simply takes the PV value and passes it to the qt signal. This leads to repeating code and very little variation (not DRY)
    EpicsQObject attempts to address that. There are escape hatches in case there is a need for custom epics callbacks

Previously, any Epics PV that triggers a change in the QT UI would do the following:
  - Define EPICS PV
  - Define QtSignal
  - EPICS callback that triggers the QT signal
  - QT Signal then runs a callback that does some work in the frontend
In practically every case, the EPICS callback simply takes the PV value and passes it to the qt signal. This leads to repeating code and very little variation (not DRY)
`EpicsQObject` attempts to address that. There are escape hatches in case there is a need for custom epics callbacks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant