Subscription editor

Manages the program’s subscriptions to data/image streams: display, add, delete and hot property updates.

Overview

quatm/GUI/editors/subscription_editor.py provides the subscription editor (SubscriptionEditor): it manages the program’s subscriptions to data or image streams. The interface shows the current subscription list, offers a drop-down to select a new stream and add it, and allows subscriptions to be deleted; changes are synchronized immediately to the property store and a signal is broadcast, so that plotting/monitoring components can update on the fly.

Key methods

MethodDescription
loadSubscriptionsReads the saved subscriptions from the property store and loads them into the list
handle_property_changesListens for property changes: when this subscription key changes, refreshes the list and broadcasts
update_streamlistRebuilds the drop-down candidates from the currently available data-stream list
addAdds the stream selected in the drop-down to the subscriptions and synchronizes properties
deletemarkedRemoves the subscriptions marked for deletion and synchronizes properties

Usage

from quatm.GUI.editors.subscription_editor import SubscriptionEditor

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

Constructor parameters: category is Image / Data / List; propprefix, streamkey and fullList (List mode) can be used to adjust the property keys and candidate streams. For a more complete description see Subscription editor.