@@ -260,6 +260,26 @@ def setupUi(self, MainWindow):
260
260
session_id_layout .addWidget (self .download_prefix_text , 2 )
261
261
# session_id_layout.addStretch(1)
262
262
263
+ #
264
+ # FOCUS CONTROL
265
+ self .unlock_focus_btn = QtWidgets .QPushButton ()
266
+ self .unlock_focus_btn .setFont (font )
267
+ self .unlock_focus_btn .setObjectName ("unlock_focus_button" )
268
+ self .unlock_focus_btn .clicked .connect (self .enableFocus )
269
+
270
+ self .lock_focus_btn = QtWidgets .QPushButton ()
271
+ self .lock_focus_btn .setFont (font )
272
+ self .lock_focus_btn .setObjectName ("lock_focus_button" )
273
+ self .lock_focus_btn .clicked .connect (self .lockFocus )
274
+ self .lock_focus_btn .setEnabled (False )
275
+
276
+ focus_layout = QHBoxLayout ()
277
+ focus_layout .addStretch (1 )
278
+ focus_layout .addWidget (self .unlock_focus_btn , 1 )
279
+ # focus_layout.addStretch(1)
280
+ focus_layout .addWidget (self .lock_focus_btn , 1 )
281
+ focus_layout .addStretch (1 )
282
+
263
283
#
264
284
# REC/STOP
265
285
self .start_btn = QtWidgets .QPushButton ()
@@ -277,28 +297,40 @@ def setupUi(self, MainWindow):
277
297
self .stop_btn .clicked .connect (self .stopRec )
278
298
self .stop_btn .setEnabled (False )
279
299
280
- self .unlock_focus_btn = QtWidgets .QPushButton ()
281
- self .unlock_focus_btn .setFont (font )
282
- self .unlock_focus_btn .setObjectName ("unlock_focus_button" )
283
- self .unlock_focus_btn .clicked .connect (self .enableFocus )
284
-
285
- self .lock_focus_btn = QtWidgets .QPushButton ()
286
- self .lock_focus_btn .setFont (font )
287
- self .lock_focus_btn .setObjectName ("lock_focus_button" )
288
- self .lock_focus_btn .clicked .connect (self .lockFocus )
289
- self .lock_focus_btn .setEnabled (False )
290
-
291
300
record_layout = QHBoxLayout ()
292
301
record_layout .addStretch (1 )
293
302
record_layout .addWidget (self .start_btn , 1 )
294
303
record_layout .addWidget (self .record_label )
295
304
# record_layout.addStretch(1)
296
305
record_layout .addWidget (self .stop_btn , 1 )
297
306
record_layout .addStretch (1 )
298
- record_layout .addWidget (self .unlock_focus_btn , 1 )
299
- record_layout .addStretch (1 )
300
- record_layout .addWidget (self .lock_focus_btn , 1 )
301
- record_layout .addStretch (1 )
307
+
308
+ #
309
+ # Download control
310
+ self .phase_align_btn = QtWidgets .QPushButton ()
311
+ self .phase_align_btn .setFont (font )
312
+ self .phase_align_btn .setObjectName ("pushButton_phase" )
313
+ self .phase_align_btn .clicked .connect (self .phaseAlign )
314
+
315
+ self .prefix_list_btn = QtWidgets .QPushButton ()
316
+ self .prefix_list_btn .setFont (font )
317
+ self .prefix_list_btn .setObjectName ("prefix_list_button" )
318
+ self .prefix_list_btn .clicked .connect (self .prefixList )
319
+ # TODO -- tmp until it is fixed
320
+ self .prefix_list_btn .setEnabled (False )
321
+
322
+ self .download_btn = QtWidgets .QPushButton ()
323
+ self .download_btn .setFont (font )
324
+ self .download_btn .setObjectName ("pushButton_4" )
325
+ self .download_btn .clicked .connect (self .requestDownload )
326
+
327
+ download_control_layout = QHBoxLayout ()
328
+ download_control_layout .addStretch (1 )
329
+ download_control_layout .addWidget (self .phase_align_btn )
330
+ # TODO -- download_control_layout.addWidget(self.prefix_list_btn)
331
+ download_control_layout .addWidget (self .download_btn )
332
+ download_control_layout .addStretch (1 )
333
+
302
334
#
303
335
# CLIENTS STATUS
304
336
self .status_clear_btn = QtWidgets .QPushButton ()
@@ -343,35 +375,8 @@ def setupUi(self, MainWindow):
343
375
camera_settings_layout .addWidget (self .camera_sensitivity_line )
344
376
camera_settings_layout .addWidget (camera_settings_broadcast_btn )
345
377
346
- #
347
- # Download control
348
- self .phase_align_btn = QtWidgets .QPushButton ()
349
- self .phase_align_btn .setFont (font )
350
- self .phase_align_btn .setObjectName ("pushButton_phase" )
351
- self .phase_align_btn .clicked .connect (self .phaseAlign )
352
-
353
- self .prefix_list_btn = QtWidgets .QPushButton ()
354
- self .prefix_list_btn .setFont (font )
355
- self .prefix_list_btn .setObjectName ("prefix_list_button" )
356
- self .prefix_list_btn .clicked .connect (self .prefixList )
357
- # TODO -- tmp until it is fixed
358
- self .prefix_list_btn .setEnabled (False )
359
-
360
- self .download_btn = QtWidgets .QPushButton ()
361
- self .download_btn .setFont (font )
362
- self .download_btn .setObjectName ("pushButton_4" )
363
- self .download_btn .clicked .connect (self .requestDownload )
364
-
365
- download_control_layout = QHBoxLayout ()
366
- download_control_layout .addStretch (1 )
367
- download_control_layout .addWidget (self .phase_align_btn )
368
- # download_control_layout.addWidget(self.prefix_list_btn)
369
- download_control_layout .addWidget (self .download_btn )
370
- download_control_layout .addStretch (1 )
371
-
372
378
#
373
379
# CLIENTS Info
374
-
375
380
self .api_input = QtWidgets .QLineEdit ()
376
381
self .api_input .setObjectName ("textEdit" )
377
382
@@ -389,6 +394,7 @@ def setupUi(self, MainWindow):
389
394
# Compose REMOTE CONTROL layout
390
395
remote_control_layout = QVBoxLayout ()
391
396
remote_control_layout .addLayout (session_id_layout )
397
+ remote_control_layout .addLayout (focus_layout )
392
398
remote_control_layout .addLayout (record_layout )
393
399
remote_control_layout .addLayout (download_control_layout )
394
400
remote_control_layout .addLayout (status_layout )
0 commit comments