@@ -70,6 +70,8 @@ class Application(QtGui.QGuiApplication):
7070 published = QtCore .pyqtSignal ()
7171 validated = QtCore .pyqtSignal ()
7272
73+ targeted = QtCore .pyqtSignal (QtCore .QVariant )
74+
7375 risen = QtCore .pyqtSignal ()
7476 inFocused = QtCore .pyqtSignal ()
7577 outFocused = QtCore .pyqtSignal ()
@@ -105,6 +107,8 @@ def __init__(self, source, targets=[]):
105107 self .published .connect (self .publish )
106108 self .validated .connect (self .validate )
107109
110+ self .targeted .connect (self .target )
111+
108112 self .risen .connect (self .rise )
109113 self .inFocused .connect (self .inFocus )
110114 self .outFocused .connect (self .outFocus )
@@ -182,8 +186,10 @@ def show(self, client_settings=None):
182186 util .timer_end ("ready" , "Awaited statemachine for %.2f ms" )
183187
184188 if client_settings :
185- self .controller .data ['autoValidate' ] = client_settings .get ('autoValidate' , False )
186- self .controller .data ['autoPublish' ] = client_settings .get ('autoPublish' , False )
189+ auto_validate = client_settings .get ('autoValidate' , False )
190+ auto_publish = client_settings .get ('autoPublish' , False )
191+ self .controller .data ['autoValidate' ] = auto_validate
192+ self .controller .data ['autoPublish' ] = auto_publish
187193
188194 self .controller .show .emit ()
189195
@@ -223,6 +229,9 @@ def validate(self):
223229 """Fire up the validation sequance"""
224230 self .controller .validate ()
225231
232+ def target (self , targets ):
233+ self .controller .targets = targets
234+
226235 def listen (self ):
227236 """Listen on incoming messages from host
228237
@@ -249,6 +258,8 @@ def _listen():
249258 "publish" : "published" ,
250259 "validate" : "validated" ,
251260
261+ "target" : "targeted" ,
262+
252263 "rise" : "risen" ,
253264 "inFocus" : "inFocused" ,
254265 "outFocus" : "outFocused" ,
0 commit comments