2023-05-24 17:34:06 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
# Form implementation generated from reading ui file 'src/resources/_ui/tnmh_dialog.ui'
|
|
|
|
#
|
|
|
|
# Created by: PyQt5 UI code generator 5.15.9
|
|
|
|
#
|
|
|
|
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
|
|
|
|
# run again. Do not edit this file unless you know what you are doing.
|
|
|
|
|
|
|
|
|
|
|
|
from PyQt5 import QtCore, QtGui, QtWidgets
|
|
|
|
|
|
|
|
|
|
|
|
class Ui_Dialog(object):
|
|
|
|
def setupUi(self, Dialog):
|
|
|
|
Dialog.setObjectName("Dialog")
|
2023-06-27 16:23:41 +00:00
|
|
|
Dialog.resize(1094, 829)
|
2023-05-24 17:34:06 +00:00
|
|
|
self.gridLayout = QtWidgets.QGridLayout(Dialog)
|
|
|
|
self.gridLayout.setObjectName("gridLayout")
|
2023-06-13 18:28:37 +00:00
|
|
|
self.buttonBox = QtWidgets.QDialogButtonBox(Dialog)
|
|
|
|
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
|
2023-06-26 17:57:23 +00:00
|
|
|
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Close)
|
2023-06-13 18:28:37 +00:00
|
|
|
self.buttonBox.setObjectName("buttonBox")
|
2023-06-15 15:24:35 +00:00
|
|
|
self.gridLayout.addWidget(self.buttonBox, 5, 1, 1, 1)
|
2023-06-13 18:28:37 +00:00
|
|
|
self.verticalLayout = QtWidgets.QVBoxLayout()
|
|
|
|
self.verticalLayout.setObjectName("verticalLayout")
|
|
|
|
self.listWidget = QtWidgets.QListWidget(Dialog)
|
|
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Expanding)
|
|
|
|
sizePolicy.setHorizontalStretch(0)
|
|
|
|
sizePolicy.setVerticalStretch(0)
|
|
|
|
sizePolicy.setHeightForWidth(self.listWidget.sizePolicy().hasHeightForWidth())
|
|
|
|
self.listWidget.setSizePolicy(sizePolicy)
|
|
|
|
self.listWidget.setObjectName("listWidget")
|
|
|
|
self.verticalLayout.addWidget(self.listWidget)
|
|
|
|
self.label = QtWidgets.QLabel(Dialog)
|
|
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum)
|
|
|
|
sizePolicy.setHorizontalStretch(0)
|
|
|
|
sizePolicy.setVerticalStretch(0)
|
|
|
|
sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
|
|
|
|
self.label.setSizePolicy(sizePolicy)
|
|
|
|
self.label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
|
|
|
|
self.label.setObjectName("label")
|
|
|
|
self.verticalLayout.addWidget(self.label)
|
|
|
|
self.tg_value_label = QtWidgets.QLabel(Dialog)
|
2023-06-20 17:09:31 +00:00
|
|
|
self.tg_value_label.setText("")
|
2023-06-13 18:28:37 +00:00
|
|
|
self.tg_value_label.setObjectName("tg_value_label")
|
|
|
|
self.verticalLayout.addWidget(self.tg_value_label)
|
|
|
|
self.label_4 = QtWidgets.QLabel(Dialog)
|
|
|
|
self.label_4.setObjectName("label_4")
|
|
|
|
self.verticalLayout.addWidget(self.label_4)
|
|
|
|
self.label_5 = QtWidgets.QLabel(Dialog)
|
|
|
|
self.label_5.setText("")
|
|
|
|
self.label_5.setObjectName("label_5")
|
|
|
|
self.verticalLayout.addWidget(self.label_5)
|
2023-06-15 15:24:35 +00:00
|
|
|
self.gridLayout.addLayout(self.verticalLayout, 0, 0, 5, 1)
|
2023-06-26 17:57:23 +00:00
|
|
|
self.dsc_plot = PlotWidget(Dialog)
|
|
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.MinimumExpanding)
|
2023-05-24 17:34:06 +00:00
|
|
|
sizePolicy.setHorizontalStretch(0)
|
|
|
|
sizePolicy.setVerticalStretch(0)
|
2023-06-26 17:57:23 +00:00
|
|
|
sizePolicy.setHeightForWidth(self.dsc_plot.sizePolicy().hasHeightForWidth())
|
|
|
|
self.dsc_plot.setSizePolicy(sizePolicy)
|
|
|
|
self.dsc_plot.setObjectName("dsc_plot")
|
|
|
|
self.gridLayout.addWidget(self.dsc_plot, 0, 1, 1, 1)
|
2023-06-27 16:23:41 +00:00
|
|
|
self.verticalLayout_2 = QtWidgets.QVBoxLayout()
|
|
|
|
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
|
|
|
self.calctg_button = QtWidgets.QToolButton(Dialog)
|
|
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
|
2023-06-26 17:57:23 +00:00
|
|
|
sizePolicy.setHorizontalStretch(0)
|
|
|
|
sizePolicy.setVerticalStretch(0)
|
|
|
|
sizePolicy.setHeightForWidth(self.calctg_button.sizePolicy().hasHeightForWidth())
|
|
|
|
self.calctg_button.setSizePolicy(sizePolicy)
|
2023-06-27 16:23:41 +00:00
|
|
|
self.calctg_button.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
|
|
|
|
self.calctg_button.setArrowType(QtCore.Qt.RightArrow)
|
2023-06-26 17:57:23 +00:00
|
|
|
self.calctg_button.setObjectName("calctg_button")
|
2023-06-27 16:23:41 +00:00
|
|
|
self.verticalLayout_2.addWidget(self.calctg_button)
|
|
|
|
self.toolButton_2 = QtWidgets.QToolButton(Dialog)
|
|
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Preferred)
|
2023-06-26 17:57:23 +00:00
|
|
|
sizePolicy.setHorizontalStretch(0)
|
|
|
|
sizePolicy.setVerticalStretch(0)
|
2023-06-27 16:23:41 +00:00
|
|
|
sizePolicy.setHeightForWidth(self.toolButton_2.sizePolicy().hasHeightForWidth())
|
|
|
|
self.toolButton_2.setSizePolicy(sizePolicy)
|
|
|
|
self.toolButton_2.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
|
|
|
|
self.toolButton_2.setAutoRaise(False)
|
|
|
|
self.toolButton_2.setArrowType(QtCore.Qt.RightArrow)
|
|
|
|
self.toolButton_2.setObjectName("toolButton_2")
|
|
|
|
self.verticalLayout_2.addWidget(self.toolButton_2)
|
|
|
|
self.gridLayout.addLayout(self.verticalLayout_2, 0, 2, 1, 1)
|
2023-06-26 17:57:23 +00:00
|
|
|
self.tabWidget = QtWidgets.QTabWidget(Dialog)
|
|
|
|
self.tabWidget.setTabPosition(QtWidgets.QTabWidget.East)
|
|
|
|
self.tabWidget.setObjectName("tabWidget")
|
|
|
|
self.tabWidgetPage1 = QtWidgets.QWidget()
|
|
|
|
self.tabWidgetPage1.setObjectName("tabWidgetPage1")
|
|
|
|
self.gridLayout_3 = QtWidgets.QGridLayout(self.tabWidgetPage1)
|
|
|
|
self.gridLayout_3.setObjectName("gridLayout_3")
|
|
|
|
self.tglines_export_check = QtWidgets.QCheckBox(self.tabWidgetPage1)
|
2023-06-20 17:09:31 +00:00
|
|
|
self.tglines_export_check.setChecked(True)
|
2023-06-13 18:28:37 +00:00
|
|
|
self.tglines_export_check.setObjectName("tglines_export_check")
|
2023-06-27 16:23:41 +00:00
|
|
|
self.gridLayout_3.addWidget(self.tglines_export_check, 2, 3, 1, 1)
|
|
|
|
self.checkBox_6 = QtWidgets.QCheckBox(self.tabWidgetPage1)
|
|
|
|
self.checkBox_6.setChecked(True)
|
|
|
|
self.checkBox_6.setObjectName("checkBox_6")
|
|
|
|
self.gridLayout_3.addWidget(self.checkBox_6, 6, 3, 1, 1)
|
2023-06-26 17:57:23 +00:00
|
|
|
self.new_graph_tau_combo = QtWidgets.QComboBox(self.tabWidgetPage1)
|
|
|
|
self.new_graph_tau_combo.setObjectName("new_graph_tau_combo")
|
2023-06-27 16:23:41 +00:00
|
|
|
self.gridLayout_3.addWidget(self.new_graph_tau_combo, 8, 3, 1, 1)
|
2023-06-26 17:57:23 +00:00
|
|
|
self.line = QtWidgets.QFrame(self.tabWidgetPage1)
|
2023-06-13 18:28:37 +00:00
|
|
|
self.line.setFrameShape(QtWidgets.QFrame.HLine)
|
|
|
|
self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
|
|
|
|
self.line.setObjectName("line")
|
2023-06-27 16:23:41 +00:00
|
|
|
self.gridLayout_3.addWidget(self.line, 3, 2, 1, 2)
|
|
|
|
self.checkBox = QtWidgets.QCheckBox(self.tabWidgetPage1)
|
|
|
|
self.checkBox.setChecked(True)
|
|
|
|
self.checkBox.setObjectName("checkBox")
|
|
|
|
self.gridLayout_3.addWidget(self.checkBox, 5, 2, 1, 1)
|
|
|
|
self.tg_export_check = QtWidgets.QCheckBox(self.tabWidgetPage1)
|
|
|
|
self.tg_export_check.setChecked(True)
|
|
|
|
self.tg_export_check.setObjectName("tg_export_check")
|
|
|
|
self.gridLayout_3.addWidget(self.tg_export_check, 2, 2, 1, 1)
|
|
|
|
self.new_graph_tau_check = QtWidgets.QCheckBox(self.tabWidgetPage1)
|
|
|
|
self.new_graph_tau_check.setChecked(True)
|
|
|
|
self.new_graph_tau_check.setObjectName("new_graph_tau_check")
|
|
|
|
self.gridLayout_3.addWidget(self.new_graph_tau_check, 8, 2, 1, 1)
|
|
|
|
self.checkBox_5 = QtWidgets.QCheckBox(self.tabWidgetPage1)
|
|
|
|
self.checkBox_5.setChecked(True)
|
|
|
|
self.checkBox_5.setObjectName("checkBox_5")
|
|
|
|
self.gridLayout_3.addWidget(self.checkBox_5, 6, 2, 1, 1)
|
|
|
|
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
|
|
|
|
self.gridLayout_3.addItem(spacerItem, 10, 3, 1, 1)
|
|
|
|
self.label_6 = QtWidgets.QLabel(self.tabWidgetPage1)
|
|
|
|
self.label_6.setObjectName("label_6")
|
|
|
|
self.gridLayout_3.addWidget(self.label_6, 4, 2, 1, 2)
|
|
|
|
self.checkBox_4 = QtWidgets.QCheckBox(self.tabWidgetPage1)
|
|
|
|
self.checkBox_4.setChecked(True)
|
|
|
|
self.checkBox_4.setObjectName("checkBox_4")
|
|
|
|
self.gridLayout_3.addWidget(self.checkBox_4, 5, 3, 1, 1)
|
|
|
|
self.checkBox_7 = QtWidgets.QCheckBox(self.tabWidgetPage1)
|
|
|
|
self.checkBox_7.setChecked(True)
|
|
|
|
self.checkBox_7.setObjectName("checkBox_7")
|
|
|
|
self.gridLayout_3.addWidget(self.checkBox_7, 7, 2, 1, 1)
|
|
|
|
self.pushButton_4 = QtWidgets.QPushButton(self.tabWidgetPage1)
|
|
|
|
self.pushButton_4.setObjectName("pushButton_4")
|
|
|
|
self.gridLayout_3.addWidget(self.pushButton_4, 9, 2, 1, 2)
|
|
|
|
self.tghodge_graph = PlotWidget(self.tabWidgetPage1)
|
|
|
|
self.tghodge_graph.setObjectName("tghodge_graph")
|
|
|
|
self.gridLayout_3.addWidget(self.tghodge_graph, 2, 1, 9, 1)
|
2023-06-26 17:57:23 +00:00
|
|
|
self.tau_plot = PlotWidget(self.tabWidgetPage1)
|
|
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.MinimumExpanding)
|
|
|
|
sizePolicy.setHorizontalStretch(0)
|
|
|
|
sizePolicy.setVerticalStretch(0)
|
|
|
|
sizePolicy.setHeightForWidth(self.tau_plot.sizePolicy().hasHeightForWidth())
|
|
|
|
self.tau_plot.setSizePolicy(sizePolicy)
|
|
|
|
self.tau_plot.setObjectName("tau_plot")
|
2023-06-27 16:23:41 +00:00
|
|
|
self.gridLayout_3.addWidget(self.tau_plot, 2, 0, 9, 1)
|
2023-06-26 17:57:23 +00:00
|
|
|
self.tabWidget.addTab(self.tabWidgetPage1, "")
|
|
|
|
self.tabWidgetPage2 = QtWidgets.QWidget()
|
|
|
|
self.tabWidgetPage2.setObjectName("tabWidgetPage2")
|
|
|
|
self.gridLayout_2 = QtWidgets.QGridLayout(self.tabWidgetPage2)
|
2023-06-12 15:20:58 +00:00
|
|
|
self.gridLayout_2.setObjectName("gridLayout_2")
|
2023-06-27 16:23:41 +00:00
|
|
|
self.fit_tnhm_fitbutton = QtWidgets.QPushButton(self.tabWidgetPage2)
|
|
|
|
self.fit_tnhm_fitbutton.setObjectName("fit_tnhm_fitbutton")
|
|
|
|
self.gridLayout_2.addWidget(self.fit_tnhm_fitbutton, 1, 1, 1, 2)
|
2023-06-26 17:57:23 +00:00
|
|
|
self.graphicsView_2 = PlotWidget(self.tabWidgetPage2)
|
|
|
|
self.graphicsView_2.setObjectName("graphicsView_2")
|
|
|
|
self.gridLayout_2.addWidget(self.graphicsView_2, 0, 0, 9, 1)
|
2023-06-27 16:23:41 +00:00
|
|
|
self.new_graph_tnmh_check = QtWidgets.QCheckBox(self.tabWidgetPage2)
|
|
|
|
self.new_graph_tnmh_check.setChecked(True)
|
|
|
|
self.new_graph_tnmh_check.setObjectName("new_graph_tnmh_check")
|
|
|
|
self.gridLayout_2.addWidget(self.new_graph_tnmh_check, 5, 1, 1, 1)
|
2023-06-03 18:27:56 +00:00
|
|
|
self.horizontalLayout = QtWidgets.QHBoxLayout()
|
|
|
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
2023-06-26 17:57:23 +00:00
|
|
|
self.label_2 = QtWidgets.QLabel(self.tabWidgetPage2)
|
2023-06-03 18:27:56 +00:00
|
|
|
self.label_2.setObjectName("label_2")
|
|
|
|
self.horizontalLayout.addWidget(self.label_2)
|
2023-06-27 16:23:41 +00:00
|
|
|
self.tnmh_tg_combo = QtWidgets.QComboBox(self.tabWidgetPage2)
|
|
|
|
self.tnmh_tg_combo.setObjectName("tnmh_tg_combo")
|
|
|
|
self.tnmh_tg_combo.addItem("")
|
|
|
|
self.tnmh_tg_combo.addItem("")
|
|
|
|
self.tnmh_tg_combo.addItem("")
|
|
|
|
self.tnmh_tg_combo.addItem("")
|
|
|
|
self.tnmh_tg_combo.addItem("")
|
|
|
|
self.horizontalLayout.addWidget(self.tnmh_tg_combo)
|
2023-06-26 17:57:23 +00:00
|
|
|
self.gridLayout_2.addLayout(self.horizontalLayout, 0, 1, 1, 2)
|
2023-06-27 16:23:41 +00:00
|
|
|
self.new_graph_tnmh_combo = QtWidgets.QComboBox(self.tabWidgetPage2)
|
|
|
|
self.new_graph_tnmh_combo.setObjectName("new_graph_tnmh_combo")
|
|
|
|
self.gridLayout_2.addWidget(self.new_graph_tnmh_combo, 5, 2, 1, 1)
|
2023-06-26 17:57:23 +00:00
|
|
|
self.line_2 = QtWidgets.QFrame(self.tabWidgetPage2)
|
|
|
|
self.line_2.setMinimumSize(QtCore.QSize(0, 0))
|
|
|
|
self.line_2.setFrameShape(QtWidgets.QFrame.HLine)
|
|
|
|
self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
|
|
|
|
self.line_2.setObjectName("line_2")
|
|
|
|
self.gridLayout_2.addWidget(self.line_2, 2, 1, 1, 2)
|
|
|
|
self.checkBox_2 = QtWidgets.QCheckBox(self.tabWidgetPage2)
|
|
|
|
self.checkBox_2.setObjectName("checkBox_2")
|
|
|
|
self.gridLayout_2.addWidget(self.checkBox_2, 3, 1, 1, 2)
|
|
|
|
self.checkBox_3 = QtWidgets.QCheckBox(self.tabWidgetPage2)
|
|
|
|
self.checkBox_3.setObjectName("checkBox_3")
|
|
|
|
self.gridLayout_2.addWidget(self.checkBox_3, 4, 1, 1, 2)
|
2023-06-27 16:23:41 +00:00
|
|
|
spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
|
|
|
|
self.gridLayout_2.addItem(spacerItem1, 8, 1, 1, 1)
|
2023-06-26 17:57:23 +00:00
|
|
|
self.pushButton = QtWidgets.QPushButton(self.tabWidgetPage2)
|
|
|
|
self.pushButton.setObjectName("pushButton")
|
|
|
|
self.gridLayout_2.addWidget(self.pushButton, 7, 1, 1, 2)
|
|
|
|
self.tabWidget.addTab(self.tabWidgetPage2, "")
|
2023-06-27 16:23:41 +00:00
|
|
|
self.gridLayout.addWidget(self.tabWidget, 4, 1, 1, 2)
|
2023-05-24 17:34:06 +00:00
|
|
|
|
|
|
|
self.retranslateUi(Dialog)
|
2023-06-26 17:57:23 +00:00
|
|
|
self.tabWidget.setCurrentIndex(0)
|
2023-05-24 17:34:06 +00:00
|
|
|
self.buttonBox.accepted.connect(Dialog.accept) # type: ignore
|
|
|
|
self.buttonBox.rejected.connect(Dialog.reject) # type: ignore
|
|
|
|
QtCore.QMetaObject.connectSlotsByName(Dialog)
|
|
|
|
|
|
|
|
def retranslateUi(self, Dialog):
|
|
|
|
_translate = QtCore.QCoreApplication.translate
|
2023-06-03 18:27:56 +00:00
|
|
|
Dialog.setWindowTitle(_translate("Dialog", "SImba, everything the light touches is our kingdom"))
|
2023-06-13 18:28:37 +00:00
|
|
|
self.label.setText(_translate("Dialog", "<html><head/><body><p><span style=\" font-weight:600;\">Tg values:</span></p></body></html>"))
|
|
|
|
self.label_4.setText(_translate("Dialog", "<html><head/><body><p><span style=\" font-weight:600;\">TNMH parameter:</span></p></body></html>"))
|
2023-06-26 17:57:23 +00:00
|
|
|
self.calctg_button.setText(_translate("Dialog", "Calculate Tg"))
|
2023-06-27 16:23:41 +00:00
|
|
|
self.toolButton_2.setText(_translate("Dialog", "Calculate fictive Cp"))
|
2023-06-26 17:57:23 +00:00
|
|
|
self.tglines_export_check.setText(_translate("Dialog", "Export lines"))
|
2023-06-27 16:23:41 +00:00
|
|
|
self.checkBox_6.setText(_translate("Dialog", "End"))
|
|
|
|
self.checkBox.setText(_translate("Dialog", "Onset"))
|
|
|
|
self.tg_export_check.setText(_translate("Dialog", "Export Tg"))
|
2023-06-26 17:57:23 +00:00
|
|
|
self.new_graph_tau_check.setText(_translate("Dialog", "New graph"))
|
2023-06-27 16:23:41 +00:00
|
|
|
self.checkBox_5.setText(_translate("Dialog", "Inflection"))
|
|
|
|
self.label_6.setText(_translate("Dialog", "Export Hodge:"))
|
|
|
|
self.checkBox_4.setText(_translate("Dialog", "Midpoint"))
|
|
|
|
self.checkBox_7.setText(_translate("Dialog", "Fictive"))
|
|
|
|
self.pushButton_4.setText(_translate("Dialog", "Export"))
|
2023-06-26 17:57:23 +00:00
|
|
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabWidgetPage1), _translate("Dialog", "Tg / Hodge"))
|
2023-06-27 16:23:41 +00:00
|
|
|
self.fit_tnhm_fitbutton.setText(_translate("Dialog", "Fit TNMH model"))
|
|
|
|
self.new_graph_tnmh_check.setText(_translate("Dialog", "New graph"))
|
2023-06-03 18:27:56 +00:00
|
|
|
self.label_2.setText(_translate("Dialog", "Tg for TNMH"))
|
2023-06-27 16:23:41 +00:00
|
|
|
self.tnmh_tg_combo.setItemText(0, _translate("Dialog", "Fictive"))
|
|
|
|
self.tnmh_tg_combo.setItemText(1, _translate("Dialog", "Onset"))
|
|
|
|
self.tnmh_tg_combo.setItemText(2, _translate("Dialog", "Midpoint"))
|
|
|
|
self.tnmh_tg_combo.setItemText(3, _translate("Dialog", "End"))
|
|
|
|
self.tnmh_tg_combo.setItemText(4, _translate("Dialog", "Inflection"))
|
2023-06-26 17:57:23 +00:00
|
|
|
self.checkBox_2.setText(_translate("Dialog", "Export dTf / dT"))
|
|
|
|
self.checkBox_3.setText(_translate("Dialog", "Export fit"))
|
2023-06-27 16:23:41 +00:00
|
|
|
self.pushButton.setText(_translate("Dialog", "Export"))
|
2023-06-26 17:57:23 +00:00
|
|
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabWidgetPage2), _translate("Dialog", "TNMH"))
|
2023-05-24 17:34:06 +00:00
|
|
|
from pyqtgraph import PlotWidget
|