forked from g4ixt/QtTinySA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathQtTinySpectrum.py
979 lines (972 loc) · 48.8 KB
/
QtTinySpectrum.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'QtTinySpectrum.ui'
#
# Created by: PyQt5 UI code generator 5.15.7
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(1024, 600)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
MainWindow.setSizePolicy(sizePolicy)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.gridLayout_5 = QtWidgets.QGridLayout(self.centralwidget)
self.gridLayout_5.setObjectName("gridLayout_5")
self.tabWidget = QtWidgets.QTabWidget(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.tabWidget.sizePolicy().hasHeightForWidth())
self.tabWidget.setSizePolicy(sizePolicy)
self.tabWidget.setAutoFillBackground(False)
self.tabWidget.setTabPosition(QtWidgets.QTabWidget.North)
self.tabWidget.setTabShape(QtWidgets.QTabWidget.Rounded)
self.tabWidget.setObjectName("tabWidget")
self.analyserTab = QtWidgets.QWidget()
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.analyserTab.sizePolicy().hasHeightForWidth())
self.analyserTab.setSizePolicy(sizePolicy)
self.analyserTab.setObjectName("analyserTab")
self.gridLayout = QtWidgets.QGridLayout(self.analyserTab)
self.gridLayout.setObjectName("gridLayout")
self.gridLayout_3 = QtWidgets.QGridLayout()
self.gridLayout_3.setObjectName("gridLayout_3")
self.atten_box = QtWidgets.QSpinBox(self.analyserTab)
self.atten_box.setEnabled(False)
font = QtGui.QFont()
font.setPointSize(7)
self.atten_box.setFont(font)
self.atten_box.setReadOnly(False)
self.atten_box.setMinimum(0)
self.atten_box.setMaximum(31)
self.atten_box.setProperty("value", 0)
self.atten_box.setObjectName("atten_box")
self.gridLayout_3.addWidget(self.atten_box, 1, 1, 1, 1)
self.label = QtWidgets.QLabel(self.analyserTab)
font = QtGui.QFont()
font.setPointSize(7)
font.setBold(True)
font.setUnderline(False)
font.setWeight(75)
self.label.setFont(font)
self.label.setObjectName("label")
self.gridLayout_3.addWidget(self.label, 14, 0, 1, 2)
self.label_6 = QtWidgets.QLabel(self.analyserTab)
font = QtGui.QFont()
font.setPointSize(7)
self.label_6.setFont(font)
self.label_6.setObjectName("label_6")
self.gridLayout_3.addWidget(self.label_6, 18, 0, 1, 1)
self.trace4 = QtWidgets.QCheckBox(self.analyserTab)
font = QtGui.QFont()
font.setPointSize(7)
font.setBold(True)
font.setWeight(75)
self.trace4.setFont(font)
self.trace4.setObjectName("trace4")
self.gridLayout_3.addWidget(self.trace4, 11, 0, 1, 1)
self.label_5 = QtWidgets.QLabel(self.analyserTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_5.sizePolicy().hasHeightForWidth())
self.label_5.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(7)
font.setBold(True)
font.setUnderline(False)
font.setWeight(75)
self.label_5.setFont(font)
self.label_5.setObjectName("label_5")
self.gridLayout_3.addWidget(self.label_5, 0, 0, 1, 2)
self.version = QtWidgets.QLabel(self.analyserTab)
font = QtGui.QFont()
font.setPointSize(7)
self.version.setFont(font)
self.version.setObjectName("version")
self.gridLayout_3.addWidget(self.version, 17, 0, 1, 2)
self.t1_type = QtWidgets.QComboBox(self.analyserTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.t1_type.sizePolicy().hasHeightForWidth())
self.t1_type.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(7)
self.t1_type.setFont(font)
self.t1_type.setObjectName("t1_type")
self.gridLayout_3.addWidget(self.t1_type, 8, 1, 1, 1)
self.t3_type = QtWidgets.QComboBox(self.analyserTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.t3_type.sizePolicy().hasHeightForWidth())
self.t3_type.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(7)
self.t3_type.setFont(font)
self.t3_type.setObjectName("t3_type")
self.gridLayout_3.addWidget(self.t3_type, 10, 1, 1, 1)
self.label_2 = QtWidgets.QLabel(self.analyserTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth())
self.label_2.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(7)
font.setBold(True)
font.setUnderline(False)
font.setWeight(75)
self.label_2.setFont(font)
self.label_2.setObjectName("label_2")
self.gridLayout_3.addWidget(self.label_2, 4, 0, 1, 2)
self.lna_box = QtWidgets.QCheckBox(self.analyserTab)
font = QtGui.QFont()
font.setPointSize(7)
self.lna_box.setFont(font)
self.lna_box.setText("")
self.lna_box.setObjectName("lna_box")
self.gridLayout_3.addWidget(self.lna_box, 2, 1, 1, 1)
self.battery = QtWidgets.QLabel(self.analyserTab)
font = QtGui.QFont()
font.setPointSize(7)
self.battery.setFont(font)
self.battery.setObjectName("battery")
self.gridLayout_3.addWidget(self.battery, 18, 1, 1, 1)
self.t2_type = QtWidgets.QComboBox(self.analyserTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.t2_type.sizePolicy().hasHeightForWidth())
self.t2_type.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(7)
self.t2_type.setFont(font)
self.t2_type.setObjectName("t2_type")
self.gridLayout_3.addWidget(self.t2_type, 9, 1, 1, 1)
self.atten_auto = QtWidgets.QCheckBox(self.analyserTab)
font = QtGui.QFont()
font.setPointSize(7)
self.atten_auto.setFont(font)
self.atten_auto.setChecked(True)
self.atten_auto.setObjectName("atten_auto")
self.gridLayout_3.addWidget(self.atten_auto, 1, 0, 1, 1)
self.points_auto = QtWidgets.QCheckBox(self.analyserTab)
self.points_auto.setEnabled(True)
font = QtGui.QFont()
font.setPointSize(7)
self.points_auto.setFont(font)
self.points_auto.setChecked(True)
self.points_auto.setObjectName("points_auto")
self.gridLayout_3.addWidget(self.points_auto, 6, 0, 1, 1)
self.rbw_box = QtWidgets.QComboBox(self.analyserTab)
self.rbw_box.setEnabled(True)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.rbw_box.sizePolicy().hasHeightForWidth())
self.rbw_box.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(7)
self.rbw_box.setFont(font)
self.rbw_box.setEditable(True)
self.rbw_box.setObjectName("rbw_box")
self.gridLayout_3.addWidget(self.rbw_box, 5, 1, 1, 1)
self.label_8 = QtWidgets.QLabel(self.analyserTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_8.sizePolicy().hasHeightForWidth())
self.label_8.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(7)
font.setBold(True)
font.setUnderline(False)
font.setWeight(75)
self.label_8.setFont(font)
self.label_8.setObjectName("label_8")
self.gridLayout_3.addWidget(self.label_8, 12, 0, 1, 2)
self.avgSlider = QtWidgets.QSlider(self.analyserTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.avgSlider.sizePolicy().hasHeightForWidth())
self.avgSlider.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(7)
self.avgSlider.setFont(font)
self.avgSlider.setToolTip("")
self.avgSlider.setMinimum(1)
self.avgSlider.setMaximum(100)
self.avgSlider.setProperty("value", 10)
self.avgSlider.setOrientation(QtCore.Qt.Horizontal)
self.avgSlider.setInvertedAppearance(False)
self.avgSlider.setInvertedControls(False)
self.avgSlider.setTickPosition(QtWidgets.QSlider.TicksAbove)
self.avgSlider.setObjectName("avgSlider")
self.gridLayout_3.addWidget(self.avgSlider, 13, 0, 1, 3)
self.trace1 = QtWidgets.QCheckBox(self.analyserTab)
font = QtGui.QFont()
font.setPointSize(7)
font.setBold(True)
font.setWeight(75)
self.trace1.setFont(font)
self.trace1.setChecked(True)
self.trace1.setTristate(False)
self.trace1.setObjectName("trace1")
self.gridLayout_3.addWidget(self.trace1, 8, 0, 1, 1)
self.trace3 = QtWidgets.QCheckBox(self.analyserTab)
font = QtGui.QFont()
font.setPointSize(7)
font.setBold(True)
font.setWeight(75)
self.trace3.setFont(font)
self.trace3.setObjectName("trace3")
self.gridLayout_3.addWidget(self.trace3, 10, 0, 1, 1)
spacerItem = QtWidgets.QSpacerItem(17, 13, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.gridLayout_3.addItem(spacerItem, 16, 0, 1, 1)
self.t4_type = QtWidgets.QComboBox(self.analyserTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.t4_type.sizePolicy().hasHeightForWidth())
self.t4_type.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(7)
self.t4_type.setFont(font)
self.t4_type.setObjectName("t4_type")
self.gridLayout_3.addWidget(self.t4_type, 11, 1, 1, 1)
self.memSlider = QtWidgets.QSlider(self.analyserTab)
self.memSlider.setMinimum(1)
self.memSlider.setMaximum(200)
self.memSlider.setProperty("value", 50)
self.memSlider.setOrientation(QtCore.Qt.Horizontal)
self.memSlider.setTickPosition(QtWidgets.QSlider.TicksAbove)
self.memSlider.setObjectName("memSlider")
self.gridLayout_3.addWidget(self.memSlider, 15, 0, 1, 2)
self.points_box = QtWidgets.QSpinBox(self.analyserTab)
font = QtGui.QFont()
font.setPointSize(7)
self.points_box.setFont(font)
self.points_box.setSuffix("")
self.points_box.setMinimum(1)
self.points_box.setMaximum(30000)
self.points_box.setSingleStep(100)
self.points_box.setStepType(QtWidgets.QAbstractSpinBox.AdaptiveDecimalStepType)
self.points_box.setProperty("value", 400)
self.points_box.setObjectName("points_box")
self.gridLayout_3.addWidget(self.points_box, 6, 1, 1, 1)
self.label_10 = QtWidgets.QLabel(self.analyserTab)
font = QtGui.QFont()
font.setPointSize(7)
font.setBold(True)
font.setUnderline(False)
font.setWeight(75)
self.label_10.setFont(font)
self.label_10.setObjectName("label_10")
self.gridLayout_3.addWidget(self.label_10, 7, 0, 1, 2)
self.spur_box = QtWidgets.QCheckBox(self.analyserTab)
font = QtGui.QFont()
font.setPointSize(7)
self.spur_box.setFont(font)
self.spur_box.setText("")
self.spur_box.setChecked(True)
self.spur_box.setTristate(True)
self.spur_box.setObjectName("spur_box")
self.gridLayout_3.addWidget(self.spur_box, 3, 1, 1, 1)
self.trace2 = QtWidgets.QCheckBox(self.analyserTab)
font = QtGui.QFont()
font.setPointSize(7)
font.setBold(True)
font.setWeight(75)
self.trace2.setFont(font)
self.trace2.setTristate(False)
self.trace2.setObjectName("trace2")
self.gridLayout_3.addWidget(self.trace2, 9, 0, 1, 1)
self.label_7 = QtWidgets.QLabel(self.analyserTab)
font = QtGui.QFont()
font.setPointSize(7)
font.setBold(True)
font.setWeight(75)
self.label_7.setFont(font)
self.label_7.setObjectName("label_7")
self.gridLayout_3.addWidget(self.label_7, 3, 0, 1, 1)
self.lna_label = QtWidgets.QLabel(self.analyserTab)
font = QtGui.QFont()
font.setPointSize(7)
font.setBold(True)
font.setWeight(75)
self.lna_label.setFont(font)
self.lna_label.setObjectName("lna_label")
self.gridLayout_3.addWidget(self.lna_label, 2, 0, 1, 1)
self.label_3 = QtWidgets.QLabel(self.analyserTab)
font = QtGui.QFont()
font.setPointSize(7)
self.label_3.setFont(font)
self.label_3.setObjectName("label_3")
self.gridLayout_3.addWidget(self.label_3, 5, 0, 1, 1)
self.gridLayout.addLayout(self.gridLayout_3, 0, 0, 1, 1)
self.gridLayout_2 = QtWidgets.QGridLayout()
self.gridLayout_2.setObjectName("gridLayout_2")
self.m3_type = QtWidgets.QComboBox(self.analyserTab)
self.m3_type.setMaximumSize(QtCore.QSize(55, 16777215))
font = QtGui.QFont()
font.setPointSize(7)
self.m3_type.setFont(font)
self.m3_type.setObjectName("m3_type")
self.gridLayout_2.addWidget(self.m3_type, 2, 6, 1, 1)
self.scan_button = QtWidgets.QPushButton(self.analyserTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.scan_button.sizePolicy().hasHeightForWidth())
self.scan_button.setSizePolicy(sizePolicy)
self.scan_button.setCheckable(False)
self.scan_button.setObjectName("scan_button")
self.gridLayout_2.addWidget(self.scan_button, 1, 11, 1, 1)
self.mPeak = QtWidgets.QSpinBox(self.analyserTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.mPeak.sizePolicy().hasHeightForWidth())
self.mPeak.setSizePolicy(sizePolicy)
self.mPeak.setMaximumSize(QtCore.QSize(83, 16777215))
font = QtGui.QFont()
font.setPointSize(7)
self.mPeak.setFont(font)
self.mPeak.setMinimum(-120)
self.mPeak.setMaximum(-20)
self.mPeak.setProperty("value", -90)
self.mPeak.setObjectName("mPeak")
self.gridLayout_2.addWidget(self.mPeak, 2, 8, 1, 1)
self.centre_freq = QtWidgets.QDoubleSpinBox(self.analyserTab)
self.centre_freq.setAlignment(QtCore.Qt.AlignCenter)
self.centre_freq.setButtonSymbols(QtWidgets.QAbstractSpinBox.PlusMinus)
self.centre_freq.setCorrectionMode(QtWidgets.QAbstractSpinBox.CorrectToNearestValue)
self.centre_freq.setPrefix("")
self.centre_freq.setDecimals(6)
self.centre_freq.setMinimum(0.1)
self.centre_freq.setMaximum(6000.0)
self.centre_freq.setStepType(QtWidgets.QAbstractSpinBox.AdaptiveDecimalStepType)
self.centre_freq.setProperty("value", 98.0)
self.centre_freq.setObjectName("centre_freq")
self.gridLayout_2.addWidget(self.centre_freq, 2, 1, 1, 1)
self.marker4 = QtWidgets.QCheckBox(self.analyserTab)
self.marker4.setObjectName("marker4")
self.gridLayout_2.addWidget(self.marker4, 1, 7, 1, 1)
self.marker2 = QtWidgets.QCheckBox(self.analyserTab)
self.marker2.setAutoFillBackground(False)
self.marker2.setObjectName("marker2")
self.gridLayout_2.addWidget(self.marker2, 1, 5, 1, 1)
self.label_9 = QtWidgets.QLabel(self.analyserTab)
font = QtGui.QFont()
font.setPointSize(7)
font.setBold(True)
font.setWeight(75)
self.label_9.setFont(font)
self.label_9.setObjectName("label_9")
self.gridLayout_2.addWidget(self.label_9, 1, 8, 1, 1)
self.m4_type = QtWidgets.QComboBox(self.analyserTab)
self.m4_type.setMaximumSize(QtCore.QSize(55, 16777215))
font = QtGui.QFont()
font.setPointSize(7)
self.m4_type.setFont(font)
self.m4_type.setObjectName("m4_type")
self.gridLayout_2.addWidget(self.m4_type, 2, 7, 1, 1)
self.m2_type = QtWidgets.QComboBox(self.analyserTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.m2_type.sizePolicy().hasHeightForWidth())
self.m2_type.setSizePolicy(sizePolicy)
self.m2_type.setMaximumSize(QtCore.QSize(55, 16777215))
font = QtGui.QFont()
font.setPointSize(7)
self.m2_type.setFont(font)
self.m2_type.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToContentsOnFirstShow)
self.m2_type.setMinimumContentsLength(0)
self.m2_type.setIconSize(QtCore.QSize(16, 16))
self.m2_type.setPlaceholderText("")
self.m2_type.setObjectName("m2_type")
self.gridLayout_2.addWidget(self.m2_type, 2, 5, 1, 1)
self.marker1 = QtWidgets.QCheckBox(self.analyserTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.marker1.sizePolicy().hasHeightForWidth())
self.marker1.setSizePolicy(sizePolicy)
self.marker1.setObjectName("marker1")
self.gridLayout_2.addWidget(self.marker1, 1, 4, 1, 1)
self.mkr_start = QtWidgets.QToolButton(self.analyserTab)
self.mkr_start.setToolTip("")
self.mkr_start.setArrowType(QtCore.Qt.LeftArrow)
self.mkr_start.setObjectName("mkr_start")
self.gridLayout_2.addWidget(self.mkr_start, 1, 3, 1, 1)
self.span_freq = QtWidgets.QDoubleSpinBox(self.analyserTab)
self.span_freq.setAlignment(QtCore.Qt.AlignCenter)
self.span_freq.setButtonSymbols(QtWidgets.QAbstractSpinBox.PlusMinus)
self.span_freq.setCorrectionMode(QtWidgets.QAbstractSpinBox.CorrectToNearestValue)
self.span_freq.setPrefix("")
self.span_freq.setDecimals(6)
self.span_freq.setMaximum(6000.0)
self.span_freq.setStepType(QtWidgets.QAbstractSpinBox.AdaptiveDecimalStepType)
self.span_freq.setProperty("value", 20.0)
self.span_freq.setObjectName("span_freq")
self.gridLayout_2.addWidget(self.span_freq, 2, 10, 1, 1)
self.m1_type = QtWidgets.QComboBox(self.analyserTab)
self.m1_type.setMaximumSize(QtCore.QSize(55, 16777215))
font = QtGui.QFont()
font.setFamily("Sans Serif")
font.setPointSize(7)
self.m1_type.setFont(font)
self.m1_type.setObjectName("m1_type")
self.gridLayout_2.addWidget(self.m1_type, 2, 4, 1, 1)
self.start_freq = QtWidgets.QDoubleSpinBox(self.analyserTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.start_freq.sizePolicy().hasHeightForWidth())
self.start_freq.setSizePolicy(sizePolicy)
self.start_freq.setFrame(True)
self.start_freq.setCorrectionMode(QtWidgets.QAbstractSpinBox.CorrectToNearestValue)
self.start_freq.setPrefix("")
self.start_freq.setDecimals(6)
self.start_freq.setMinimum(0.1)
self.start_freq.setMaximum(6000.0)
self.start_freq.setSingleStep(1.0)
self.start_freq.setStepType(QtWidgets.QAbstractSpinBox.AdaptiveDecimalStepType)
self.start_freq.setProperty("value", 87.5)
self.start_freq.setObjectName("start_freq")
self.gridLayout_2.addWidget(self.start_freq, 1, 1, 1, 1)
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_2.addItem(spacerItem1, 1, 2, 1, 1)
self.graphWidget = PlotWidget(self.analyserTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.graphWidget.sizePolicy().hasHeightForWidth())
self.graphWidget.setSizePolicy(sizePolicy)
self.graphWidget.setAutoFillBackground(False)
self.graphWidget.setStyleSheet("")
self.graphWidget.setObjectName("graphWidget")
self.gridLayout_2.addWidget(self.graphWidget, 0, 0, 1, 12)
spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_2.addItem(spacerItem2, 1, 9, 1, 1)
self.stop_freq = QtWidgets.QDoubleSpinBox(self.analyserTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.stop_freq.sizePolicy().hasHeightForWidth())
self.stop_freq.setSizePolicy(sizePolicy)
self.stop_freq.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.stop_freq.setCorrectionMode(QtWidgets.QAbstractSpinBox.CorrectToNearestValue)
self.stop_freq.setDecimals(6)
self.stop_freq.setMinimum(0.1)
self.stop_freq.setMaximum(6000.0)
self.stop_freq.setSingleStep(1.0)
self.stop_freq.setStepType(QtWidgets.QAbstractSpinBox.AdaptiveDecimalStepType)
self.stop_freq.setProperty("value", 108.0)
self.stop_freq.setObjectName("stop_freq")
self.gridLayout_2.addWidget(self.stop_freq, 1, 10, 1, 1)
self.mkr_centre = QtWidgets.QToolButton(self.analyserTab)
self.mkr_centre.setToolTip("")
self.mkr_centre.setToolTipDuration(1)
self.mkr_centre.setArrowType(QtCore.Qt.UpArrow)
self.mkr_centre.setObjectName("mkr_centre")
self.gridLayout_2.addWidget(self.mkr_centre, 2, 3, 1, 1)
self.band_box = QtWidgets.QComboBox(self.analyserTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.band_box.sizePolicy().hasHeightForWidth())
self.band_box.setSizePolicy(sizePolicy)
self.band_box.setMaximumSize(QtCore.QSize(65, 16777215))
self.band_box.setObjectName("band_box")
self.gridLayout_2.addWidget(self.band_box, 1, 0, 1, 1)
self.marker3 = QtWidgets.QCheckBox(self.analyserTab)
self.marker3.setObjectName("marker3")
self.gridLayout_2.addWidget(self.marker3, 1, 6, 1, 1)
self.gridLayout.addLayout(self.gridLayout_2, 0, 1, 1, 1)
self.tabWidget.addTab(self.analyserTab, "")
self.TimeTab = QtWidgets.QWidget()
self.TimeTab.setEnabled(True)
self.TimeTab.setObjectName("TimeTab")
self.gridLayout_6 = QtWidgets.QGridLayout(self.TimeTab)
self.gridLayout_6.setObjectName("gridLayout_6")
self.gridLayout_4 = QtWidgets.QGridLayout()
self.gridLayout_4.setObjectName("gridLayout_4")
self.label_18 = QtWidgets.QLabel(self.TimeTab)
font = QtGui.QFont()
font.setPointSize(9)
self.label_18.setFont(font)
self.label_18.setObjectName("label_18")
self.gridLayout_4.addWidget(self.label_18, 11, 4, 1, 1)
self.rExponent = QtWidgets.QDoubleSpinBox(self.TimeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.rExponent.sizePolicy().hasHeightForWidth())
self.rExponent.setSizePolicy(sizePolicy)
self.rExponent.setMinimumSize(QtCore.QSize(16, 0))
font = QtGui.QFont()
font.setPointSize(7)
self.rExponent.setFont(font)
self.rExponent.setMinimum(-10.0)
self.rExponent.setMaximum(10.0)
self.rExponent.setSingleStep(0.1)
self.rExponent.setProperty("value", 0.6)
self.rExponent.setObjectName("rExponent")
self.gridLayout_4.addWidget(self.rExponent, 3, 2, 1, 1)
self.signalUp = QtWidgets.QToolButton(self.TimeTab)
font = QtGui.QFont()
font.setPointSize(9)
self.signalUp.setFont(font)
self.signalUp.setArrowType(QtCore.Qt.NoArrow)
self.signalUp.setObjectName("signalUp")
self.gridLayout_4.addWidget(self.signalUp, 11, 8, 1, 1)
self.bMulti = QtWidgets.QDoubleSpinBox(self.TimeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.bMulti.sizePolicy().hasHeightForWidth())
self.bMulti.setSizePolicy(sizePolicy)
self.bMulti.setMinimumSize(QtCore.QSize(16, 0))
font = QtGui.QFont()
font.setPointSize(7)
self.bMulti.setFont(font)
self.bMulti.setDecimals(3)
self.bMulti.setMinimum(0.4)
self.bMulti.setSingleStep(0.001)
self.bMulti.setProperty("value", 0.4)
self.bMulti.setObjectName("bMulti")
self.gridLayout_4.addWidget(self.bMulti, 5, 0, 1, 1)
spacerItem3 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.gridLayout_4.addItem(spacerItem3, 9, 0, 1, 1)
self.gMulti = QtWidgets.QDoubleSpinBox(self.TimeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.gMulti.sizePolicy().hasHeightForWidth())
self.gMulti.setSizePolicy(sizePolicy)
self.gMulti.setMinimumSize(QtCore.QSize(16, 0))
font = QtGui.QFont()
font.setPointSize(7)
self.gMulti.setFont(font)
self.gMulti.setDecimals(3)
self.gMulti.setMinimum(0.001)
self.gMulti.setSingleStep(0.001)
self.gMulti.setProperty("value", 0.01)
self.gMulti.setObjectName("gMulti")
self.gridLayout_4.addWidget(self.gMulti, 4, 0, 1, 1)
self.rConst = QtWidgets.QDoubleSpinBox(self.TimeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.rConst.sizePolicy().hasHeightForWidth())
self.rConst.setSizePolicy(sizePolicy)
self.rConst.setMinimumSize(QtCore.QSize(16, 0))
font = QtGui.QFont()
font.setPointSize(7)
self.rConst.setFont(font)
self.rConst.setDecimals(3)
self.rConst.setSingleStep(0.01)
self.rConst.setObjectName("rConst")
self.gridLayout_4.addWidget(self.rConst, 3, 1, 1, 1)
self.freqR = QtWidgets.QToolButton(self.TimeTab)
font = QtGui.QFont()
font.setPointSize(9)
self.freqR.setFont(font)
self.freqR.setArrowType(QtCore.Qt.NoArrow)
self.freqR.setObjectName("freqR")
self.gridLayout_4.addWidget(self.freqR, 11, 10, 1, 1)
self.label_17 = QtWidgets.QLabel(self.TimeTab)
font = QtGui.QFont()
font.setPointSize(9)
self.label_17.setFont(font)
self.label_17.setObjectName("label_17")
self.gridLayout_4.addWidget(self.label_17, 10, 4, 1, 1)
self.rMulti = QtWidgets.QDoubleSpinBox(self.TimeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.rMulti.sizePolicy().hasHeightForWidth())
self.rMulti.setSizePolicy(sizePolicy)
self.rMulti.setMinimumSize(QtCore.QSize(0, 0))
self.rMulti.setMaximumSize(QtCore.QSize(16777215, 16777215))
font = QtGui.QFont()
font.setPointSize(7)
self.rMulti.setFont(font)
self.rMulti.setDecimals(3)
self.rMulti.setMinimum(0.001)
self.rMulti.setSingleStep(0.001)
self.rMulti.setProperty("value", 0.01)
self.rMulti.setObjectName("rMulti")
self.gridLayout_4.addWidget(self.rMulti, 3, 0, 1, 1)
self.label_12 = QtWidgets.QLabel(self.TimeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_12.sizePolicy().hasHeightForWidth())
self.label_12.setSizePolicy(sizePolicy)
self.label_12.setMinimumSize(QtCore.QSize(16, 0))
font = QtGui.QFont()
font.setPointSize(7)
self.label_12.setFont(font)
self.label_12.setObjectName("label_12")
self.gridLayout_4.addWidget(self.label_12, 2, 1, 1, 1)
self.timeR = QtWidgets.QToolButton(self.TimeTab)
font = QtGui.QFont()
font.setPointSize(9)
self.timeR.setFont(font)
self.timeR.setArrowType(QtCore.Qt.NoArrow)
self.timeR.setObjectName("timeR")
self.gridLayout_4.addWidget(self.timeR, 11, 7, 1, 1)
self.label_4 = QtWidgets.QLabel(self.TimeTab)
font = QtGui.QFont()
font.setPointSize(7)
font.setBold(True)
font.setWeight(75)
self.label_4.setFont(font)
self.label_4.setObjectName("label_4")
self.gridLayout_4.addWidget(self.label_4, 1, 0, 1, 2)
self.run3D = QtWidgets.QPushButton(self.TimeTab)
font = QtGui.QFont()
font.setPointSize(9)
self.run3D.setFont(font)
self.run3D.setObjectName("run3D")
self.gridLayout_4.addWidget(self.run3D, 10, 18, 1, 1)
self.rotateBy = QtWidgets.QSpinBox(self.TimeTab)
font = QtGui.QFont()
font.setPointSize(9)
self.rotateBy.setFont(font)
self.rotateBy.setMaximum(90)
self.rotateBy.setSingleStep(5)
self.rotateBy.setProperty("value", 5)
self.rotateBy.setObjectName("rotateBy")
self.gridLayout_4.addWidget(self.rotateBy, 10, 5, 1, 1)
self.panBy = QtWidgets.QSpinBox(self.TimeTab)
font = QtGui.QFont()
font.setPointSize(9)
self.panBy.setFont(font)
self.panBy.setMaximum(10)
self.panBy.setSingleStep(1)
self.panBy.setProperty("value", 1)
self.panBy.setObjectName("panBy")
self.gridLayout_4.addWidget(self.panBy, 11, 5, 1, 1)
self.label_11 = QtWidgets.QLabel(self.TimeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_11.sizePolicy().hasHeightForWidth())
self.label_11.setSizePolicy(sizePolicy)
self.label_11.setMinimumSize(QtCore.QSize(16, 0))
font = QtGui.QFont()
font.setPointSize(7)
self.label_11.setFont(font)
self.label_11.setObjectName("label_11")
self.gridLayout_4.addWidget(self.label_11, 2, 0, 1, 1)
self.grid = QtWidgets.QCheckBox(self.TimeTab)
self.grid.setLayoutDirection(QtCore.Qt.LeftToRight)
self.grid.setChecked(True)
self.grid.setObjectName("grid")
self.gridLayout_4.addWidget(self.grid, 11, 12, 1, 1)
self.openGLWidget = GLViewWidget(self.TimeTab)
self.openGLWidget.setEnabled(True)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.openGLWidget.sizePolicy().hasHeightForWidth())
self.openGLWidget.setSizePolicy(sizePolicy)
self.openGLWidget.setObjectName("openGLWidget")
self.gridLayout_4.addWidget(self.openGLWidget, 0, 3, 10, 16)
self.gridF = QtWidgets.QToolButton(self.TimeTab)
self.gridF.setArrowType(QtCore.Qt.DownArrow)
self.gridF.setObjectName("gridF")
self.gridLayout_4.addWidget(self.gridF, 11, 14, 1, 1)
self.signalDown = QtWidgets.QToolButton(self.TimeTab)
font = QtGui.QFont()
font.setPointSize(9)
self.signalDown.setFont(font)
self.signalDown.setArrowType(QtCore.Qt.NoArrow)
self.signalDown.setObjectName("signalDown")
self.gridLayout_4.addWidget(self.signalDown, 11, 9, 1, 1)
self.bConst = QtWidgets.QDoubleSpinBox(self.TimeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.bConst.sizePolicy().hasHeightForWidth())
self.bConst.setSizePolicy(sizePolicy)
self.bConst.setMinimumSize(QtCore.QSize(16, 0))
font = QtGui.QFont()
font.setPointSize(7)
self.bConst.setFont(font)
self.bConst.setDecimals(3)
self.bConst.setSingleStep(0.01)
self.bConst.setObjectName("bConst")
self.gridLayout_4.addWidget(self.bConst, 5, 1, 1, 1)
self.timeF = QtWidgets.QToolButton(self.TimeTab)
font = QtGui.QFont()
font.setPointSize(9)
self.timeF.setFont(font)
self.timeF.setArrowType(QtCore.Qt.NoArrow)
self.timeF.setObjectName("timeF")
self.gridLayout_4.addWidget(self.timeF, 11, 6, 1, 1)
self.label_14 = QtWidgets.QLabel(self.TimeTab)
font = QtGui.QFont()
font.setFamily("Sans Serif")
font.setPointSize(7)
self.label_14.setFont(font)
self.label_14.setObjectName("label_14")
self.gridLayout_4.addWidget(self.label_14, 6, 0, 1, 3)
self.freqL = QtWidgets.QToolButton(self.TimeTab)
font = QtGui.QFont()
font.setPointSize(9)
self.freqL.setFont(font)
self.freqL.setArrowType(QtCore.Qt.NoArrow)
self.freqL.setObjectName("freqL")
self.gridLayout_4.addWidget(self.freqL, 11, 11, 1, 1)
self.bExponent = QtWidgets.QDoubleSpinBox(self.TimeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.bExponent.sizePolicy().hasHeightForWidth())
self.bExponent.setSizePolicy(sizePolicy)
self.bExponent.setMinimumSize(QtCore.QSize(16, 0))
font = QtGui.QFont()
font.setPointSize(7)
self.bExponent.setFont(font)
self.bExponent.setMinimum(-10.0)
self.bExponent.setMaximum(10.0)
self.bExponent.setSingleStep(0.1)
self.bExponent.setProperty("value", -0.3)
self.bExponent.setObjectName("bExponent")
self.gridLayout_4.addWidget(self.bExponent, 5, 2, 1, 1)
self.gExponent = QtWidgets.QDoubleSpinBox(self.TimeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.gExponent.sizePolicy().hasHeightForWidth())
self.gExponent.setSizePolicy(sizePolicy)
self.gExponent.setMinimumSize(QtCore.QSize(16, 0))
font = QtGui.QFont()
font.setPointSize(7)
self.gExponent.setFont(font)
self.gExponent.setMinimum(-10.0)
self.gExponent.setMaximum(10.0)
self.gExponent.setSingleStep(0.1)
self.gExponent.setProperty("value", 2.0)
self.gExponent.setObjectName("gExponent")
self.gridLayout_4.addWidget(self.gExponent, 4, 2, 1, 1)
self.gridR = QtWidgets.QToolButton(self.TimeTab)
self.gridR.setArrowType(QtCore.Qt.UpArrow)
self.gridR.setObjectName("gridR")
self.gridLayout_4.addWidget(self.gridR, 11, 13, 1, 1)
self.glSmooth = QtWidgets.QCheckBox(self.TimeTab)
font = QtGui.QFont()
font.setPointSize(7)
self.glSmooth.setFont(font)
self.glSmooth.setLayoutDirection(QtCore.Qt.LeftToRight)
self.glSmooth.setObjectName("glSmooth")
self.gridLayout_4.addWidget(self.glSmooth, 8, 0, 1, 1)
self.gConst = QtWidgets.QDoubleSpinBox(self.TimeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.gConst.sizePolicy().hasHeightForWidth())
self.gConst.setSizePolicy(sizePolicy)
self.gConst.setMinimumSize(QtCore.QSize(16, 0))
font = QtGui.QFont()
font.setPointSize(7)
self.gConst.setFont(font)
self.gConst.setDecimals(3)
self.gConst.setSingleStep(0.01)
self.gConst.setObjectName("gConst")
self.gridLayout_4.addWidget(self.gConst, 4, 1, 1, 1)
self.label_13 = QtWidgets.QLabel(self.TimeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_13.sizePolicy().hasHeightForWidth())
self.label_13.setSizePolicy(sizePolicy)
self.label_13.setMinimumSize(QtCore.QSize(16, 0))
font = QtGui.QFont()
font.setPointSize(7)
self.label_13.setFont(font)
self.label_13.setObjectName("label_13")
self.gridLayout_4.addWidget(self.label_13, 2, 2, 1, 1)
self.glNormals = QtWidgets.QCheckBox(self.TimeTab)
font = QtGui.QFont()
font.setPointSize(7)
self.glNormals.setFont(font)
self.glNormals.setLayoutDirection(QtCore.Qt.LeftToRight)
self.glNormals.setObjectName("glNormals")
self.gridLayout_4.addWidget(self.glNormals, 7, 0, 1, 1)
self.orbitR = QtWidgets.QToolButton(self.TimeTab)
font = QtGui.QFont()
font.setPointSize(9)
self.orbitR.setFont(font)
self.orbitR.setArrowType(QtCore.Qt.RightArrow)
self.orbitR.setObjectName("orbitR")
self.gridLayout_4.addWidget(self.orbitR, 10, 7, 1, 1)
self.orbitD = QtWidgets.QToolButton(self.TimeTab)
font = QtGui.QFont()
font.setPointSize(9)
self.orbitD.setFont(font)
self.orbitD.setArrowType(QtCore.Qt.DownArrow)
self.orbitD.setObjectName("orbitD")
self.gridLayout_4.addWidget(self.orbitD, 10, 9, 1, 1)
self.orbitL = QtWidgets.QToolButton(self.TimeTab)
font = QtGui.QFont()
font.setPointSize(9)
self.orbitL.setFont(font)
self.orbitL.setArrowType(QtCore.Qt.LeftArrow)
self.orbitL.setObjectName("orbitL")
self.gridLayout_4.addWidget(self.orbitL, 10, 6, 1, 1)
spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_4.addItem(spacerItem4, 10, 15, 1, 1)
self.orbitU = QtWidgets.QToolButton(self.TimeTab)
font = QtGui.QFont()
font.setPointSize(9)
self.orbitU.setFont(font)
self.orbitU.setArrowType(QtCore.Qt.UpArrow)
self.orbitU.setObjectName("orbitU")
self.gridLayout_4.addWidget(self.orbitU, 10, 8, 1, 1)
self.zoom = QtWidgets.QSlider(self.TimeTab)
self.zoom.setMaximum(200)
self.zoom.setProperty("value", 40)
self.zoom.setSliderPosition(40)
self.zoom.setOrientation(QtCore.Qt.Horizontal)
self.zoom.setInvertedAppearance(True)
self.zoom.setInvertedControls(False)
self.zoom.setObjectName("zoom")
self.gridLayout_4.addWidget(self.zoom, 10, 10, 1, 5)
self.Enabled3D = QtWidgets.QCheckBox(self.TimeTab)
font = QtGui.QFont()
font.setPointSize(9)
self.Enabled3D.setFont(font)
self.Enabled3D.setObjectName("Enabled3D")
self.gridLayout_4.addWidget(self.Enabled3D, 10, 16, 1, 1)
self.reset3D = QtWidgets.QPushButton(self.TimeTab)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(2)
sizePolicy.setHeightForWidth(self.reset3D.sizePolicy().hasHeightForWidth())
self.reset3D.setSizePolicy(sizePolicy)
self.reset3D.setMinimumSize(QtCore.QSize(5, 0))
font = QtGui.QFont()
font.setPointSize(9)
self.reset3D.setFont(font)
self.reset3D.setIconSize(QtCore.QSize(10, 16))
self.reset3D.setObjectName("reset3D")
self.gridLayout_4.addWidget(self.reset3D, 11, 18, 1, 1)
self.gridLayout_6.addLayout(self.gridLayout_4, 0, 0, 1, 1)
self.tabWidget.addTab(self.TimeTab, "")
self.gridLayout_5.addWidget(self.tabWidget, 0, 0, 1, 1)
MainWindow.setCentralWidget(self.centralwidget)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.menuBar = QtWidgets.QMenuBar(MainWindow)
self.menuBar.setGeometry(QtCore.QRect(0, 0, 1024, 23))
self.menuBar.setObjectName("menuBar")
self.menu_Help = QtWidgets.QMenu(self.menuBar)
self.menu_Help.setObjectName("menu_Help")
self.menuPreferences = QtWidgets.QMenu(self.menuBar)
self.menuPreferences.setObjectName("menuPreferences")
MainWindow.setMenuBar(self.menuBar)
self.actionsetting = QtWidgets.QAction(MainWindow)
self.actionsetting.setObjectName("actionsetting")
self.actionlevel = QtWidgets.QAction(MainWindow)
self.actionlevel.setObjectName("actionlevel")
self.actionanother = QtWidgets.QAction(MainWindow)
self.actionanother.setObjectName("actionanother")
self.actionAbout_QtTinySA = QtWidgets.QAction(MainWindow)
self.actionAbout_QtTinySA.setObjectName("actionAbout_QtTinySA")
self.menu_Help.addAction(self.actionAbout_QtTinySA)
self.menuBar.addAction(self.menuPreferences.menuAction())
self.menuBar.addAction(self.menu_Help.menuAction())
self.retranslateUi(MainWindow)
self.tabWidget.setCurrentIndex(0)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
self.atten_box.setSuffix(_translate("MainWindow", "dB"))
self.label.setText(_translate("MainWindow", "Scan Memory Size"))
self.label_6.setText(_translate("MainWindow", "Battery:"))
self.trace4.setText(_translate("MainWindow", "T4"))
self.label_5.setText(_translate("MainWindow", " Attenuator"))
self.version.setText(_translate("MainWindow", "Not Connected"))
self.label_2.setText(_translate("MainWindow", "Resolution BW & Scan Points"))
self.battery.setText(_translate("MainWindow", "Battery"))
self.atten_auto.setText(_translate("MainWindow", "Auto"))
self.points_auto.setText(_translate("MainWindow", "Auto Points"))
self.label_8.setText(_translate("MainWindow", "Trace Averaging"))
self.trace1.setText(_translate("MainWindow", "T1"))
self.trace3.setText(_translate("MainWindow", "T3"))
self.label_10.setText(_translate("MainWindow", "Trace Settings"))
self.trace2.setText(_translate("MainWindow", "T2"))
self.label_7.setText(_translate("MainWindow", "Spur"))
self.lna_label.setText(_translate("MainWindow", "LNA"))
self.label_3.setText(_translate("MainWindow", "RBW kHz"))
self.scan_button.setText(_translate("MainWindow", "Run"))
self.mPeak.setSuffix(_translate("MainWindow", "dBm"))
self.mPeak.setPrefix(_translate("MainWindow", "> "))
self.centre_freq.setSuffix(_translate("MainWindow", "MHz"))
self.marker4.setText(_translate("MainWindow", "M4"))
self.marker2.setText(_translate("MainWindow", "M2"))
self.label_9.setText(_translate("MainWindow", "M Pk Threshold"))
self.marker1.setText(_translate("MainWindow", "M1"))
self.mkr_start.setText(_translate("MainWindow", "..."))
self.span_freq.setSuffix(_translate("MainWindow", "MHz"))
self.start_freq.setSuffix(_translate("MainWindow", "MHz"))
self.stop_freq.setSuffix(_translate("MainWindow", "MHz"))
self.mkr_centre.setText(_translate("MainWindow", "..."))
self.marker3.setText(_translate("MainWindow", "M3"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.analyserTab), _translate("MainWindow", "Analyser"))
self.label_18.setText(_translate("MainWindow", "Axes"))
self.signalUp.setText(_translate("MainWindow", "P+"))
self.bMulti.setPrefix(_translate("MainWindow", "B "))
self.gMulti.setPrefix(_translate("MainWindow", "G "))
self.freqR.setText(_translate("MainWindow", "F+"))
self.label_17.setText(_translate("MainWindow", "Orbit"))
self.rMulti.setPrefix(_translate("MainWindow", "R "))
self.label_12.setText(_translate("MainWindow", "+ constant"))
self.timeR.setText(_translate("MainWindow", "T-"))
self.label_4.setText(_translate("MainWindow", "RGB Height Shader Settings"))
self.run3D.setText(_translate("MainWindow", "Run"))
self.label_11.setText(_translate("MainWindow", "x sig dBm"))
self.grid.setText(_translate("MainWindow", "Grid"))
self.gridF.setText(_translate("MainWindow", "..."))
self.signalDown.setText(_translate("MainWindow", "P-"))
self.timeF.setText(_translate("MainWindow", "T+"))
self.label_14.setText(_translate("MainWindow", "Shade = (Colour * dBm + const) ^ exponent"))
self.freqL.setText(_translate("MainWindow", "F-"))
self.gridR.setText(_translate("MainWindow", "..."))
self.glSmooth.setText(_translate("MainWindow", "Smooth"))
self.label_13.setText(_translate("MainWindow", "^ exponent"))
self.glNormals.setText(_translate("MainWindow", "Normals"))
self.orbitR.setText(_translate("MainWindow", "..."))
self.orbitD.setText(_translate("MainWindow", "..."))
self.orbitL.setText(_translate("MainWindow", "..."))
self.orbitU.setText(_translate("MainWindow", "..."))
self.Enabled3D.setText(_translate("MainWindow", "Enable 3D"))
self.reset3D.setText(_translate("MainWindow", "Reset"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.TimeTab), _translate("MainWindow", "3D Spectrum"))
self.menu_Help.setTitle(_translate("MainWindow", "&Help"))
self.menuPreferences.setTitle(_translate("MainWindow", "&Preferences"))
self.actionsetting.setText(_translate("MainWindow", "setting"))
self.actionlevel.setText(_translate("MainWindow", "level"))
self.actionanother.setText(_translate("MainWindow", "another"))
self.actionAbout_QtTinySA.setText(_translate("MainWindow", "About QtTinySA"))
from pyqtgraph import PlotWidget
from pyqtgraph.opengl import GLViewWidget