forked from IPKM/nmreval
197 lines
11 KiB
Python
197 lines
11 KiB
Python
|
# -*- coding: utf-8 -*-
|
||
|
|
||
|
# Form implementation generated from reading ui file 'resources/_ui/fcreader.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_FCEval_dialog(object):
|
||
|
def setupUi(self, FCEval_dialog):
|
||
|
FCEval_dialog.setObjectName("FCEval_dialog")
|
||
|
FCEval_dialog.resize(457, 697)
|
||
|
self.verticalLayout = QtWidgets.QVBoxLayout(FCEval_dialog)
|
||
|
self.verticalLayout.setContentsMargins(3, 3, 3, 3)
|
||
|
self.verticalLayout.setSpacing(3)
|
||
|
self.verticalLayout.setObjectName("verticalLayout")
|
||
|
self.input_box = QtWidgets.QGroupBox(FCEval_dialog)
|
||
|
self.input_box.setObjectName("input_box")
|
||
|
self.gridLayout_2 = QtWidgets.QGridLayout(self.input_box)
|
||
|
self.gridLayout_2.setContentsMargins(3, 3, 3, 3)
|
||
|
self.gridLayout_2.setSpacing(3)
|
||
|
self.gridLayout_2.setObjectName("gridLayout_2")
|
||
|
self.file_pushbutton = QtWidgets.QPushButton(self.input_box)
|
||
|
self.file_pushbutton.setChecked(False)
|
||
|
self.file_pushbutton.setObjectName("file_pushbutton")
|
||
|
self.gridLayout_2.addWidget(self.file_pushbutton, 0, 0, 1, 1)
|
||
|
self.dir_pushbutton = QtWidgets.QPushButton(self.input_box)
|
||
|
self.dir_pushbutton.setObjectName("dir_pushbutton")
|
||
|
self.gridLayout_2.addWidget(self.dir_pushbutton, 0, 1, 1, 1)
|
||
|
self.listWidget = QtWidgets.QListWidget(self.input_box)
|
||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Maximum)
|
||
|
sizePolicy.setHorizontalStretch(0)
|
||
|
sizePolicy.setVerticalStretch(0)
|
||
|
sizePolicy.setHeightForWidth(self.listWidget.sizePolicy().hasHeightForWidth())
|
||
|
self.listWidget.setSizePolicy(sizePolicy)
|
||
|
self.listWidget.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
|
||
|
self.listWidget.setTextElideMode(QtCore.Qt.ElideLeft)
|
||
|
self.listWidget.setObjectName("listWidget")
|
||
|
self.gridLayout_2.addWidget(self.listWidget, 1, 0, 1, 3)
|
||
|
self.overwrite_cb = QtWidgets.QCheckBox(self.input_box)
|
||
|
self.overwrite_cb.setObjectName("overwrite_cb")
|
||
|
self.gridLayout_2.addWidget(self.overwrite_cb, 0, 2, 1, 1)
|
||
|
self.verticalLayout.addWidget(self.input_box)
|
||
|
self.region_box = QtWidgets.QGroupBox(FCEval_dialog)
|
||
|
self.region_box.setCheckable(True)
|
||
|
self.region_box.setObjectName("region_box")
|
||
|
self.horizontalLayout = QtWidgets.QHBoxLayout(self.region_box)
|
||
|
self.horizontalLayout.setContentsMargins(3, 3, 3, 3)
|
||
|
self.horizontalLayout.setSpacing(3)
|
||
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
||
|
self.start_lineedit = QtWidgets.QLineEdit(self.region_box)
|
||
|
self.start_lineedit.setObjectName("start_lineedit")
|
||
|
self.horizontalLayout.addWidget(self.start_lineedit)
|
||
|
self.stop_lineedit = QtWidgets.QLineEdit(self.region_box)
|
||
|
self.stop_lineedit.setObjectName("stop_lineedit")
|
||
|
self.horizontalLayout.addWidget(self.stop_lineedit)
|
||
|
self.verticalLayout.addWidget(self.region_box)
|
||
|
self.fit_box = QtWidgets.QGroupBox(FCEval_dialog)
|
||
|
self.fit_box.setObjectName("fit_box")
|
||
|
self.gridLayout_3 = QtWidgets.QGridLayout(self.fit_box)
|
||
|
self.gridLayout_3.setObjectName("gridLayout_3")
|
||
|
self.label_12 = QtWidgets.QLabel(self.fit_box)
|
||
|
self.label_12.setObjectName("label_12")
|
||
|
self.gridLayout_3.addWidget(self.label_12, 0, 0, 1, 1)
|
||
|
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
|
||
|
self.gridLayout_3.addItem(spacerItem, 0, 1, 1, 1)
|
||
|
self.kww_checkbox = QtWidgets.QCheckBox(self.fit_box)
|
||
|
self.kww_checkbox.setChecked(True)
|
||
|
self.kww_checkbox.setObjectName("kww_checkbox")
|
||
|
self.gridLayout_3.addWidget(self.kww_checkbox, 0, 2, 1, 1)
|
||
|
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
|
||
|
self.horizontalLayout_3.setSpacing(2)
|
||
|
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
|
||
|
self.label_3 = QtWidgets.QLabel(self.fit_box)
|
||
|
self.label_3.setObjectName("label_3")
|
||
|
self.horizontalLayout_3.addWidget(self.label_3)
|
||
|
self.t1_cb = QtWidgets.QCheckBox(self.fit_box)
|
||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed)
|
||
|
sizePolicy.setHorizontalStretch(0)
|
||
|
sizePolicy.setVerticalStretch(0)
|
||
|
sizePolicy.setHeightForWidth(self.t1_cb.sizePolicy().hasHeightForWidth())
|
||
|
self.t1_cb.setSizePolicy(sizePolicy)
|
||
|
self.t1_cb.setText("")
|
||
|
self.t1_cb.setChecked(True)
|
||
|
self.t1_cb.setObjectName("t1_cb")
|
||
|
self.horizontalLayout_3.addWidget(self.t1_cb)
|
||
|
self.label_4 = QtWidgets.QLabel(self.fit_box)
|
||
|
self.label_4.setObjectName("label_4")
|
||
|
self.horizontalLayout_3.addWidget(self.label_4)
|
||
|
self.beta_cb = QtWidgets.QCheckBox(self.fit_box)
|
||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed)
|
||
|
sizePolicy.setHorizontalStretch(0)
|
||
|
sizePolicy.setVerticalStretch(0)
|
||
|
sizePolicy.setHeightForWidth(self.beta_cb.sizePolicy().hasHeightForWidth())
|
||
|
self.beta_cb.setSizePolicy(sizePolicy)
|
||
|
self.beta_cb.setChecked(True)
|
||
|
self.beta_cb.setObjectName("beta_cb")
|
||
|
self.horizontalLayout_3.addWidget(self.beta_cb)
|
||
|
self.label_5 = QtWidgets.QLabel(self.fit_box)
|
||
|
self.label_5.setObjectName("label_5")
|
||
|
self.horizontalLayout_3.addWidget(self.label_5)
|
||
|
self.m0_cb = QtWidgets.QCheckBox(self.fit_box)
|
||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed)
|
||
|
sizePolicy.setHorizontalStretch(0)
|
||
|
sizePolicy.setVerticalStretch(0)
|
||
|
sizePolicy.setHeightForWidth(self.m0_cb.sizePolicy().hasHeightForWidth())
|
||
|
self.m0_cb.setSizePolicy(sizePolicy)
|
||
|
self.m0_cb.setText("")
|
||
|
self.m0_cb.setObjectName("m0_cb")
|
||
|
self.horizontalLayout_3.addWidget(self.m0_cb)
|
||
|
self.label_6 = QtWidgets.QLabel(self.fit_box)
|
||
|
self.label_6.setObjectName("label_6")
|
||
|
self.horizontalLayout_3.addWidget(self.label_6)
|
||
|
self.off_cb = QtWidgets.QCheckBox(self.fit_box)
|
||
|
self.off_cb.setObjectName("off_cb")
|
||
|
self.horizontalLayout_3.addWidget(self.off_cb)
|
||
|
self.gridLayout_3.addLayout(self.horizontalLayout_3, 1, 0, 1, 3)
|
||
|
self.verticalLayout.addWidget(self.fit_box)
|
||
|
self.out_box = QtWidgets.QGroupBox(FCEval_dialog)
|
||
|
self.out_box.setObjectName("out_box")
|
||
|
self.gridLayout = QtWidgets.QGridLayout(self.out_box)
|
||
|
self.gridLayout.setContentsMargins(3, 3, 3, 3)
|
||
|
self.gridLayout.setObjectName("gridLayout")
|
||
|
self.savebutton = QtWidgets.QPushButton(self.out_box)
|
||
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
|
||
|
sizePolicy.setHorizontalStretch(0)
|
||
|
sizePolicy.setVerticalStretch(0)
|
||
|
sizePolicy.setHeightForWidth(self.savebutton.sizePolicy().hasHeightForWidth())
|
||
|
self.savebutton.setSizePolicy(sizePolicy)
|
||
|
self.savebutton.setObjectName("savebutton")
|
||
|
self.gridLayout.addWidget(self.savebutton, 0, 1, 1, 1)
|
||
|
self.line = QtWidgets.QFrame(self.out_box)
|
||
|
self.line.setFrameShape(QtWidgets.QFrame.HLine)
|
||
|
self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
|
||
|
self.line.setObjectName("line")
|
||
|
self.gridLayout.addWidget(self.line, 2, 0, 1, 2)
|
||
|
self.graph_comboBox = QtWidgets.QComboBox(self.out_box)
|
||
|
self.graph_comboBox.setObjectName("graph_comboBox")
|
||
|
self.gridLayout.addWidget(self.graph_comboBox, 3, 1, 1, 1)
|
||
|
self.graph_checkbox = QtWidgets.QCheckBox(self.out_box)
|
||
|
self.graph_checkbox.setChecked(True)
|
||
|
self.graph_checkbox.setObjectName("graph_checkbox")
|
||
|
self.gridLayout.addWidget(self.graph_checkbox, 3, 0, 1, 1)
|
||
|
self.label = QtWidgets.QLabel(self.out_box)
|
||
|
self.label.setMaximumSize(QtCore.QSize(16777215, 16777215))
|
||
|
self.label.setText("")
|
||
|
self.label.setObjectName("label")
|
||
|
self.gridLayout.addWidget(self.label, 1, 0, 1, 2)
|
||
|
self.label_2 = QtWidgets.QLabel(self.out_box)
|
||
|
self.label_2.setObjectName("label_2")
|
||
|
self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1)
|
||
|
self.verticalLayout.addWidget(self.out_box)
|
||
|
spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
|
||
|
self.verticalLayout.addItem(spacerItem1)
|
||
|
self.buttonBox = QtWidgets.QDialogButtonBox(FCEval_dialog)
|
||
|
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
|
||
|
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
|
||
|
self.buttonBox.setObjectName("buttonBox")
|
||
|
self.verticalLayout.addWidget(self.buttonBox)
|
||
|
self.label_12.setBuddy(self.kww_checkbox)
|
||
|
self.label_4.setBuddy(self.t1_cb)
|
||
|
self.label_5.setBuddy(self.beta_cb)
|
||
|
self.label_6.setBuddy(self.m0_cb)
|
||
|
|
||
|
self.retranslateUi(FCEval_dialog)
|
||
|
self.buttonBox.accepted.connect(FCEval_dialog.accept)
|
||
|
self.buttonBox.rejected.connect(FCEval_dialog.reject)
|
||
|
QtCore.QMetaObject.connectSlotsByName(FCEval_dialog)
|
||
|
|
||
|
def retranslateUi(self, FCEval_dialog):
|
||
|
_translate = QtCore.QCoreApplication.translate
|
||
|
FCEval_dialog.setWindowTitle(_translate("FCEval_dialog", "FC evaluation"))
|
||
|
self.input_box.setTitle(_translate("FCEval_dialog", "Input"))
|
||
|
self.file_pushbutton.setText(_translate("FCEval_dialog", "Add HDF files..."))
|
||
|
self.dir_pushbutton.setText(_translate("FCEval_dialog", "Add directory..."))
|
||
|
self.overwrite_cb.setText(_translate("FCEval_dialog", "Overwrite prev. data"))
|
||
|
self.region_box.setTitle(_translate("FCEval_dialog", "Evaluate region (empty values default to start/end)"))
|
||
|
self.start_lineedit.setPlaceholderText(_translate("FCEval_dialog", "start pos in µs"))
|
||
|
self.stop_lineedit.setPlaceholderText(_translate("FCEval_dialog", "end pos in µs"))
|
||
|
self.fit_box.setTitle(_translate("FCEval_dialog", "Fit equation"))
|
||
|
self.label_12.setText(_translate("FCEval_dialog", "y = M<sub>0</sub> exp[-(x/T<sub>1</sub>)<sup>β</sup>] + Off"))
|
||
|
self.kww_checkbox.setToolTip(_translate("FCEval_dialog", "Check to fit a stretched exponential instead of exponential function."))
|
||
|
self.kww_checkbox.setText(_translate("FCEval_dialog", "Stretched exponential"))
|
||
|
self.label_3.setText(_translate("FCEval_dialog", "Plot:"))
|
||
|
self.label_4.setText(_translate("FCEval_dialog", "T<sub>1</sub>"))
|
||
|
self.label_5.setText(_translate("FCEval_dialog", "β"))
|
||
|
self.label_6.setText(_translate("FCEval_dialog", "M<sub>0</sub>"))
|
||
|
self.off_cb.setText(_translate("FCEval_dialog", "Offset"))
|
||
|
self.out_box.setTitle(_translate("FCEval_dialog", "Output"))
|
||
|
self.savebutton.setText(_translate("FCEval_dialog", "Change directory..."))
|
||
|
self.graph_checkbox.setText(_translate("FCEval_dialog", "New graph"))
|
||
|
self.label_2.setText(_translate("FCEval_dialog", "Save location"))
|