229 lines
13 KiB
Python
229 lines
13 KiB
Python
|
# -*- coding: utf-8 -*-
|
||
|
|
||
|
# Form implementation generated from reading ui file 'resources/_ui/t1dialog.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_t1dialog(object):
|
||
|
def setupUi(self, t1dialog):
|
||
|
t1dialog.setObjectName("t1dialog")
|
||
|
t1dialog.resize(316, 741)
|
||
|
self.gridLayout_2 = QtWidgets.QGridLayout(t1dialog)
|
||
|
self.gridLayout_2.setContentsMargins(3, 3, 3, 3)
|
||
|
self.gridLayout_2.setObjectName("gridLayout_2")
|
||
|
self.groupBox_1 = QtWidgets.QGroupBox(t1dialog)
|
||
|
self.groupBox_1.setObjectName("groupBox_1")
|
||
|
self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox_1)
|
||
|
self.gridLayout_3.setContentsMargins(3, 3, 3, 3)
|
||
|
self.gridLayout_3.setHorizontalSpacing(3)
|
||
|
self.gridLayout_3.setVerticalSpacing(0)
|
||
|
self.gridLayout_3.setObjectName("gridLayout_3")
|
||
|
self.t1_combobox = QtWidgets.QComboBox(self.groupBox_1)
|
||
|
self.t1_combobox.setObjectName("t1_combobox")
|
||
|
self.t1_combobox.addItem("")
|
||
|
self.t1_combobox.addItem("")
|
||
|
self.gridLayout_3.addWidget(self.t1_combobox, 1, 1, 1, 1)
|
||
|
self.temp_combobox = QtWidgets.QComboBox(self.groupBox_1)
|
||
|
self.temp_combobox.setObjectName("temp_combobox")
|
||
|
self.temp_combobox.addItem("")
|
||
|
self.temp_combobox.addItem("")
|
||
|
self.temp_combobox.addItem("")
|
||
|
self.gridLayout_3.addWidget(self.temp_combobox, 1, 0, 1, 1)
|
||
|
self.gridLayout_2.addWidget(self.groupBox_1, 0, 0, 1, 1)
|
||
|
self.groupBox_2 = QtWidgets.QGroupBox(t1dialog)
|
||
|
self.groupBox_2.setObjectName("groupBox_2")
|
||
|
self.gridLayout = QtWidgets.QGridLayout(self.groupBox_2)
|
||
|
self.gridLayout.setContentsMargins(3, 3, 3, 3)
|
||
|
self.gridLayout.setHorizontalSpacing(3)
|
||
|
self.gridLayout.setVerticalSpacing(1)
|
||
|
self.gridLayout.setObjectName("gridLayout")
|
||
|
self.freq_combox = QtWidgets.QComboBox(self.groupBox_2)
|
||
|
self.freq_combox.setObjectName("freq_combox")
|
||
|
self.freq_combox.addItem("")
|
||
|
self.freq_combox.addItem("")
|
||
|
self.freq_combox.addItem("")
|
||
|
self.gridLayout.addWidget(self.freq_combox, 0, 1, 1, 1)
|
||
|
self.freq_spinbox = QtWidgets.QDoubleSpinBox(self.groupBox_2)
|
||
|
self.freq_spinbox.setMaximum(999.99)
|
||
|
self.freq_spinbox.setProperty("value", 100.0)
|
||
|
self.freq_spinbox.setObjectName("freq_spinbox")
|
||
|
self.gridLayout.addWidget(self.freq_spinbox, 0, 0, 1, 1)
|
||
|
self.gridLayout_2.addWidget(self.groupBox_2, 1, 0, 1, 1)
|
||
|
self.groupBox = QtWidgets.QGroupBox(t1dialog)
|
||
|
self.groupBox.setObjectName("groupBox")
|
||
|
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox)
|
||
|
self.verticalLayout_2.setContentsMargins(3, 3, 3, -1)
|
||
|
self.verticalLayout_2.setSpacing(2)
|
||
|
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
||
|
self.specdens_combobox = QtWidgets.QComboBox(self.groupBox)
|
||
|
self.specdens_combobox.setObjectName("specdens_combobox")
|
||
|
self.verticalLayout_2.addWidget(self.specdens_combobox)
|
||
|
self.sd_frame = QtWidgets.QFrame(self.groupBox)
|
||
|
self.sd_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
|
||
|
self.sd_frame.setFrameShadow(QtWidgets.QFrame.Sunken)
|
||
|
self.sd_frame.setObjectName("sd_frame")
|
||
|
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.sd_frame)
|
||
|
self.verticalLayout_3.setContentsMargins(1, 1, 1, 1)
|
||
|
self.verticalLayout_3.setSpacing(0)
|
||
|
self.verticalLayout_3.setObjectName("verticalLayout_3")
|
||
|
self.verticalLayout_2.addWidget(self.sd_frame)
|
||
|
self.coupling_combobox = QtWidgets.QComboBox(self.groupBox)
|
||
|
self.coupling_combobox.setObjectName("coupling_combobox")
|
||
|
self.verticalLayout_2.addWidget(self.coupling_combobox)
|
||
|
self.cp_frame = QtWidgets.QFrame(self.groupBox)
|
||
|
self.cp_frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
|
||
|
self.cp_frame.setFrameShadow(QtWidgets.QFrame.Sunken)
|
||
|
self.cp_frame.setObjectName("cp_frame")
|
||
|
self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.cp_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.cp_frame)
|
||
|
self.gridLayout_2.addWidget(self.groupBox, 3, 0, 1, 1)
|
||
|
self.groupBox_5 = QtWidgets.QGroupBox(t1dialog)
|
||
|
self.groupBox_5.setObjectName("groupBox_5")
|
||
|
self.gridLayout_5 = QtWidgets.QGridLayout(self.groupBox_5)
|
||
|
self.gridLayout_5.setContentsMargins(3, 3, 3, 3)
|
||
|
self.gridLayout_5.setHorizontalSpacing(2)
|
||
|
self.gridLayout_5.setObjectName("gridLayout_5")
|
||
|
self.interpol_combobox = QtWidgets.QComboBox(self.groupBox_5)
|
||
|
self.interpol_combobox.setObjectName("interpol_combobox")
|
||
|
self.interpol_combobox.addItem("")
|
||
|
self.interpol_combobox.addItem("")
|
||
|
self.interpol_combobox.addItem("")
|
||
|
self.interpol_combobox.addItem("")
|
||
|
self.gridLayout_5.addWidget(self.interpol_combobox, 0, 0, 1, 1)
|
||
|
self.frame = QtWidgets.QFrame(self.groupBox_5)
|
||
|
self.frame.setFrameShape(QtWidgets.QFrame.NoFrame)
|
||
|
self.frame.setFrameShadow(QtWidgets.QFrame.Plain)
|
||
|
self.frame.setObjectName("frame")
|
||
|
self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame)
|
||
|
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
|
||
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
||
|
self.label_9 = QtWidgets.QLabel(self.frame)
|
||
|
self.label_9.setObjectName("label_9")
|
||
|
self.horizontalLayout.addWidget(self.label_9)
|
||
|
self.lineEdit_2 = QtWidgets.QLineEdit(self.frame)
|
||
|
self.lineEdit_2.setObjectName("lineEdit_2")
|
||
|
self.horizontalLayout.addWidget(self.lineEdit_2)
|
||
|
self.label_10 = QtWidgets.QLabel(self.frame)
|
||
|
self.label_10.setObjectName("label_10")
|
||
|
self.horizontalLayout.addWidget(self.label_10)
|
||
|
self.lineEdit_3 = QtWidgets.QLineEdit(self.frame)
|
||
|
self.lineEdit_3.setObjectName("lineEdit_3")
|
||
|
self.horizontalLayout.addWidget(self.lineEdit_3)
|
||
|
self.gridLayout_5.addWidget(self.frame, 1, 0, 1, 2)
|
||
|
self.frame_2 = QtWidgets.QFrame(self.groupBox_5)
|
||
|
self.frame_2.setFrameShape(QtWidgets.QFrame.NoFrame)
|
||
|
self.frame_2.setFrameShadow(QtWidgets.QFrame.Plain)
|
||
|
self.frame_2.setObjectName("frame_2")
|
||
|
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.frame_2)
|
||
|
self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
|
||
|
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
|
||
|
self.label_11 = QtWidgets.QLabel(self.frame_2)
|
||
|
self.label_11.setObjectName("label_11")
|
||
|
self.horizontalLayout_2.addWidget(self.label_11)
|
||
|
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
|
||
|
self.horizontalLayout_2.addItem(spacerItem)
|
||
|
self.label_13 = QtWidgets.QLabel(self.frame_2)
|
||
|
self.label_13.setObjectName("label_13")
|
||
|
self.horizontalLayout_2.addWidget(self.label_13)
|
||
|
self.label_12 = QtWidgets.QLabel(self.frame_2)
|
||
|
self.label_12.setObjectName("label_12")
|
||
|
self.horizontalLayout_2.addWidget(self.label_12)
|
||
|
self.gridLayout_5.addWidget(self.frame_2, 2, 0, 1, 2)
|
||
|
self.t1min_toolButton = QtWidgets.QToolButton(self.groupBox_5)
|
||
|
self.t1min_toolButton.setObjectName("t1min_toolButton")
|
||
|
self.gridLayout_5.addWidget(self.t1min_toolButton, 0, 1, 1, 1)
|
||
|
self.gridLayout_2.addWidget(self.groupBox_5, 2, 0, 1, 1)
|
||
|
self.groupBox_3 = QtWidgets.QGroupBox(t1dialog)
|
||
|
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, 3, 1, 1, 1)
|
||
|
self.tau_combox = QtWidgets.QComboBox(self.groupBox_3)
|
||
|
self.tau_combox.setObjectName("tau_combox")
|
||
|
self.tau_combox.addItem("")
|
||
|
self.tau_combox.addItem("")
|
||
|
self.tau_combox.addItem("")
|
||
|
self.tau_combox.addItem("")
|
||
|
self.gridLayout_4.addWidget(self.tau_combox, 1, 0, 1, 2)
|
||
|
self.checkBox_interpol = QtWidgets.QCheckBox(self.groupBox_3)
|
||
|
self.checkBox_interpol.setObjectName("checkBox_interpol")
|
||
|
self.gridLayout_4.addWidget(self.checkBox_interpol, 2, 0, 1, 2)
|
||
|
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, 3, 0, 1, 1)
|
||
|
self.label = QtWidgets.QLabel(self.groupBox_3)
|
||
|
self.label.setObjectName("label")
|
||
|
self.gridLayout_4.addWidget(self.label, 0, 0, 1, 1)
|
||
|
self.label_t1min = QtWidgets.QLabel(self.groupBox_3)
|
||
|
self.label_t1min.setText("")
|
||
|
self.label_t1min.setObjectName("label_t1min")
|
||
|
self.gridLayout_4.addWidget(self.label_t1min, 0, 1, 1, 1)
|
||
|
self.gridLayout_2.addWidget(self.groupBox_3, 4, 0, 1, 1)
|
||
|
spacerItem1 = QtWidgets.QSpacerItem(17, 19, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
|
||
|
self.gridLayout_2.addItem(spacerItem1, 6, 0, 1, 1)
|
||
|
self.calc_pushButton = QtWidgets.QPushButton(t1dialog)
|
||
|
font = QtGui.QFont()
|
||
|
font.setBold(True)
|
||
|
font.setWeight(75)
|
||
|
self.calc_pushButton.setFont(font)
|
||
|
self.calc_pushButton.setObjectName("calc_pushButton")
|
||
|
self.gridLayout_2.addWidget(self.calc_pushButton, 5, 0, 1, 1)
|
||
|
self.label_9.setBuddy(self.lineEdit_2)
|
||
|
self.label_10.setBuddy(self.lineEdit_3)
|
||
|
|
||
|
self.retranslateUi(t1dialog)
|
||
|
QtCore.QMetaObject.connectSlotsByName(t1dialog)
|
||
|
|
||
|
def retranslateUi(self, t1dialog):
|
||
|
_translate = QtCore.QCoreApplication.translate
|
||
|
t1dialog.setWindowTitle(_translate("t1dialog", "Form"))
|
||
|
self.groupBox_1.setTitle(_translate("t1dialog", "Axes"))
|
||
|
self.t1_combobox.setItemText(0, _translate("t1dialog", "T1"))
|
||
|
self.t1_combobox.setItemText(1, _translate("t1dialog", "1/T1"))
|
||
|
self.temp_combobox.setItemText(0, _translate("t1dialog", "1000/T"))
|
||
|
self.temp_combobox.setItemText(1, _translate("t1dialog", "T"))
|
||
|
self.temp_combobox.setItemText(2, _translate("t1dialog", "1/T"))
|
||
|
self.groupBox_2.setTitle(_translate("t1dialog", "Frequency"))
|
||
|
self.freq_combox.setItemText(0, _translate("t1dialog", "MHz"))
|
||
|
self.freq_combox.setItemText(1, _translate("t1dialog", "kHz"))
|
||
|
self.freq_combox.setItemText(2, _translate("t1dialog", "Hz"))
|
||
|
self.groupBox.setTitle(_translate("t1dialog", "Model"))
|
||
|
self.groupBox_5.setTitle(_translate("t1dialog", "Pick T1 minimon"))
|
||
|
self.interpol_combobox.setItemText(0, _translate("t1dialog", "Data minimum"))
|
||
|
self.interpol_combobox.setItemText(1, _translate("t1dialog", "Parabola"))
|
||
|
self.interpol_combobox.setItemText(2, _translate("t1dialog", "Cubic spline"))
|
||
|
self.interpol_combobox.setItemText(3, _translate("t1dialog", "Akima spline"))
|
||
|
self.label_9.setText(_translate("t1dialog", "Interpolate"))
|
||
|
self.lineEdit_2.setPlaceholderText(_translate("t1dialog", "1 K"))
|
||
|
self.label_10.setText(_translate("t1dialog", "--"))
|
||
|
self.lineEdit_3.setPlaceholderText(_translate("t1dialog", "2000 K"))
|
||
|
self.label_11.setText(_translate("t1dialog", "Minimon"))
|
||
|
self.label_13.setText(_translate("t1dialog", "x value"))
|
||
|
self.label_12.setText(_translate("t1dialog", "y value"))
|
||
|
self.t1min_toolButton.setText(_translate("t1dialog", "Set"))
|
||
|
self.groupBox_3.setTitle(_translate("t1dialog", "Result"))
|
||
|
self.tau_combox.setStatusTip(_translate("t1dialog", "NOTE: Mean values are not available for all spectral densities. For more information ask someone."))
|
||
|
self.tau_combox.setItemText(0, _translate("t1dialog", "Fit parameter: τ"))
|
||
|
self.tau_combox.setItemText(1, _translate("t1dialog", "Peak time: τₚ"))
|
||
|
self.tau_combox.setItemText(2, _translate("t1dialog", "Arithmetic mean: ⟨τ⟩"))
|
||
|
self.tau_combox.setItemText(3, _translate("t1dialog", "Geometric mean: exp(⟨ln τ⟩)"))
|
||
|
self.checkBox_interpol.setText(_translate("t1dialog", "Use minimon interpolation"))
|
||
|
self.graph_checkbox.setText(_translate("t1dialog", "New graph?"))
|
||
|
self.label.setText(_translate("t1dialog", "Calculated minimon"))
|
||
|
self.calc_pushButton.setText(_translate("t1dialog", "Calculate"))
|