Subscription editor

Manages the subscription list of data/image streams: adds, deletes and hot-updates subscribed sources.

Overview

SubscriptionEditor (quatm/GUI/editors/subscription_editor.py) manages the program’s subscriptions to data streams/image streams: it loads the stored subscriptions from the property database, lists the available streams for selection, supports adding/deleting, and hot-updates the list when properties change. It is commonly used as the data-source selection component of live plotting/monitoring panels.

Main methods

MethodFunction
loadSubscriptions()Reads the saved subscriptions from the property database and loads them into the list
update_streamlist()Rebuilds the drop-down candidates from the currently available data streams
add()Adds the stream selected in the combo box to the subscription list and synchronises the properties
deletemarked()Removes the subscription items marked for deletion and synchronises the properties
handle_property_changes(changes)Listens for property changes, refreshes the list and broadcasts the change

Usage

from quatm.GUI.editors.subscription_editor import SubscriptionEditor

editor = SubscriptionEditor(props=props, category="Data", parent=parent)
editor.loadSubscriptions()