forked from lktsui/carbon_xs_gui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscalable_mw.py
843 lines (837 loc) · 58.7 KB
/
scalable_mw.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'qt/untitled/main_window_scalable.ui'
#
# Created: Fri Jun 09 10:27:23 2017
# by: pyside-uic 0.2.15 running on PySide 1.2.4
#
# WARNING! All changes made in this file will be lost!
from PySide import QtCore, QtGui
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(1366, 940)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
MainWindow.setSizePolicy(sizePolicy)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.gridLayout = QtGui.QGridLayout(self.centralwidget)
self.gridLayout.setObjectName("gridLayout")
self.splitter_2 = QtGui.QSplitter(self.centralwidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.splitter_2.sizePolicy().hasHeightForWidth())
self.splitter_2.setSizePolicy(sizePolicy)
self.splitter_2.setOrientation(QtCore.Qt.Horizontal)
self.splitter_2.setChildrenCollapsible(False)
self.splitter_2.setObjectName("splitter_2")
self.layoutWidget = QtGui.QWidget(self.splitter_2)
self.layoutWidget.setObjectName("layoutWidget")
self.left_side = QtGui.QVBoxLayout(self.layoutWidget)
self.left_side.setContentsMargins(0, 0, 0, 0)
self.left_side.setObjectName("left_side")
self.label_fitting_params = QtGui.QLabel(self.layoutWidget)
font = QtGui.QFont()
font.setPointSize(16)
self.label_fitting_params.setFont(font)
self.label_fitting_params.setAlignment(QtCore.Qt.AlignCenter)
self.label_fitting_params.setObjectName("label_fitting_params")
self.left_side.addWidget(self.label_fitting_params)
self.parameter_select_buttons = QtGui.QHBoxLayout()
self.parameter_select_buttons.setObjectName("parameter_select_buttons")
self.enable_all_button = QtGui.QPushButton(self.layoutWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.enable_all_button.sizePolicy().hasHeightForWidth())
self.enable_all_button.setSizePolicy(sizePolicy)
self.enable_all_button.setObjectName("enable_all_button")
self.parameter_select_buttons.addWidget(self.enable_all_button)
self.enable_none_button = QtGui.QPushButton(self.layoutWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.enable_none_button.sizePolicy().hasHeightForWidth())
self.enable_none_button.setSizePolicy(sizePolicy)
self.enable_none_button.setObjectName("enable_none_button")
self.parameter_select_buttons.addWidget(self.enable_none_button)
self.enable_invert_button = QtGui.QPushButton(self.layoutWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.enable_invert_button.sizePolicy().hasHeightForWidth())
self.enable_invert_button.setSizePolicy(sizePolicy)
self.enable_invert_button.setObjectName("enable_invert_button")
self.parameter_select_buttons.addWidget(self.enable_invert_button)
self.enable_bg_button = QtGui.QPushButton(self.layoutWidget)
self.enable_bg_button.setObjectName("enable_bg_button")
self.parameter_select_buttons.addWidget(self.enable_bg_button)
self.left_side.addLayout(self.parameter_select_buttons)
self.fitting_parameters_list = QtGui.QGridLayout()
self.fitting_parameters_list.setObjectName("fitting_parameters_list")
self.param_09 = QtGui.QDoubleSpinBox(self.layoutWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.param_09.sizePolicy().hasHeightForWidth())
self.param_09.setSizePolicy(sizePolicy)
self.param_09.setMinimumSize(QtCore.QSize(0, 20))
self.param_09.setObjectName("param_09")
self.fitting_parameters_list.addWidget(self.param_09, 12, 0, 1, 1)
self.param_10 = QtGui.QDoubleSpinBox(self.layoutWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.param_10.sizePolicy().hasHeightForWidth())
self.param_10.setSizePolicy(sizePolicy)
self.param_10.setMinimumSize(QtCore.QSize(0, 20))
self.param_10.setObjectName("param_10")
self.fitting_parameters_list.addWidget(self.param_10, 13, 0, 1, 1)
self.param_16 = QtGui.QDoubleSpinBox(self.layoutWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.param_16.sizePolicy().hasHeightForWidth())
self.param_16.setSizePolicy(sizePolicy)
self.param_16.setMinimumSize(QtCore.QSize(0, 20))
self.param_16.setObjectName("param_16")
self.fitting_parameters_list.addWidget(self.param_16, 19, 0, 1, 1)
self.param_11 = QtGui.QDoubleSpinBox(self.layoutWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.param_11.sizePolicy().hasHeightForWidth())
self.param_11.setSizePolicy(sizePolicy)
self.param_11.setMinimumSize(QtCore.QSize(0, 20))
self.param_11.setObjectName("param_11")
self.fitting_parameters_list.addWidget(self.param_11, 14, 0, 1, 1)
self.param_12 = QtGui.QDoubleSpinBox(self.layoutWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.param_12.sizePolicy().hasHeightForWidth())
self.param_12.setSizePolicy(sizePolicy)
self.param_12.setMinimumSize(QtCore.QSize(0, 20))
self.param_12.setObjectName("param_12")
self.fitting_parameters_list.addWidget(self.param_12, 15, 0, 1, 1)
self.param_enable_02 = QtGui.QCheckBox(self.layoutWidget)
self.param_enable_02.setObjectName("param_enable_02")
self.fitting_parameters_list.addWidget(self.param_enable_02, 5, 2, 1, 1)
self.param_enable_03 = QtGui.QCheckBox(self.layoutWidget)
self.param_enable_03.setObjectName("param_enable_03")
self.fitting_parameters_list.addWidget(self.param_enable_03, 6, 2, 1, 1)
self.param_05 = QtGui.QDoubleSpinBox(self.layoutWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.param_05.sizePolicy().hasHeightForWidth())
self.param_05.setSizePolicy(sizePolicy)
self.param_05.setMinimumSize(QtCore.QSize(0, 20))
self.param_05.setObjectName("param_05")
self.fitting_parameters_list.addWidget(self.param_05, 8, 0, 1, 1)
self.param_06 = QtGui.QDoubleSpinBox(self.layoutWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.param_06.sizePolicy().hasHeightForWidth())
self.param_06.setSizePolicy(sizePolicy)
self.param_06.setMinimumSize(QtCore.QSize(0, 20))
self.param_06.setObjectName("param_06")
self.fitting_parameters_list.addWidget(self.param_06, 9, 0, 1, 1)
self.param_08 = QtGui.QDoubleSpinBox(self.layoutWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.param_08.sizePolicy().hasHeightForWidth())
self.param_08.setSizePolicy(sizePolicy)
self.param_08.setMinimumSize(QtCore.QSize(0, 20))
self.param_08.setObjectName("param_08")
self.fitting_parameters_list.addWidget(self.param_08, 11, 0, 1, 1)
self.param_enable_12 = QtGui.QCheckBox(self.layoutWidget)
self.param_enable_12.setObjectName("param_enable_12")
self.fitting_parameters_list.addWidget(self.param_enable_12, 15, 2, 1, 1)
self.param_label_15 = QtGui.QLabel(self.layoutWidget)
self.param_label_15.setMinimumSize(QtCore.QSize(0, 16))
font = QtGui.QFont()
font.setWeight(75)
font.setBold(True)
self.param_label_15.setFont(font)
self.param_label_15.setObjectName("param_label_15")
self.fitting_parameters_list.addWidget(self.param_label_15, 18, 4, 1, 1)
self.param_label_17 = QtGui.QLabel(self.layoutWidget)
self.param_label_17.setMinimumSize(QtCore.QSize(0, 16))
font = QtGui.QFont()
font.setWeight(75)
font.setBold(True)
self.param_label_17.setFont(font)
self.param_label_17.setObjectName("param_label_17")
self.fitting_parameters_list.addWidget(self.param_label_17, 20, 4, 1, 1)
self.param_label_14 = QtGui.QLabel(self.layoutWidget)
self.param_label_14.setMinimumSize(QtCore.QSize(0, 16))
font = QtGui.QFont()
font.setWeight(75)
font.setBold(True)
self.param_label_14.setFont(font)
self.param_label_14.setObjectName("param_label_14")
self.fitting_parameters_list.addWidget(self.param_label_14, 17, 4, 1, 1)
self.param_label_11 = QtGui.QLabel(self.layoutWidget)
self.param_label_11.setMinimumSize(QtCore.QSize(0, 16))
font = QtGui.QFont()
font.setWeight(75)
font.setBold(True)
self.param_label_11.setFont(font)
self.param_label_11.setObjectName("param_label_11")
self.fitting_parameters_list.addWidget(self.param_label_11, 14, 4, 1, 1)
self.param_label_09 = QtGui.QLabel(self.layoutWidget)
self.param_label_09.setMinimumSize(QtCore.QSize(0, 16))
font = QtGui.QFont()
font.setWeight(75)
font.setBold(True)
self.param_label_09.setFont(font)
self.param_label_09.setObjectName("param_label_09")
self.fitting_parameters_list.addWidget(self.param_label_09, 12, 4, 1, 1)
self.param_label_03 = QtGui.QLabel(self.layoutWidget)
self.param_label_03.setMinimumSize(QtCore.QSize(0, 16))
font = QtGui.QFont()
font.setWeight(75)
font.setBold(True)
self.param_label_03.setFont(font)
self.param_label_03.setObjectName("param_label_03")
self.fitting_parameters_list.addWidget(self.param_label_03, 6, 4, 1, 1)
self.param_label_10 = QtGui.QLabel(self.layoutWidget)
self.param_label_10.setMinimumSize(QtCore.QSize(0, 16))
font = QtGui.QFont()
font.setWeight(75)
font.setBold(True)
self.param_label_10.setFont(font)
self.param_label_10.setObjectName("param_label_10")
self.fitting_parameters_list.addWidget(self.param_label_10, 13, 4, 1, 1)
self.param_label_02 = QtGui.QLabel(self.layoutWidget)
self.param_label_02.setMinimumSize(QtCore.QSize(0, 16))
font = QtGui.QFont()
font.setWeight(75)
font.setBold(True)
self.param_label_02.setFont(font)
self.param_label_02.setObjectName("param_label_02")
self.fitting_parameters_list.addWidget(self.param_label_02, 5, 4, 1, 1)
self.param_label_01 = QtGui.QLabel(self.layoutWidget)
self.param_label_01.setMinimumSize(QtCore.QSize(0, 16))
font = QtGui.QFont()
font.setWeight(75)
font.setBold(True)
self.param_label_01.setFont(font)
self.param_label_01.setObjectName("param_label_01")
self.fitting_parameters_list.addWidget(self.param_label_01, 4, 4, 1, 1)
self.param_enable_09 = QtGui.QCheckBox(self.layoutWidget)
self.param_enable_09.setObjectName("param_enable_09")
self.fitting_parameters_list.addWidget(self.param_enable_09, 12, 2, 1, 1)
self.param_enable_10 = QtGui.QCheckBox(self.layoutWidget)
self.param_enable_10.setObjectName("param_enable_10")
self.fitting_parameters_list.addWidget(self.param_enable_10, 13, 2, 1, 1)
self.param_enable_14 = QtGui.QCheckBox(self.layoutWidget)
self.param_enable_14.setObjectName("param_enable_14")
self.fitting_parameters_list.addWidget(self.param_enable_14, 17, 2, 1, 1)
self.param_enable_01 = QtGui.QCheckBox(self.layoutWidget)
self.param_enable_01.setObjectName("param_enable_01")
self.fitting_parameters_list.addWidget(self.param_enable_01, 4, 2, 1, 1)
self.param_enable_13 = QtGui.QCheckBox(self.layoutWidget)
self.param_enable_13.setObjectName("param_enable_13")
self.fitting_parameters_list.addWidget(self.param_enable_13, 16, 2, 1, 1)
self.param_enable_15 = QtGui.QCheckBox(self.layoutWidget)
self.param_enable_15.setObjectName("param_enable_15")
self.fitting_parameters_list.addWidget(self.param_enable_15, 18, 2, 1, 1)
self.param_00 = QtGui.QDoubleSpinBox(self.layoutWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.param_00.sizePolicy().hasHeightForWidth())
self.param_00.setSizePolicy(sizePolicy)
self.param_00.setMinimumSize(QtCore.QSize(0, 20))
self.param_00.setObjectName("param_00")
self.fitting_parameters_list.addWidget(self.param_00, 3, 0, 1, 1)
self.param_enable_17 = QtGui.QCheckBox(self.layoutWidget)
self.param_enable_17.setObjectName("param_enable_17")
self.fitting_parameters_list.addWidget(self.param_enable_17, 20, 2, 1, 1)
self.param_07 = QtGui.QDoubleSpinBox(self.layoutWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.param_07.sizePolicy().hasHeightForWidth())
self.param_07.setSizePolicy(sizePolicy)
self.param_07.setMinimumSize(QtCore.QSize(0, 20))
self.param_07.setObjectName("param_07")
self.fitting_parameters_list.addWidget(self.param_07, 10, 0, 1, 1)
self.param_13 = QtGui.QDoubleSpinBox(self.layoutWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.param_13.sizePolicy().hasHeightForWidth())
self.param_13.setSizePolicy(sizePolicy)
self.param_13.setMinimumSize(QtCore.QSize(0, 20))
self.param_13.setObjectName("param_13")
self.fitting_parameters_list.addWidget(self.param_13, 16, 0, 1, 1)
self.param_14 = QtGui.QDoubleSpinBox(self.layoutWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.param_14.sizePolicy().hasHeightForWidth())
self.param_14.setSizePolicy(sizePolicy)
self.param_14.setMinimumSize(QtCore.QSize(0, 20))
self.param_14.setObjectName("param_14")
self.fitting_parameters_list.addWidget(self.param_14, 17, 0, 1, 1)
self.param_17 = QtGui.QDoubleSpinBox(self.layoutWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.param_17.sizePolicy().hasHeightForWidth())
self.param_17.setSizePolicy(sizePolicy)
self.param_17.setMinimumSize(QtCore.QSize(0, 20))
self.param_17.setObjectName("param_17")
self.fitting_parameters_list.addWidget(self.param_17, 20, 0, 1, 1)
self.param_15 = QtGui.QDoubleSpinBox(self.layoutWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.param_15.sizePolicy().hasHeightForWidth())
self.param_15.setSizePolicy(sizePolicy)
self.param_15.setMinimumSize(QtCore.QSize(0, 20))
self.param_15.setObjectName("param_15")
self.fitting_parameters_list.addWidget(self.param_15, 18, 0, 1, 1)
self.param_label_06 = QtGui.QLabel(self.layoutWidget)
self.param_label_06.setMinimumSize(QtCore.QSize(0, 16))
font = QtGui.QFont()
font.setWeight(75)
font.setBold(True)
self.param_label_06.setFont(font)
self.param_label_06.setObjectName("param_label_06")
self.fitting_parameters_list.addWidget(self.param_label_06, 9, 4, 1, 1)
self.param_label_05 = QtGui.QLabel(self.layoutWidget)
self.param_label_05.setMinimumSize(QtCore.QSize(0, 16))
font = QtGui.QFont()
font.setWeight(75)
font.setBold(True)
self.param_label_05.setFont(font)
self.param_label_05.setObjectName("param_label_05")
self.fitting_parameters_list.addWidget(self.param_label_05, 8, 4, 1, 1)
self.param_label_04 = QtGui.QLabel(self.layoutWidget)
self.param_label_04.setMinimumSize(QtCore.QSize(0, 16))
font = QtGui.QFont()
font.setWeight(75)
font.setBold(True)
self.param_label_04.setFont(font)
self.param_label_04.setObjectName("param_label_04")
self.fitting_parameters_list.addWidget(self.param_label_04, 7, 4, 1, 1)
self.param_label_08 = QtGui.QLabel(self.layoutWidget)
self.param_label_08.setMinimumSize(QtCore.QSize(0, 16))
font = QtGui.QFont()
font.setWeight(75)
font.setBold(True)
self.param_label_08.setFont(font)
self.param_label_08.setObjectName("param_label_08")
self.fitting_parameters_list.addWidget(self.param_label_08, 11, 4, 1, 1)
self.param_label_12 = QtGui.QLabel(self.layoutWidget)
self.param_label_12.setMinimumSize(QtCore.QSize(0, 16))
font = QtGui.QFont()
font.setWeight(75)
font.setBold(True)
self.param_label_12.setFont(font)
self.param_label_12.setObjectName("param_label_12")
self.fitting_parameters_list.addWidget(self.param_label_12, 15, 4, 1, 1)
self.param_label_07 = QtGui.QLabel(self.layoutWidget)
self.param_label_07.setMinimumSize(QtCore.QSize(0, 16))
font = QtGui.QFont()
font.setWeight(75)
font.setBold(True)
self.param_label_07.setFont(font)
self.param_label_07.setObjectName("param_label_07")
self.fitting_parameters_list.addWidget(self.param_label_07, 10, 4, 1, 1)
self.param_label_16 = QtGui.QLabel(self.layoutWidget)
self.param_label_16.setMinimumSize(QtCore.QSize(0, 16))
font = QtGui.QFont()
font.setWeight(75)
font.setBold(True)
self.param_label_16.setFont(font)
self.param_label_16.setObjectName("param_label_16")
self.fitting_parameters_list.addWidget(self.param_label_16, 19, 4, 1, 1)
self.param_label_13 = QtGui.QLabel(self.layoutWidget)
self.param_label_13.setMinimumSize(QtCore.QSize(0, 16))
font = QtGui.QFont()
font.setWeight(75)
font.setBold(True)
self.param_label_13.setFont(font)
self.param_label_13.setObjectName("param_label_13")
self.fitting_parameters_list.addWidget(self.param_label_13, 16, 4, 1, 1)
self.param_label_00 = QtGui.QLabel(self.layoutWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.param_label_00.sizePolicy().hasHeightForWidth())
self.param_label_00.setSizePolicy(sizePolicy)
self.param_label_00.setMinimumSize(QtCore.QSize(0, 16))
font = QtGui.QFont()
font.setWeight(75)
font.setBold(True)
self.param_label_00.setFont(font)
self.param_label_00.setObjectName("param_label_00")
self.fitting_parameters_list.addWidget(self.param_label_00, 3, 4, 1, 1)
self.param_02 = QtGui.QDoubleSpinBox(self.layoutWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.param_02.sizePolicy().hasHeightForWidth())
self.param_02.setSizePolicy(sizePolicy)
self.param_02.setMinimumSize(QtCore.QSize(0, 20))
self.param_02.setObjectName("param_02")
self.fitting_parameters_list.addWidget(self.param_02, 5, 0, 1, 1)
self.param_03 = QtGui.QDoubleSpinBox(self.layoutWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.param_03.sizePolicy().hasHeightForWidth())
self.param_03.setSizePolicy(sizePolicy)
self.param_03.setMinimumSize(QtCore.QSize(0, 20))
self.param_03.setObjectName("param_03")
self.fitting_parameters_list.addWidget(self.param_03, 6, 0, 1, 1)
self.param_04 = QtGui.QDoubleSpinBox(self.layoutWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.param_04.sizePolicy().hasHeightForWidth())
self.param_04.setSizePolicy(sizePolicy)
self.param_04.setMinimumSize(QtCore.QSize(0, 20))
self.param_04.setObjectName("param_04")
self.fitting_parameters_list.addWidget(self.param_04, 7, 0, 1, 1)
self.param_enable_08 = QtGui.QCheckBox(self.layoutWidget)
self.param_enable_08.setObjectName("param_enable_08")
self.fitting_parameters_list.addWidget(self.param_enable_08, 11, 2, 1, 1)
self.param_enable_00 = QtGui.QCheckBox(self.layoutWidget)
self.param_enable_00.setObjectName("param_enable_00")
self.fitting_parameters_list.addWidget(self.param_enable_00, 3, 2, 1, 1)
self.param_enable_16 = QtGui.QCheckBox(self.layoutWidget)
self.param_enable_16.setObjectName("param_enable_16")
self.fitting_parameters_list.addWidget(self.param_enable_16, 19, 2, 1, 1)
self.param_01 = QtGui.QDoubleSpinBox(self.layoutWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.param_01.sizePolicy().hasHeightForWidth())
self.param_01.setSizePolicy(sizePolicy)
self.param_01.setMinimumSize(QtCore.QSize(0, 20))
self.param_01.setObjectName("param_01")
self.fitting_parameters_list.addWidget(self.param_01, 4, 0, 1, 1)
self.param_enable_11 = QtGui.QCheckBox(self.layoutWidget)
self.param_enable_11.setObjectName("param_enable_11")
self.fitting_parameters_list.addWidget(self.param_enable_11, 14, 2, 1, 1)
self.param_enable_04 = QtGui.QCheckBox(self.layoutWidget)
self.param_enable_04.setObjectName("param_enable_04")
self.fitting_parameters_list.addWidget(self.param_enable_04, 7, 2, 1, 1)
self.param_enable_06 = QtGui.QCheckBox(self.layoutWidget)
self.param_enable_06.setObjectName("param_enable_06")
self.fitting_parameters_list.addWidget(self.param_enable_06, 9, 2, 1, 1)
self.param_enable_07 = QtGui.QCheckBox(self.layoutWidget)
self.param_enable_07.setObjectName("param_enable_07")
self.fitting_parameters_list.addWidget(self.param_enable_07, 10, 2, 1, 1)
self.param_enable_05 = QtGui.QCheckBox(self.layoutWidget)
self.param_enable_05.setObjectName("param_enable_05")
self.fitting_parameters_list.addWidget(self.param_enable_05, 8, 2, 1, 1)
self.left_side.addLayout(self.fitting_parameters_list)
self.label_fitting_settings = QtGui.QLabel(self.layoutWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_fitting_settings.sizePolicy().hasHeightForWidth())
self.label_fitting_settings.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(16)
font.setWeight(50)
font.setBold(False)
self.label_fitting_settings.setFont(font)
self.label_fitting_settings.setAlignment(QtCore.Qt.AlignCenter)
self.label_fitting_settings.setObjectName("label_fitting_settings")
self.left_side.addWidget(self.label_fitting_settings)
self.fitting_settings_list = QtGui.QGridLayout()
self.fitting_settings_list.setObjectName("fitting_settings_list")
self.label_5 = QtGui.QLabel(self.layoutWidget)
self.label_5.setObjectName("label_5")
self.fitting_settings_list.addWidget(self.label_5, 2, 0, 1, 1)
self.theta_min_value = QtGui.QDoubleSpinBox(self.layoutWidget)
self.theta_min_value.setMaximum(180.0)
self.theta_min_value.setSingleStep(0.1)
self.theta_min_value.setObjectName("theta_min_value")
self.fitting_settings_list.addWidget(self.theta_min_value, 1, 0, 1, 1)
self.epsilon = QtGui.QDoubleSpinBox(self.layoutWidget)
self.epsilon.setDecimals(5)
self.epsilon.setObjectName("epsilon")
self.fitting_settings_list.addWidget(self.epsilon, 1, 3, 1, 1)
self.iterations = QtGui.QSpinBox(self.layoutWidget)
self.iterations.setMaximum(9999)
self.iterations.setObjectName("iterations")
self.fitting_settings_list.addWidget(self.iterations, 1, 2, 1, 1)
self.theta_min_label = QtGui.QLabel(self.layoutWidget)
self.theta_min_label.setObjectName("theta_min_label")
self.fitting_settings_list.addWidget(self.theta_min_label, 0, 0, 1, 1)
self.label_8 = QtGui.QLabel(self.layoutWidget)
self.label_8.setObjectName("label_8")
self.fitting_settings_list.addWidget(self.label_8, 2, 3, 1, 1)
self.label_4 = QtGui.QLabel(self.layoutWidget)
self.label_4.setObjectName("label_4")
self.fitting_settings_list.addWidget(self.label_4, 0, 3, 1, 1)
self.number_layers = QtGui.QComboBox(self.layoutWidget)
self.number_layers.setObjectName("number_layers")
self.number_layers.addItem("")
self.number_layers.addItem("")
self.fitting_settings_list.addWidget(self.number_layers, 3, 1, 1, 1)
self.theta_max_label = QtGui.QLabel(self.layoutWidget)
self.theta_max_label.setObjectName("theta_max_label")
self.fitting_settings_list.addWidget(self.theta_max_label, 0, 1, 1, 1)
self.nskip = QtGui.QSpinBox(self.layoutWidget)
self.nskip.setObjectName("nskip")
self.fitting_settings_list.addWidget(self.nskip, 3, 0, 1, 1)
self.label_6 = QtGui.QLabel(self.layoutWidget)
self.label_6.setObjectName("label_6")
self.fitting_settings_list.addWidget(self.label_6, 2, 1, 1, 1)
self.theta_max_value = QtGui.QDoubleSpinBox(self.layoutWidget)
self.theta_max_value.setMaximum(180.0)
self.theta_max_value.setSingleStep(0.1)
self.theta_max_value.setObjectName("theta_max_value")
self.fitting_settings_list.addWidget(self.theta_max_value, 1, 1, 1, 1)
self.label_3 = QtGui.QLabel(self.layoutWidget)
self.label_3.setObjectName("label_3")
self.fitting_settings_list.addWidget(self.label_3, 0, 2, 1, 1)
self.n_sg = QtGui.QSpinBox(self.layoutWidget)
self.n_sg.setObjectName("n_sg")
self.fitting_settings_list.addWidget(self.n_sg, 3, 3, 1, 1)
self.n_phi = QtGui.QSpinBox(self.layoutWidget)
self.n_phi.setObjectName("n_phi")
self.fitting_settings_list.addWidget(self.n_phi, 3, 2, 1, 1)
self.label_7 = QtGui.QLabel(self.layoutWidget)
self.label_7.setObjectName("label_7")
self.fitting_settings_list.addWidget(self.label_7, 2, 2, 1, 1)
self.left_side.addLayout(self.fitting_settings_list)
self.label_diffractometer_settings = QtGui.QLabel(self.layoutWidget)
font = QtGui.QFont()
font.setPointSize(16)
self.label_diffractometer_settings.setFont(font)
self.label_diffractometer_settings.setAlignment(QtCore.Qt.AlignCenter)
self.label_diffractometer_settings.setObjectName("label_diffractometer_settings")
self.left_side.addWidget(self.label_diffractometer_settings)
self.diffractometer_settings_list = QtGui.QGridLayout()
self.diffractometer_settings_list.setObjectName("diffractometer_settings_list")
self.sample_depth_label = QtGui.QLabel(self.layoutWidget)
self.sample_depth_label.setObjectName("sample_depth_label")
self.diffractometer_settings_list.addWidget(self.sample_depth_label, 0, 1, 1, 1)
self.sample_density_label = QtGui.QLabel(self.layoutWidget)
self.sample_density_label.setObjectName("sample_density_label")
self.diffractometer_settings_list.addWidget(self.sample_density_label, 2, 2, 1, 1)
self.wavelength_label = QtGui.QLabel(self.layoutWidget)
self.wavelength_label.setObjectName("wavelength_label")
self.diffractometer_settings_list.addWidget(self.wavelength_label, 0, 0, 1, 1)
self.sample_width_label = QtGui.QLabel(self.layoutWidget)
self.sample_width_label.setObjectName("sample_width_label")
self.diffractometer_settings_list.addWidget(self.sample_width_label, 0, 2, 1, 1)
self.beam_width_label = QtGui.QLabel(self.layoutWidget)
self.beam_width_label.setObjectName("beam_width_label")
self.diffractometer_settings_list.addWidget(self.beam_width_label, 2, 1, 1, 1)
self.sample_depth = QtGui.QDoubleSpinBox(self.layoutWidget)
self.sample_depth.setDecimals(5)
self.sample_depth.setMaximum(9999.0)
self.sample_depth.setObjectName("sample_depth")
self.diffractometer_settings_list.addWidget(self.sample_depth, 1, 1, 1, 1)
self.wavelength = QtGui.QDoubleSpinBox(self.layoutWidget)
self.wavelength.setDecimals(5)
self.wavelength.setMaximum(9999.0)
self.wavelength.setObjectName("wavelength")
self.diffractometer_settings_list.addWidget(self.wavelength, 1, 0, 1, 1)
self.goniometer_radius_label = QtGui.QLabel(self.layoutWidget)
self.goniometer_radius_label.setObjectName("goniometer_radius_label")
self.diffractometer_settings_list.addWidget(self.goniometer_radius_label, 2, 0, 1, 1)
self.beam_width = QtGui.QDoubleSpinBox(self.layoutWidget)
self.beam_width.setDecimals(5)
self.beam_width.setMaximum(9999.0)
self.beam_width.setObjectName("beam_width")
self.diffractometer_settings_list.addWidget(self.beam_width, 3, 1, 1, 1)
self.sample_width = QtGui.QDoubleSpinBox(self.layoutWidget)
self.sample_width.setDecimals(5)
self.sample_width.setMaximum(9999.0)
self.sample_width.setObjectName("sample_width")
self.diffractometer_settings_list.addWidget(self.sample_width, 1, 2, 1, 1)
self.goniometer_radius = QtGui.QDoubleSpinBox(self.layoutWidget)
self.goniometer_radius.setDecimals(5)
self.goniometer_radius.setMaximum(9999.0)
self.goniometer_radius.setObjectName("goniometer_radius")
self.diffractometer_settings_list.addWidget(self.goniometer_radius, 3, 0, 1, 1)
self.sample_density = QtGui.QDoubleSpinBox(self.layoutWidget)
self.sample_density.setDecimals(5)
self.sample_density.setMaximum(9999.0)
self.sample_density.setSingleStep(0.01)
self.sample_density.setObjectName("sample_density")
self.diffractometer_settings_list.addWidget(self.sample_density, 3, 2, 1, 1)
self.left_side.addLayout(self.diffractometer_settings_list)
spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
self.left_side.addItem(spacerItem)
self.splitter = QtGui.QSplitter(self.splitter_2)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.splitter.sizePolicy().hasHeightForWidth())
self.splitter.setSizePolicy(sizePolicy)
self.splitter.setOrientation(QtCore.Qt.Vertical)
self.splitter.setChildrenCollapsible(False)
self.splitter.setObjectName("splitter")
self.layoutWidget1 = QtGui.QWidget(self.splitter)
self.layoutWidget1.setObjectName("layoutWidget1")
self.mplvl = QtGui.QVBoxLayout(self.layoutWidget1)
self.mplvl.setContentsMargins(0, 0, 0, 0)
self.mplvl.setObjectName("mplvl")
self.console = QtGui.QTextBrowser(self.splitter)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(2)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.console.sizePolicy().hasHeightForWidth())
self.console.setSizePolicy(sizePolicy)
self.console.setObjectName("console")
self.gridLayout.addWidget(self.splitter_2, 0, 0, 1, 1)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 1366, 21))
self.menubar.setNativeMenuBar(False)
self.menubar.setObjectName("menubar")
self.menu_file = QtGui.QMenu(self.menubar)
self.menu_file.setObjectName("menu_file")
self.menu_category_import = QtGui.QMenu(self.menu_file)
self.menu_category_import.setObjectName("menu_category_import")
self.menuExport = QtGui.QMenu(self.menu_file)
self.menuExport.setObjectName("menuExport")
self.menuFitting = QtGui.QMenu(self.menubar)
self.menuFitting.setObjectName("menuFitting")
self.menuHelp = QtGui.QMenu(self.menubar)
self.menuHelp.setObjectName("menuHelp")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtGui.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.menu_open_xrd_pattern = QtGui.QAction(MainWindow)
self.menu_open_xrd_pattern.setObjectName("menu_open_xrd_pattern")
self.menu_import_carboninp = QtGui.QAction(MainWindow)
self.menu_import_carboninp.setObjectName("menu_import_carboninp")
self.menu_import_diffsettings = QtGui.QAction(MainWindow)
self.menu_import_diffsettings.setObjectName("menu_import_diffsettings")
self.menu_import_fittingparams = QtGui.QAction(MainWindow)
self.menu_import_fittingparams.setObjectName("menu_import_fittingparams")
self.menu_import_fittingsettings = QtGui.QAction(MainWindow)
self.menu_import_fittingsettings.setObjectName("menu_import_fittingsettings")
self.menu_export_carboninp = QtGui.QAction(MainWindow)
self.menu_export_carboninp.setObjectName("menu_export_carboninp")
self.menu_export_diffsettings = QtGui.QAction(MainWindow)
self.menu_export_diffsettings.setObjectName("menu_export_diffsettings")
self.menu_export_fittingparams = QtGui.QAction(MainWindow)
self.menu_export_fittingparams.setObjectName("menu_export_fittingparams")
self.menu_export_fittingsettings = QtGui.QAction(MainWindow)
self.menu_export_fittingsettings.setObjectName("menu_export_fittingsettings")
self.menu_calculate_pattern = QtGui.QAction(MainWindow)
self.menu_calculate_pattern.setObjectName("menu_calculate_pattern")
self.menu_start_fit = QtGui.QAction(MainWindow)
self.menu_start_fit.setObjectName("menu_start_fit")
self.menu_abort_fit = QtGui.QAction(MainWindow)
self.menu_abort_fit.setObjectName("menu_abort_fit")
self.menu_tutorial = QtGui.QAction(MainWindow)
self.menu_tutorial.setObjectName("menu_tutorial")
self.menu_bugreport = QtGui.QAction(MainWindow)
self.menu_bugreport.setObjectName("menu_bugreport")
self.menu_about = QtGui.QAction(MainWindow)
self.menu_about.setObjectName("menu_about")
self.menu_exit = QtGui.QAction(MainWindow)
self.menu_exit.setObjectName("menu_exit")
self.menu_category_import.addAction(self.menu_import_carboninp)
self.menu_category_import.addAction(self.menu_import_fittingparams)
self.menu_category_import.addAction(self.menu_import_fittingsettings)
self.menu_category_import.addAction(self.menu_import_diffsettings)
self.menuExport.addAction(self.menu_export_carboninp)
self.menuExport.addAction(self.menu_export_fittingparams)
self.menuExport.addAction(self.menu_export_fittingsettings)
self.menuExport.addAction(self.menu_export_diffsettings)
self.menu_file.addAction(self.menu_open_xrd_pattern)
self.menu_file.addAction(self.menu_category_import.menuAction())
self.menu_file.addAction(self.menuExport.menuAction())
self.menu_file.addAction(self.menu_exit)
self.menuFitting.addAction(self.menu_calculate_pattern)
self.menuFitting.addAction(self.menu_start_fit)
self.menuFitting.addAction(self.menu_abort_fit)
self.menuHelp.addAction(self.menu_tutorial)
self.menuHelp.addAction(self.menu_bugreport)
self.menuHelp.addAction(self.menu_about)
self.menubar.addAction(self.menu_file.menuAction())
self.menubar.addAction(self.menuFitting.menuAction())
self.menubar.addAction(self.menuHelp.menuAction())
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
MainWindow.setTabOrder(self.enable_all_button, self.enable_none_button)
MainWindow.setTabOrder(self.enable_none_button, self.enable_invert_button)
MainWindow.setTabOrder(self.enable_invert_button, self.enable_bg_button)
MainWindow.setTabOrder(self.enable_bg_button, self.param_00)
MainWindow.setTabOrder(self.param_00, self.param_enable_00)
MainWindow.setTabOrder(self.param_enable_00, self.param_01)
MainWindow.setTabOrder(self.param_01, self.param_enable_01)
MainWindow.setTabOrder(self.param_enable_01, self.param_02)
MainWindow.setTabOrder(self.param_02, self.param_enable_02)
MainWindow.setTabOrder(self.param_enable_02, self.param_03)
MainWindow.setTabOrder(self.param_03, self.param_enable_03)
MainWindow.setTabOrder(self.param_enable_03, self.param_04)
MainWindow.setTabOrder(self.param_04, self.param_enable_04)
MainWindow.setTabOrder(self.param_enable_04, self.param_05)
MainWindow.setTabOrder(self.param_05, self.param_enable_05)
MainWindow.setTabOrder(self.param_enable_05, self.param_06)
MainWindow.setTabOrder(self.param_06, self.param_enable_06)
MainWindow.setTabOrder(self.param_enable_06, self.param_07)
MainWindow.setTabOrder(self.param_07, self.param_enable_07)
MainWindow.setTabOrder(self.param_enable_07, self.param_08)
MainWindow.setTabOrder(self.param_08, self.param_enable_08)
MainWindow.setTabOrder(self.param_enable_08, self.param_09)
MainWindow.setTabOrder(self.param_09, self.param_enable_09)
MainWindow.setTabOrder(self.param_enable_09, self.param_10)
MainWindow.setTabOrder(self.param_10, self.param_enable_10)
MainWindow.setTabOrder(self.param_enable_10, self.param_11)
MainWindow.setTabOrder(self.param_11, self.param_enable_11)
MainWindow.setTabOrder(self.param_enable_11, self.param_12)
MainWindow.setTabOrder(self.param_12, self.param_enable_12)
MainWindow.setTabOrder(self.param_enable_12, self.param_13)
MainWindow.setTabOrder(self.param_13, self.param_enable_13)
MainWindow.setTabOrder(self.param_enable_13, self.param_14)
MainWindow.setTabOrder(self.param_14, self.param_enable_14)
MainWindow.setTabOrder(self.param_enable_14, self.param_15)
MainWindow.setTabOrder(self.param_15, self.param_enable_15)
MainWindow.setTabOrder(self.param_enable_15, self.param_16)
MainWindow.setTabOrder(self.param_16, self.param_enable_16)
MainWindow.setTabOrder(self.param_enable_16, self.param_17)
MainWindow.setTabOrder(self.param_17, self.param_enable_17)
MainWindow.setTabOrder(self.param_enable_17, self.theta_min_value)
MainWindow.setTabOrder(self.theta_min_value, self.theta_max_value)
MainWindow.setTabOrder(self.theta_max_value, self.iterations)
MainWindow.setTabOrder(self.iterations, self.epsilon)
MainWindow.setTabOrder(self.epsilon, self.nskip)
MainWindow.setTabOrder(self.nskip, self.number_layers)
MainWindow.setTabOrder(self.number_layers, self.n_phi)
MainWindow.setTabOrder(self.n_phi, self.n_sg)
MainWindow.setTabOrder(self.n_sg, self.wavelength)
MainWindow.setTabOrder(self.wavelength, self.sample_depth)
MainWindow.setTabOrder(self.sample_depth, self.sample_width)
MainWindow.setTabOrder(self.sample_width, self.goniometer_radius)
MainWindow.setTabOrder(self.goniometer_radius, self.beam_width)
MainWindow.setTabOrder(self.beam_width, self.sample_density)
MainWindow.setTabOrder(self.sample_density, self.console)
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "MainWindow", None, QtGui.QApplication.UnicodeUTF8))
self.label_fitting_params.setText(QtGui.QApplication.translate("MainWindow", "Fitting Parameters", None, QtGui.QApplication.UnicodeUTF8))
self.enable_all_button.setToolTip(QtGui.QApplication.translate("MainWindow", "Enable all parameters.", None, QtGui.QApplication.UnicodeUTF8))
self.enable_all_button.setText(QtGui.QApplication.translate("MainWindow", "All", None, QtGui.QApplication.UnicodeUTF8))
self.enable_none_button.setToolTip(QtGui.QApplication.translate("MainWindow", "Disable all parameters.", None, QtGui.QApplication.UnicodeUTF8))
self.enable_none_button.setText(QtGui.QApplication.translate("MainWindow", "None", None, QtGui.QApplication.UnicodeUTF8))
self.enable_invert_button.setToolTip(QtGui.QApplication.translate("MainWindow", "Invert currently enabled/disabled parameters.", None, QtGui.QApplication.UnicodeUTF8))
self.enable_invert_button.setText(QtGui.QApplication.translate("MainWindow", "Invert", None, QtGui.QApplication.UnicodeUTF8))
self.enable_bg_button.setToolTip(QtGui.QApplication.translate("MainWindow", "Enable only background parameters", None, QtGui.QApplication.UnicodeUTF8))
self.enable_bg_button.setText(QtGui.QApplication.translate("MainWindow", "Background Only", None, QtGui.QApplication.UnicodeUTF8))
self.param_09.setToolTip(QtGui.QApplication.translate("MainWindow", "<i>L<sub>a</sub></i> - in-plane coherence length (Angstrom)", None, QtGui.QApplication.UnicodeUTF8))
self.param_10.setToolTip(QtGui.QApplication.translate("MainWindow", "<i>M</i> - Total number of layers.", None, QtGui.QApplication.UnicodeUTF8))
self.param_16.setToolTip(QtGui.QApplication.translate("MainWindow", "Debye Waller Temperature Factor, (Angstrom^2)", None, QtGui.QApplication.UnicodeUTF8))
self.param_11.setToolTip(QtGui.QApplication.translate("MainWindow", "<i>SM</i> - Width of the M distribution", None, QtGui.QApplication.UnicodeUTF8))
self.param_12.setToolTip(QtGui.QApplication.translate("MainWindow", "<i>D<sub>ab</sub></i> - in-plane strain", None, QtGui.QApplication.UnicodeUTF8))
self.param_enable_02.setText(QtGui.QApplication.translate("MainWindow", "Enable", None, QtGui.QApplication.UnicodeUTF8))
self.param_enable_03.setText(QtGui.QApplication.translate("MainWindow", "Enable", None, QtGui.QApplication.UnicodeUTF8))
self.param_05.setToolTip(QtGui.QApplication.translate("MainWindow", "Background S**4 factor (BG = Z + A*S + B*S^2 + C*S^3 + <b>D</b>*S^4 + F/S)", None, QtGui.QApplication.UnicodeUTF8))
self.param_06.setToolTip(QtGui.QApplication.translate("MainWindow", "Background inverse factor. (BG = Z + AS + BS^2 + CS^3 + D*S^4 + <b>F</b>/S)", None, QtGui.QApplication.UnicodeUTF8))
self.param_08.setToolTip(QtGui.QApplication.translate("MainWindow", "<i>d<sub>002</sub></i> interlayer spacing (Angstrom)", None, QtGui.QApplication.UnicodeUTF8))
self.param_enable_12.setText(QtGui.QApplication.translate("MainWindow", "Enable", None, QtGui.QApplication.UnicodeUTF8))
self.param_label_15.setText(QtGui.QApplication.translate("MainWindow", "Pt, Probability of 3R Stacking", None, QtGui.QApplication.UnicodeUTF8))
self.param_label_17.setText(QtGui.QApplication.translate("MainWindow", "PO, Preferential Orientation Factor", None, QtGui.QApplication.UnicodeUTF8))
self.param_label_14.setText(QtGui.QApplication.translate("MainWindow", "Pr, Probability of Random Stacking", None, QtGui.QApplication.UnicodeUTF8))
self.param_label_11.setText(QtGui.QApplication.translate("MainWindow", "SM, Width of M Distribution", None, QtGui.QApplication.UnicodeUTF8))
self.param_label_09.setText(QtGui.QApplication.translate("MainWindow", "La, Coherence Length", None, QtGui.QApplication.UnicodeUTF8))
self.param_label_03.setText(QtGui.QApplication.translate("MainWindow", "Background S^2", None, QtGui.QApplication.UnicodeUTF8))
self.param_label_10.setText(QtGui.QApplication.translate("MainWindow", "M, Number of Layers", None, QtGui.QApplication.UnicodeUTF8))
self.param_label_02.setText(QtGui.QApplication.translate("MainWindow", "Background S", None, QtGui.QApplication.UnicodeUTF8))
self.param_label_01.setText(QtGui.QApplication.translate("MainWindow", "Background Constant", None, QtGui.QApplication.UnicodeUTF8))
self.param_enable_09.setText(QtGui.QApplication.translate("MainWindow", "Enable", None, QtGui.QApplication.UnicodeUTF8))
self.param_enable_10.setText(QtGui.QApplication.translate("MainWindow", "Enable", None, QtGui.QApplication.UnicodeUTF8))
self.param_enable_14.setText(QtGui.QApplication.translate("MainWindow", "Enable", None, QtGui.QApplication.UnicodeUTF8))
self.param_enable_01.setText(QtGui.QApplication.translate("MainWindow", "Enable", None, QtGui.QApplication.UnicodeUTF8))
self.param_enable_13.setText(QtGui.QApplication.translate("MainWindow", "Enable", None, QtGui.QApplication.UnicodeUTF8))
self.param_enable_15.setText(QtGui.QApplication.translate("MainWindow", "Enable", None, QtGui.QApplication.UnicodeUTF8))
self.param_00.setToolTip(QtGui.QApplication.translate("MainWindow", "Multiplicative scaling factor for the diffraction pattern.", None, QtGui.QApplication.UnicodeUTF8))
self.param_enable_17.setText(QtGui.QApplication.translate("MainWindow", "Enable", None, QtGui.QApplication.UnicodeUTF8))
self.param_07.setToolTip(QtGui.QApplication.translate("MainWindow", "<i>a</i> direction lattice constant.", None, QtGui.QApplication.UnicodeUTF8))
self.param_13.setToolTip(QtGui.QApplication.translate("MainWindow", "<i>Del</i> - inter plane strain per layer", None, QtGui.QApplication.UnicodeUTF8))
self.param_14.setToolTip(QtGui.QApplication.translate("MainWindow", "<i>Pr</i> - probability of random stacking per layer. Must be between 0 and 1.", None, QtGui.QApplication.UnicodeUTF8))
self.param_17.setToolTip(QtGui.QApplication.translate("MainWindow", "<i>PO</i> Preferential orientation factor", None, QtGui.QApplication.UnicodeUTF8))
self.param_15.setToolTip(QtGui.QApplication.translate("MainWindow", "<i>g</i> - Fraction of low strain carbon in 1 layer model. OR <i>Pt</i> - probability of 3R stacking in 2 layer model. Must be between 0 and 1.", None, QtGui.QApplication.UnicodeUTF8))
self.param_label_06.setText(QtGui.QApplication.translate("MainWindow", "Background 1/S", None, QtGui.QApplication.UnicodeUTF8))
self.param_label_05.setText(QtGui.QApplication.translate("MainWindow", "Background S^4", None, QtGui.QApplication.UnicodeUTF8))
self.param_label_04.setText(QtGui.QApplication.translate("MainWindow", "Background S^3", None, QtGui.QApplication.UnicodeUTF8))
self.param_label_08.setText(QtGui.QApplication.translate("MainWindow", "d002, Interlayer Spacing (Angstrom)", None, QtGui.QApplication.UnicodeUTF8))
self.param_label_12.setText(QtGui.QApplication.translate("MainWindow", "DAB, In plane strain", None, QtGui.QApplication.UnicodeUTF8))
self.param_label_07.setText(QtGui.QApplication.translate("MainWindow", "A, In Plane Cell Constant (Angstrom)", None, QtGui.QApplication.UnicodeUTF8))
self.param_label_16.setText(QtGui.QApplication.translate("MainWindow", "Debye Waller Temperature Factor, (Angstrom^2)", None, QtGui.QApplication.UnicodeUTF8))
self.param_label_13.setText(QtGui.QApplication.translate("MainWindow", "del, Inter Plane Strain", None, QtGui.QApplication.UnicodeUTF8))
self.param_label_00.setText(QtGui.QApplication.translate("MainWindow", "Scale Factor (a.u.)", None, QtGui.QApplication.UnicodeUTF8))
self.param_02.setToolTip(QtGui.QApplication.translate("MainWindow", "Background linear factor. (BG = Z + <b>A</b>*S + B*S^2 + C*S^3 + D*S^4 + F/S)", None, QtGui.QApplication.UnicodeUTF8))
self.param_03.setToolTip(QtGui.QApplication.translate("MainWindow", "Background quadratic factor. (BG = Z + A*S + <b>B</b>*S^2 + C*S^3 + D*S^4 + F/S)", None, QtGui.QApplication.UnicodeUTF8))
self.param_04.setToolTip(QtGui.QApplication.translate("MainWindow", "Background cubic factor. (BG = Z + A*S + B*S^2 + <b>C</b>*S^3 + D*S^4 + F/S)", None, QtGui.QApplication.UnicodeUTF8))
self.param_enable_08.setText(QtGui.QApplication.translate("MainWindow", "Enable", None, QtGui.QApplication.UnicodeUTF8))
self.param_enable_00.setText(QtGui.QApplication.translate("MainWindow", "Enable", None, QtGui.QApplication.UnicodeUTF8))
self.param_enable_16.setText(QtGui.QApplication.translate("MainWindow", "Enable", None, QtGui.QApplication.UnicodeUTF8))
self.param_01.setToolTip(QtGui.QApplication.translate("MainWindow", "Background constant factor. (BG = <b>Z</b> + A*S + B*S^2 + C*S^3 + D*S^4 + F/S)", None, QtGui.QApplication.UnicodeUTF8))
self.param_enable_11.setText(QtGui.QApplication.translate("MainWindow", "Enable", None, QtGui.QApplication.UnicodeUTF8))
self.param_enable_04.setText(QtGui.QApplication.translate("MainWindow", "Enable", None, QtGui.QApplication.UnicodeUTF8))
self.param_enable_06.setText(QtGui.QApplication.translate("MainWindow", "Enable", None, QtGui.QApplication.UnicodeUTF8))
self.param_enable_07.setText(QtGui.QApplication.translate("MainWindow", "Enable", None, QtGui.QApplication.UnicodeUTF8))
self.param_enable_05.setText(QtGui.QApplication.translate("MainWindow", "Enable", None, QtGui.QApplication.UnicodeUTF8))
self.label_fitting_settings.setText(QtGui.QApplication.translate("MainWindow", "Fitting Settings", None, QtGui.QApplication.UnicodeUTF8))
self.label_5.setText(QtGui.QApplication.translate("MainWindow", "Data Point Multiple (Nskip)", None, QtGui.QApplication.UnicodeUTF8))
self.theta_min_value.setToolTip(QtGui.QApplication.translate("MainWindow", "Start refinement angle.", None, QtGui.QApplication.UnicodeUTF8))
self.epsilon.setToolTip(QtGui.QApplication.translate("MainWindow", "Smallest Chi^2 change before stopping.", None, QtGui.QApplication.UnicodeUTF8))
self.iterations.setToolTip(QtGui.QApplication.translate("MainWindow", "Maximum number of iterations.", None, QtGui.QApplication.UnicodeUTF8))
self.theta_min_label.setText(QtGui.QApplication.translate("MainWindow", "2 Theta Min", None, QtGui.QApplication.UnicodeUTF8))
self.label_8.setText(QtGui.QApplication.translate("MainWindow", "Integration Width (Nsg)", None, QtGui.QApplication.UnicodeUTF8))
self.label_4.setText(QtGui.QApplication.translate("MainWindow", "Stop Criteria (Epsilon)", None, QtGui.QApplication.UnicodeUTF8))
self.number_layers.setToolTip(QtGui.QApplication.translate("MainWindow", "1 or 2 layer model - 1 layer for disordered, 2 layers for graphitic.", None, QtGui.QApplication.UnicodeUTF8))
self.number_layers.setItemText(0, QtGui.QApplication.translate("MainWindow", "1 Layer Model", None, QtGui.QApplication.UnicodeUTF8))
self.number_layers.setItemText(1, QtGui.QApplication.translate("MainWindow", "2 Layer Model", None, QtGui.QApplication.UnicodeUTF8))
self.theta_max_label.setText(QtGui.QApplication.translate("MainWindow", "2 Theta Max", None, QtGui.QApplication.UnicodeUTF8))
self.nskip.setToolTip(QtGui.QApplication.translate("MainWindow", "Use every n-th point for calculation.", None, QtGui.QApplication.UnicodeUTF8))
self.label_6.setText(QtGui.QApplication.translate("MainWindow", "Model Layers (1 or 2)", None, QtGui.QApplication.UnicodeUTF8))
self.theta_max_value.setToolTip(QtGui.QApplication.translate("MainWindow", "End refinement angle.", None, QtGui.QApplication.UnicodeUTF8))
self.label_3.setText(QtGui.QApplication.translate("MainWindow", "Iterations", None, QtGui.QApplication.UnicodeUTF8))
self.n_sg.setToolTip(QtGui.QApplication.translate("MainWindow", "Number of half-widths of Bragg rods to calculate tangent cylinder integral with. Recommended: > 3", None, QtGui.QApplication.UnicodeUTF8))
self.n_phi.setToolTip(QtGui.QApplication.translate("MainWindow", "Number of points to include in the tangent cylinder integral.", None, QtGui.QApplication.UnicodeUTF8))
self.label_7.setText(QtGui.QApplication.translate("MainWindow", "TCI Points (NPhi)", None, QtGui.QApplication.UnicodeUTF8))
self.label_diffractometer_settings.setText(QtGui.QApplication.translate("MainWindow", "Diffractometer Settings", None, QtGui.QApplication.UnicodeUTF8))
self.sample_depth_label.setText(QtGui.QApplication.translate("MainWindow", "Sample Depth (mm)", None, QtGui.QApplication.UnicodeUTF8))
self.sample_density_label.setText(QtGui.QApplication.translate("MainWindow", "Sample Density Fraction", None, QtGui.QApplication.UnicodeUTF8))
self.wavelength_label.setText(QtGui.QApplication.translate("MainWindow", "Wavelength (Angstrom)", None, QtGui.QApplication.UnicodeUTF8))
self.sample_width_label.setText(QtGui.QApplication.translate("MainWindow", "Sample Width (mm)", None, QtGui.QApplication.UnicodeUTF8))
self.beam_width_label.setText(QtGui.QApplication.translate("MainWindow", "Beam Width (mm)", None, QtGui.QApplication.UnicodeUTF8))
self.goniometer_radius_label.setText(QtGui.QApplication.translate("MainWindow", "Goniometer Radius (mm)", None, QtGui.QApplication.UnicodeUTF8))
self.console.setToolTip(QtGui.QApplication.translate("MainWindow", "Enable only background parameters.", None, QtGui.QApplication.UnicodeUTF8))
self.menu_file.setTitle(QtGui.QApplication.translate("MainWindow", "File", None, QtGui.QApplication.UnicodeUTF8))
self.menu_category_import.setTitle(QtGui.QApplication.translate("MainWindow", "Import", None, QtGui.QApplication.UnicodeUTF8))
self.menuExport.setTitle(QtGui.QApplication.translate("MainWindow", "Export", None, QtGui.QApplication.UnicodeUTF8))
self.menuFitting.setTitle(QtGui.QApplication.translate("MainWindow", "Fitting", None, QtGui.QApplication.UnicodeUTF8))
self.menuHelp.setTitle(QtGui.QApplication.translate("MainWindow", "Help", None, QtGui.QApplication.UnicodeUTF8))
self.menu_open_xrd_pattern.setText(QtGui.QApplication.translate("MainWindow", "Open XRD Pattern", None, QtGui.QApplication.UnicodeUTF8))
self.menu_import_carboninp.setText(QtGui.QApplication.translate("MainWindow", "From CARBON.INP", None, QtGui.QApplication.UnicodeUTF8))
self.menu_import_diffsettings.setText(QtGui.QApplication.translate("MainWindow", "Diffractometer Settings", None, QtGui.QApplication.UnicodeUTF8))
self.menu_import_fittingparams.setText(QtGui.QApplication.translate("MainWindow", "Fitting Parameters", None, QtGui.QApplication.UnicodeUTF8))
self.menu_import_fittingsettings.setText(QtGui.QApplication.translate("MainWindow", "Fitting Settings", None, QtGui.QApplication.UnicodeUTF8))
self.menu_export_carboninp.setText(QtGui.QApplication.translate("MainWindow", "To CARBON.INP", None, QtGui.QApplication.UnicodeUTF8))
self.menu_export_diffsettings.setText(QtGui.QApplication.translate("MainWindow", "Diffractometer Settings", None, QtGui.QApplication.UnicodeUTF8))
self.menu_export_fittingparams.setText(QtGui.QApplication.translate("MainWindow", "Fitting Parameters", None, QtGui.QApplication.UnicodeUTF8))
self.menu_export_fittingsettings.setText(QtGui.QApplication.translate("MainWindow", "Fitting Settings", None, QtGui.QApplication.UnicodeUTF8))
self.menu_calculate_pattern.setText(QtGui.QApplication.translate("MainWindow", "Calculate Pattern", None, QtGui.QApplication.UnicodeUTF8))
self.menu_start_fit.setText(QtGui.QApplication.translate("MainWindow", "Start Fitting", None, QtGui.QApplication.UnicodeUTF8))
self.menu_abort_fit.setText(QtGui.QApplication.translate("MainWindow", "Abort Fit", None, QtGui.QApplication.UnicodeUTF8))
self.menu_tutorial.setText(QtGui.QApplication.translate("MainWindow", "Documentation", None, QtGui.QApplication.UnicodeUTF8))
self.menu_bugreport.setText(QtGui.QApplication.translate("MainWindow", "Report a Bug", None, QtGui.QApplication.UnicodeUTF8))
self.menu_about.setText(QtGui.QApplication.translate("MainWindow", "About", None, QtGui.QApplication.UnicodeUTF8))
self.menu_exit.setText(QtGui.QApplication.translate("MainWindow", "Exit", None, QtGui.QApplication.UnicodeUTF8))