nmreval/src/gui_qt/_py/t1_calc_dialog.py
dominik 8d148b639b BUGFIX: VFT;
change to src layout
2022-10-20 17:23:15 +02:00

319 lines
18 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'resources/_ui/t1_calc_dialog.ui'
#
# Created by: PyQt5 UI code generator 5.12.3
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName("Dialog")
Dialog.resize(582, 698)
self.gridLayout_2 = QtWidgets.QGridLayout(Dialog)
self.gridLayout_2.setObjectName("gridLayout_2")
self.groupBox_2 = QtWidgets.QGroupBox(Dialog)
self.groupBox_2.setObjectName("groupBox_2")
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox_2)
self.verticalLayout_2.setContentsMargins(3, 3, 3, 3)
self.verticalLayout_2.setSpacing(0)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.specdens_combobox = QtWidgets.QComboBox(self.groupBox_2)
self.specdens_combobox.setObjectName("specdens_combobox")
self.verticalLayout_2.addWidget(self.specdens_combobox)
self.specdens_frame = QtWidgets.QFrame(self.groupBox_2)
self.specdens_frame.setObjectName("specdens_frame")
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.specdens_frame)
self.verticalLayout_3.setSpacing(0)
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.verticalLayout_2.addWidget(self.specdens_frame)
self.coupling_combobox = QtWidgets.QComboBox(self.groupBox_2)
self.coupling_combobox.setObjectName("coupling_combobox")
self.verticalLayout_2.addWidget(self.coupling_combobox)
self.coupling_frame = QtWidgets.QFrame(self.groupBox_2)
self.coupling_frame.setObjectName("coupling_frame")
self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.coupling_frame)
self.verticalLayout_4.setContentsMargins(-1, -1, 1, 1)
self.verticalLayout_4.setSpacing(0)
self.verticalLayout_4.setObjectName("verticalLayout_4")
self.verticalLayout_2.addWidget(self.coupling_frame)
self.gridLayout_2.addWidget(self.groupBox_2, 1, 0, 1, 1)
self.groupBox_3 = QtWidgets.QGroupBox(Dialog)
self.groupBox_3.setObjectName("groupBox_3")
self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox_3)
self.gridLayout_4.setContentsMargins(3, 3, 3, 3)
self.gridLayout_4.setSpacing(3)
self.gridLayout_4.setObjectName("gridLayout_4")
self.graph_combobox = QtWidgets.QComboBox(self.groupBox_3)
self.graph_combobox.setEnabled(False)
self.graph_combobox.setObjectName("graph_combobox")
self.gridLayout_4.addWidget(self.graph_combobox, 1, 1, 1, 1)
self.graph_checkbox = QtWidgets.QCheckBox(self.groupBox_3)
self.graph_checkbox.setChecked(True)
self.graph_checkbox.setObjectName("graph_checkbox")
self.gridLayout_4.addWidget(self.graph_checkbox, 1, 0, 1, 1)
self.relax_combox = QtWidgets.QComboBox(self.groupBox_3)
self.relax_combox.setObjectName("relax_combox")
self.relax_combox.addItem("")
self.relax_combox.addItem("")
self.gridLayout_4.addWidget(self.relax_combox, 0, 0, 1, 2)
self.gridLayout_2.addWidget(self.groupBox_3, 2, 0, 1, 1)
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.gridLayout_2.addItem(spacerItem, 3, 0, 1, 1)
self.buttonBox = QtWidgets.QDialogButtonBox(Dialog)
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Apply|QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
self.buttonBox.setObjectName("buttonBox")
self.gridLayout_2.addWidget(self.buttonBox, 4, 0, 1, 1)
self.groupBox = QtWidgets.QGroupBox(Dialog)
self.groupBox.setObjectName("groupBox")
self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox)
self.gridLayout_3.setContentsMargins(3, 3, 3, 3)
self.gridLayout_3.setSpacing(2)
self.gridLayout_3.setObjectName("gridLayout_3")
self.second_x_lineEdit = QtWidgets.QLineEdit(self.groupBox)
self.second_x_lineEdit.setObjectName("second_x_lineEdit")
self.gridLayout_3.addWidget(self.second_x_lineEdit, 10, 1, 1, 1)
self.x_input_combobox = QtWidgets.QComboBox(self.groupBox)
self.x_input_combobox.setObjectName("x_input_combobox")
self.x_input_combobox.addItem("")
self.x_input_combobox.addItem("")
self.gridLayout_3.addWidget(self.x_input_combobox, 1, 1, 1, 1)
self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
self.horizontalLayout_4.setSpacing(2)
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
self.radioButton = QtWidgets.QRadioButton(self.groupBox)
self.radioButton.setChecked(True)
self.radioButton.setObjectName("radioButton")
self.buttonGroup = QtWidgets.QButtonGroup(Dialog)
self.buttonGroup.setObjectName("buttonGroup")
self.buttonGroup.addButton(self.radioButton)
self.horizontalLayout_4.addWidget(self.radioButton)
self.radioButton_2 = QtWidgets.QRadioButton(self.groupBox)
self.radioButton_2.setObjectName("radioButton_2")
self.buttonGroup.addButton(self.radioButton_2)
self.horizontalLayout_4.addWidget(self.radioButton_2)
self.radioButton_4 = QtWidgets.QRadioButton(self.groupBox)
self.radioButton_4.setObjectName("radioButton_4")
self.buttonGroup.addButton(self.radioButton_4)
self.horizontalLayout_4.addWidget(self.radioButton_4)
self.radioButton_3 = QtWidgets.QRadioButton(self.groupBox)
self.radioButton_3.setObjectName("radioButton_3")
self.buttonGroup.addButton(self.radioButton_3)
self.horizontalLayout_4.addWidget(self.radioButton_3)
self.gridLayout_3.addLayout(self.horizontalLayout_4, 0, 0, 1, 2)
self.label_7 = QtWidgets.QLabel(self.groupBox)
self.label_7.setObjectName("label_7")
self.gridLayout_3.addWidget(self.label_7, 10, 0, 1, 1)
self.line = QtWidgets.QFrame(self.groupBox)
self.line.setFrameShape(QtWidgets.QFrame.HLine)
self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line.setObjectName("line")
self.gridLayout_3.addWidget(self.line, 9, 0, 1, 2)
self.line_2 = QtWidgets.QFrame(self.groupBox)
self.line_2.setFrameShape(QtWidgets.QFrame.HLine)
self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line_2.setObjectName("line_2")
self.gridLayout_3.addWidget(self.line_2, 7, 0, 1, 2)
self.range_widget = QtWidgets.QWidget(self.groupBox)
self.range_widget.setObjectName("range_widget")
self.gridLayout = QtWidgets.QGridLayout(self.range_widget)
self.gridLayout.setContentsMargins(0, 0, 0, 0)
self.gridLayout.setObjectName("gridLayout")
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout.addItem(spacerItem1, 0, 0, 1, 1)
self.stop_lineEdit = QtWidgets.QLineEdit(self.range_widget)
self.stop_lineEdit.setObjectName("stop_lineEdit")
self.gridLayout.addWidget(self.stop_lineEdit, 0, 3, 1, 1)
self.label_4 = QtWidgets.QLabel(self.range_widget)
self.label_4.setObjectName("label_4")
self.gridLayout.addWidget(self.label_4, 0, 2, 1, 1)
self.spinBox = QtWidgets.QSpinBox(self.range_widget)
self.spinBox.setProperty("value", 50)
self.spinBox.setObjectName("spinBox")
self.gridLayout.addWidget(self.spinBox, 0, 5, 1, 1)
self.start_lineEdit = QtWidgets.QLineEdit(self.range_widget)
self.start_lineEdit.setObjectName("start_lineEdit")
self.gridLayout.addWidget(self.start_lineEdit, 0, 1, 1, 1)
self.checkBox = QtWidgets.QCheckBox(self.range_widget)
self.checkBox.setObjectName("checkBox")
self.gridLayout.addWidget(self.checkBox, 0, 6, 1, 1)
self.gridLayout_3.addWidget(self.range_widget, 2, 0, 1, 2)
self.data_widget = QtWidgets.QWidget(self.groupBox)
self.data_widget.setObjectName("data_widget")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.data_widget)
self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_2.setSpacing(2)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.tau_graph_combobox = QtWidgets.QComboBox(self.data_widget)
self.tau_graph_combobox.setObjectName("tau_graph_combobox")
self.horizontalLayout_2.addWidget(self.tau_graph_combobox)
self.tau_set_combobox = QtWidgets.QComboBox(self.data_widget)
self.tau_set_combobox.setObjectName("tau_set_combobox")
self.horizontalLayout_2.addWidget(self.tau_set_combobox)
self.label_10 = QtWidgets.QLabel(self.data_widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_10.sizePolicy().hasHeightForWidth())
self.label_10.setSizePolicy(sizePolicy)
self.label_10.setObjectName("label_10")
self.horizontalLayout_2.addWidget(self.label_10)
self.x_radioButton = QtWidgets.QRadioButton(self.data_widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.x_radioButton.sizePolicy().hasHeightForWidth())
self.x_radioButton.setSizePolicy(sizePolicy)
self.x_radioButton.setObjectName("x_radioButton")
self.buttonGroup_2 = QtWidgets.QButtonGroup(Dialog)
self.buttonGroup_2.setObjectName("buttonGroup_2")
self.buttonGroup_2.addButton(self.x_radioButton)
self.horizontalLayout_2.addWidget(self.x_radioButton)
self.y_radioButton = QtWidgets.QRadioButton(self.data_widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.y_radioButton.sizePolicy().hasHeightForWidth())
self.y_radioButton.setSizePolicy(sizePolicy)
self.y_radioButton.setChecked(True)
self.y_radioButton.setObjectName("y_radioButton")
self.buttonGroup_2.addButton(self.y_radioButton)
self.horizontalLayout_2.addWidget(self.y_radioButton)
self.gridLayout_3.addWidget(self.data_widget, 3, 0, 1, 2)
self.temp_widget = QtWidgets.QWidget(self.groupBox)
self.temp_widget.setObjectName("temp_widget")
self.gridLayout_5 = QtWidgets.QGridLayout(self.temp_widget)
self.gridLayout_5.setContentsMargins(0, 0, 0, 0)
self.gridLayout_5.setHorizontalSpacing(6)
self.gridLayout_5.setVerticalSpacing(0)
self.gridLayout_5.setObjectName("gridLayout_5")
self.arr_widget = QtWidgets.QWidget(self.temp_widget)
self.arr_widget.setObjectName("arr_widget")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.arr_widget)
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout.setSpacing(2)
self.horizontalLayout.setObjectName("horizontalLayout")
spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem2)
self.label = QtWidgets.QLabel(self.arr_widget)
self.label.setObjectName("label")
self.horizontalLayout.addWidget(self.label)
self.tau0_lineEdit = QtWidgets.QLineEdit(self.arr_widget)
self.tau0_lineEdit.setObjectName("tau0_lineEdit")
self.horizontalLayout.addWidget(self.tau0_lineEdit)
spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem3)
self.label_2 = QtWidgets.QLabel(self.arr_widget)
self.label_2.setObjectName("label_2")
self.horizontalLayout.addWidget(self.label_2)
self.ea_lineEdit = QtWidgets.QLineEdit(self.arr_widget)
self.ea_lineEdit.setObjectName("ea_lineEdit")
self.horizontalLayout.addWidget(self.ea_lineEdit)
self.gridLayout_5.addWidget(self.arr_widget, 0, 1, 1, 1)
self.vft_widget = QtWidgets.QWidget(self.temp_widget)
self.vft_widget.setObjectName("vft_widget")
self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.vft_widget)
self.horizontalLayout_3.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_3.setSpacing(2)
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.label_3 = QtWidgets.QLabel(self.vft_widget)
self.label_3.setObjectName("label_3")
self.horizontalLayout_3.addWidget(self.label_3)
self.tau0_vft_lineEdit = QtWidgets.QLineEdit(self.vft_widget)
self.tau0_vft_lineEdit.setObjectName("tau0_vft_lineEdit")
self.horizontalLayout_3.addWidget(self.tau0_vft_lineEdit)
spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_3.addItem(spacerItem4)
self.label_5 = QtWidgets.QLabel(self.vft_widget)
self.label_5.setObjectName("label_5")
self.horizontalLayout_3.addWidget(self.label_5)
self.b_vft_lineEdit = QtWidgets.QLineEdit(self.vft_widget)
self.b_vft_lineEdit.setObjectName("b_vft_lineEdit")
self.horizontalLayout_3.addWidget(self.b_vft_lineEdit)
spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_3.addItem(spacerItem5)
self.label_6 = QtWidgets.QLabel(self.vft_widget)
self.label_6.setObjectName("label_6")
self.horizontalLayout_3.addWidget(self.label_6)
self.t0_vft_lineEdit = QtWidgets.QLineEdit(self.vft_widget)
self.t0_vft_lineEdit.setObjectName("t0_vft_lineEdit")
self.horizontalLayout_3.addWidget(self.t0_vft_lineEdit)
self.gridLayout_5.addWidget(self.vft_widget, 1, 1, 1, 1)
self.temp_combobox = QtWidgets.QComboBox(self.temp_widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.temp_combobox.sizePolicy().hasHeightForWidth())
self.temp_combobox.setSizePolicy(sizePolicy)
self.temp_combobox.setObjectName("temp_combobox")
self.temp_combobox.addItem("")
self.temp_combobox.addItem("")
self.gridLayout_5.addWidget(self.temp_combobox, 0, 0, 2, 1)
self.gridLayout_3.addWidget(self.temp_widget, 4, 0, 1, 2)
self.xtype_combobox = QtWidgets.QComboBox(self.groupBox)
self.xtype_combobox.setObjectName("xtype_combobox")
self.xtype_combobox.addItem("")
self.xtype_combobox.addItem("")
self.xtype_combobox.addItem("")
self.xtype_combobox.addItem("")
self.gridLayout_3.addWidget(self.xtype_combobox, 8, 1, 1, 1)
self.label_8 = QtWidgets.QLabel(self.groupBox)
self.label_8.setObjectName("label_8")
self.gridLayout_3.addWidget(self.label_8, 8, 0, 1, 1)
self.label_9 = QtWidgets.QLabel(self.groupBox)
self.label_9.setObjectName("label_9")
self.gridLayout_3.addWidget(self.label_9, 1, 0, 1, 1)
self.gridLayout_2.addWidget(self.groupBox, 0, 0, 1, 1)
self.retranslateUi(Dialog)
self.buttonBox.accepted.connect(Dialog.accept)
self.buttonBox.rejected.connect(Dialog.reject)
QtCore.QMetaObject.connectSlotsByName(Dialog)
def retranslateUi(self, Dialog):
_translate = QtCore.QCoreApplication.translate
Dialog.setWindowTitle(_translate("Dialog", "Calculate relaxation"))
self.groupBox_2.setTitle(_translate("Dialog", "Model"))
self.groupBox_3.setTitle(_translate("Dialog", "Result"))
self.graph_checkbox.setText(_translate("Dialog", "New graph?"))
self.relax_combox.setStatusTip(_translate("Dialog", "NOTE: Mean values are not available for all spectral densities. For more information ask someone."))
self.relax_combox.setItemText(0, _translate("Dialog", "Spin-Lattice Relaxation T1"))
self.relax_combox.setItemText(1, _translate("Dialog", "Spin-Spin Relaxation T2"))
self.groupBox.setTitle(_translate("Dialog", "Axis"))
self.x_input_combobox.setItemText(0, _translate("Dialog", "Range"))
self.x_input_combobox.setItemText(1, _translate("Dialog", "Data"))
self.radioButton.setText(_translate("Dialog", "τ / s"))
self.radioButton_2.setText(_translate("Dialog", "ω / Hz"))
self.radioButton_4.setText(_translate("Dialog", "1000 K / T"))
self.radioButton_3.setText(_translate("Dialog", "T / K"))
self.label_7.setText(_translate("Dialog", "2nd axis"))
self.label_4.setText(_translate("Dialog", ""))
self.spinBox.setSuffix(_translate("Dialog", " pts."))
self.checkBox.setText(_translate("Dialog", "Log?"))
self.label_10.setText(_translate("Dialog", " Use"))
self.x_radioButton.setText(_translate("Dialog", "x"))
self.y_radioButton.setText(_translate("Dialog", "y"))
self.label.setText(_translate("Dialog", "τ0 / s "))
self.tau0_lineEdit.setText(_translate("Dialog", "1"))
self.label_2.setText(_translate("Dialog", "E_A / eV "))
self.ea_lineEdit.setText(_translate("Dialog", "1"))
self.label_3.setText(_translate("Dialog", "τ0 / s "))
self.tau0_vft_lineEdit.setText(_translate("Dialog", "1"))
self.label_5.setText(_translate("Dialog", "B / K "))
self.b_vft_lineEdit.setText(_translate("Dialog", "1"))
self.label_6.setText(_translate("Dialog", "T_0 / K "))
self.t0_vft_lineEdit.setText(_translate("Dialog", "1"))
self.temp_combobox.setItemText(0, _translate("Dialog", "Arrhenius"))
self.temp_combobox.setItemText(1, _translate("Dialog", "VFT"))
self.xtype_combobox.setItemText(0, _translate("Dialog", "Function parameter: τ"))
self.xtype_combobox.setItemText(1, _translate("Dialog", "Peak time: τₚ"))
self.xtype_combobox.setItemText(2, _translate("Dialog", "Arithmetic mean: ⟨τ⟩"))
self.xtype_combobox.setItemText(3, _translate("Dialog", "Geometric mean: exp(⟨ln τ⟩)"))
self.label_8.setText(_translate("Dialog", "Interpretation as:"))
self.label_9.setText(_translate("Dialog", "Input from: "))