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

216 lines
12 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_tau_calculation.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_Form(object):
def setupUi(self, Form):
Form.setObjectName("Form")
Form.resize(400, 799)
self.verticalLayout = QtWidgets.QVBoxLayout(Form)
self.verticalLayout.setObjectName("verticalLayout")
self.groupBox_2 = QtWidgets.QGroupBox(Form)
self.groupBox_2.setObjectName("groupBox_2")
self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox_2)
self.gridLayout_2.setContentsMargins(3, 3, 3, 3)
self.gridLayout_2.setHorizontalSpacing(3)
self.gridLayout_2.setVerticalSpacing(1)
self.gridLayout_2.setObjectName("gridLayout_2")
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_2.addWidget(self.freq_spinbox, 0, 0, 1, 1)
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_2.addWidget(self.freq_combox, 0, 1, 1, 1)
self.verticalLayout.addWidget(self.groupBox_2)
self.scrollArea = QtWidgets.QScrollArea(Form)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.scrollArea.sizePolicy().hasHeightForWidth())
self.scrollArea.setSizePolicy(sizePolicy)
self.scrollArea.setFrameShape(QtWidgets.QFrame.NoFrame)
self.scrollArea.setFrameShadow(QtWidgets.QFrame.Plain)
self.scrollArea.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
self.scrollArea.setWidgetResizable(True)
self.scrollArea.setObjectName("scrollArea")
self.scrollAreaWidgetContents = QtWidgets.QWidget()
self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 388, 713))
self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.scrollAreaWidgetContents)
self.verticalLayout_5.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_5.setSpacing(3)
self.verticalLayout_5.setObjectName("verticalLayout_5")
self.groupBox_6 = QtWidgets.QGroupBox(self.scrollAreaWidgetContents)
self.groupBox_6.setObjectName("groupBox_6")
self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.groupBox_6)
self.verticalLayout_7.setContentsMargins(3, 3, 3, 3)
self.verticalLayout_7.setSpacing(1)
self.verticalLayout_7.setObjectName("verticalLayout_7")
self.comboBox_7 = QtWidgets.QComboBox(self.groupBox_6)
self.comboBox_7.setObjectName("comboBox_7")
self.comboBox_7.addItem("")
self.comboBox_7.addItem("")
self.comboBox_7.addItem("")
self.verticalLayout_7.addWidget(self.comboBox_7)
self.arr_frame = QtWidgets.QFrame(self.groupBox_6)
self.arr_frame.setObjectName("arr_frame")
self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.arr_frame)
self.verticalLayout_6.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_6.setSpacing(1)
self.verticalLayout_6.setObjectName("verticalLayout_6")
self.verticalLayout_7.addWidget(self.arr_frame)
self.temp_frame = QtWidgets.QFrame(self.groupBox_6)
self.temp_frame.setObjectName("temp_frame")
self.gridLayout = QtWidgets.QGridLayout(self.temp_frame)
self.gridLayout.setContentsMargins(0, 0, 0, 0)
self.gridLayout.setObjectName("gridLayout")
self.lineEdit_3 = QtWidgets.QLineEdit(self.temp_frame)
self.lineEdit_3.setObjectName("lineEdit_3")
self.gridLayout.addWidget(self.lineEdit_3, 0, 1, 1, 1)
self.checkBox = QtWidgets.QCheckBox(self.temp_frame)
self.checkBox.setObjectName("checkBox")
self.gridLayout.addWidget(self.checkBox, 0, 7, 1, 1)
self.label_4 = QtWidgets.QLabel(self.temp_frame)
self.label_4.setObjectName("label_4")
self.gridLayout.addWidget(self.label_4, 0, 2, 1, 1)
self.lineEdit_4 = QtWidgets.QLineEdit(self.temp_frame)
self.lineEdit_4.setObjectName("lineEdit_4")
self.gridLayout.addWidget(self.lineEdit_4, 0, 3, 1, 1)
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout.addItem(spacerItem, 0, 4, 1, 1)
self.spinBox = QtWidgets.QSpinBox(self.temp_frame)
self.spinBox.setProperty("value", 50)
self.spinBox.setObjectName("spinBox")
self.gridLayout.addWidget(self.spinBox, 0, 5, 1, 1)
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout.addItem(spacerItem1, 0, 6, 1, 1)
self.verticalLayout_7.addWidget(self.temp_frame)
self.data_frame = QtWidgets.QFrame(self.groupBox_6)
self.data_frame.setFrameShape(QtWidgets.QFrame.NoFrame)
self.data_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.data_frame.setObjectName("data_frame")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.data_frame)
self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout.setSpacing(1)
self.horizontalLayout.setObjectName("horizontalLayout")
self.tau_graph_combobox = QtWidgets.QComboBox(self.data_frame)
self.tau_graph_combobox.setObjectName("tau_graph_combobox")
self.horizontalLayout.addWidget(self.tau_graph_combobox)
self.tau_set_combobox = QtWidgets.QComboBox(self.data_frame)
self.tau_set_combobox.setObjectName("tau_set_combobox")
self.horizontalLayout.addWidget(self.tau_set_combobox)
self.verticalLayout_7.addWidget(self.data_frame)
self.comboBox = QtWidgets.QComboBox(self.groupBox_6)
self.comboBox.setObjectName("comboBox")
self.comboBox.addItem("")
self.comboBox.addItem("")
self.comboBox.addItem("")
self.comboBox.addItem("")
self.verticalLayout_7.addWidget(self.comboBox)
self.verticalLayout_5.addWidget(self.groupBox_6)
self.groupBox = QtWidgets.QGroupBox(self.scrollAreaWidgetContents)
self.groupBox.setObjectName("groupBox")
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox)
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)
self.specdens_combobox.setObjectName("specdens_combobox")
self.verticalLayout_2.addWidget(self.specdens_combobox)
self.specdens_frame = QtWidgets.QFrame(self.groupBox)
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)
self.coupling_combobox.setObjectName("coupling_combobox")
self.verticalLayout_2.addWidget(self.coupling_combobox)
self.coupling_frame = QtWidgets.QFrame(self.groupBox)
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.verticalLayout_5.addWidget(self.groupBox)
self.groupBox_3 = QtWidgets.QGroupBox(self.scrollAreaWidgetContents)
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.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, 0, 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, 1, 0, 1, 1)
self.graph_combobox = QtWidgets.QComboBox(self.groupBox_3)
self.graph_combobox.setEnabled(True)
self.graph_combobox.setObjectName("graph_combobox")
self.gridLayout_4.addWidget(self.graph_combobox, 1, 1, 1, 1)
self.verticalLayout_5.addWidget(self.groupBox_3)
self.pushButton = QtWidgets.QPushButton(self.scrollAreaWidgetContents)
font = QtGui.QFont()
font.setBold(True)
font.setWeight(75)
self.pushButton.setFont(font)
self.pushButton.setObjectName("pushButton")
self.verticalLayout_5.addWidget(self.pushButton)
spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout_5.addItem(spacerItem2)
self.scrollArea.setWidget(self.scrollAreaWidgetContents)
self.verticalLayout.addWidget(self.scrollArea)
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
_translate = QtCore.QCoreApplication.translate
Form.setWindowTitle(_translate("Form", "Form"))
self.groupBox_2.setTitle(_translate("Form", "Frequency"))
self.freq_combox.setItemText(0, _translate("Form", "MHz"))
self.freq_combox.setItemText(1, _translate("Form", "kHz"))
self.freq_combox.setItemText(2, _translate("Form", "Hz"))
self.groupBox_6.setTitle(_translate("Form", "Correlation times"))
self.comboBox_7.setItemText(0, _translate("Form", "Arrhenius"))
self.comboBox_7.setItemText(1, _translate("Form", "VFT"))
self.comboBox_7.setItemText(2, _translate("Form", "Data"))
self.lineEdit_3.setPlaceholderText(_translate("Form", "1 K"))
self.checkBox.setText(_translate("Form", "1000/T"))
self.label_4.setText(_translate("Form", ""))
self.lineEdit_4.setPlaceholderText(_translate("Form", "100 K"))
self.spinBox.setSuffix(_translate("Form", " pts."))
self.comboBox.setItemText(0, _translate("Form", "Fit parameter: τ"))
self.comboBox.setItemText(1, _translate("Form", "Peak time: τₚ"))
self.comboBox.setItemText(2, _translate("Form", "Arithmetic mean: ⟨τ⟩"))
self.comboBox.setItemText(3, _translate("Form", "Geometric mean: exp(⟨ln τ⟩)"))
self.groupBox.setTitle(_translate("Form", "Model"))
self.groupBox_3.setTitle(_translate("Form", "Result"))
self.tau_combox.setStatusTip(_translate("Form", "NOTE: Mean values are not available for all spectral densities. For more information ask someone."))
self.tau_combox.setItemText(0, _translate("Form", "Fit parameter: τ"))
self.tau_combox.setItemText(1, _translate("Form", "Peak time: τₚ"))
self.tau_combox.setItemText(2, _translate("Form", "Arithmetic mean: ⟨τ⟩"))
self.tau_combox.setItemText(3, _translate("Form", "Geometric mean: exp(⟨ln τ⟩)"))
self.graph_checkbox.setText(_translate("Form", "New graph?"))
self.pushButton.setText(_translate("Form", "Calculate"))