tg dialog clean-up

This commit is contained in:
Dominik Demuth 2023-07-06 20:05:10 +02:00
parent 1d9b641f0a
commit ead9751541
5 changed files with 705 additions and 544 deletions

View File

@ -11,185 +11,243 @@
from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Wizard(object): class Ui_DSCEvalDialog(object):
def setupUi(self, Wizard): def setupUi(self, DSCEvalDialog):
Wizard.setObjectName("Wizard") DSCEvalDialog.setObjectName("DSCEvalDialog")
Wizard.resize(854, 619) DSCEvalDialog.resize(996, 712)
self.wizardPage1 = QtWidgets.QWizardPage() self.gridLayout = QtWidgets.QGridLayout(DSCEvalDialog)
self.wizardPage1.setObjectName("wizardPage1")
self.gridLayout = QtWidgets.QGridLayout(self.wizardPage1)
self.gridLayout.setObjectName("gridLayout") self.gridLayout.setObjectName("gridLayout")
self.treeWidget = QtWidgets.QTreeWidget(self.wizardPage1) self.listWidget = QListWidgetSelect(DSCEvalDialog)
self.treeWidget.setObjectName("treeWidget") sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Expanding)
self.treeWidget.headerItem().setText(0, "1") sizePolicy.setHorizontalStretch(0)
self.treeWidget.header().setVisible(False) sizePolicy.setVerticalStretch(0)
self.gridLayout.addWidget(self.treeWidget, 2, 0, 1, 1) sizePolicy.setHeightForWidth(self.listWidget.sizePolicy().hasHeightForWidth())
self.listWidget.setSizePolicy(sizePolicy)
self.listWidget.setSelectionMode(QtWidgets.QAbstractItemView.ExtendedSelection)
self.listWidget.setObjectName("listWidget")
self.gridLayout.addWidget(self.listWidget, 0, 0, 1, 1)
self.stackedWidget = QtWidgets.QStackedWidget(DSCEvalDialog)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.stackedWidget.sizePolicy().hasHeightForWidth())
self.stackedWidget.setSizePolicy(sizePolicy)
self.stackedWidget.setFrameShape(QtWidgets.QFrame.Box)
self.stackedWidget.setObjectName("stackedWidget")
self.page = QtWidgets.QWidget()
self.page.setObjectName("page")
self.gridLayout_2 = QtWidgets.QGridLayout(self.page)
self.gridLayout_2.setObjectName("gridLayout_2")
self.gridLayout_9 = QtWidgets.QGridLayout() self.gridLayout_9 = QtWidgets.QGridLayout()
self.gridLayout_9.setObjectName("gridLayout_9") self.gridLayout_9.setObjectName("gridLayout_9")
self.tg_export_check = QtWidgets.QCheckBox(self.wizardPage1) self.tg_export_check = QtWidgets.QCheckBox(self.page)
self.tg_export_check.setChecked(True) self.tg_export_check.setChecked(True)
self.tg_export_check.setObjectName("tg_export_check") self.tg_export_check.setObjectName("tg_export_check")
self.gridLayout_9.addWidget(self.tg_export_check, 0, 0, 1, 1) self.gridLayout_9.addWidget(self.tg_export_check, 0, 0, 1, 1)
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.gridLayout_9.addItem(spacerItem, 3, 0, 1, 1) self.gridLayout_9.addItem(spacerItem, 3, 0, 1, 1)
self.tglines_export_check = QtWidgets.QCheckBox(self.wizardPage1) self.tglines_export_check = QtWidgets.QCheckBox(self.page)
self.tglines_export_check.setChecked(True) self.tglines_export_check.setChecked(True)
self.tglines_export_check.setObjectName("tglines_export_check") self.tglines_export_check.setObjectName("tglines_export_check")
self.gridLayout_9.addWidget(self.tglines_export_check, 0, 1, 1, 1) self.gridLayout_9.addWidget(self.tglines_export_check, 0, 1, 1, 1)
self.pushButton = QtWidgets.QPushButton(self.wizardPage1) self.tg_export_button = QtWidgets.QPushButton(self.page)
self.pushButton.setObjectName("pushButton") self.tg_export_button.setObjectName("tg_export_button")
self.gridLayout_9.addWidget(self.pushButton, 2, 0, 1, 2) self.gridLayout_9.addWidget(self.tg_export_button, 2, 0, 1, 2)
self.gridLayout.addLayout(self.gridLayout_9, 2, 1, 1, 1) self.gridLayout_2.addLayout(self.gridLayout_9, 2, 1, 1, 1)
self.dsc_plot = PlotWidget(self.wizardPage1) self.tg_tree = QtWidgets.QTreeWidget(self.page)
self.tg_tree.setObjectName("tg_tree")
self.tg_tree.headerItem().setText(0, "1")
self.tg_tree.header().setVisible(False)
self.gridLayout_2.addWidget(self.tg_tree, 2, 0, 1, 1)
self.dsc_plot = PlotWidget(self.page)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.MinimumExpanding) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0) sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0) sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.dsc_plot.sizePolicy().hasHeightForWidth()) sizePolicy.setHeightForWidth(self.dsc_plot.sizePolicy().hasHeightForWidth())
self.dsc_plot.setSizePolicy(sizePolicy) self.dsc_plot.setSizePolicy(sizePolicy)
self.dsc_plot.setObjectName("dsc_plot") self.dsc_plot.setObjectName("dsc_plot")
self.gridLayout.addWidget(self.dsc_plot, 1, 0, 1, 2) self.gridLayout_2.addWidget(self.dsc_plot, 1, 0, 1, 2)
self.calctg_button = QtWidgets.QToolButton(self.wizardPage1) self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
self.label = QtWidgets.QLabel(self.page)
self.label.setObjectName("label")
self.horizontalLayout_4.addWidget(self.label)
self.calctg_button = QtWidgets.QPushButton(self.page)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0) sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0) sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.calctg_button.sizePolicy().hasHeightForWidth()) sizePolicy.setHeightForWidth(self.calctg_button.sizePolicy().hasHeightForWidth())
self.calctg_button.setSizePolicy(sizePolicy) self.calctg_button.setSizePolicy(sizePolicy)
self.calctg_button.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
self.calctg_button.setArrowType(QtCore.Qt.RightArrow)
self.calctg_button.setObjectName("calctg_button") self.calctg_button.setObjectName("calctg_button")
self.gridLayout.addWidget(self.calctg_button, 0, 0, 1, 2) self.horizontalLayout_4.addWidget(self.calctg_button)
Wizard.addPage(self.wizardPage1) self.gridLayout_2.addLayout(self.horizontalLayout_4, 0, 0, 1, 2)
self.wizardPage2 = QtWidgets.QWizardPage() self.stackedWidget.addWidget(self.page)
self.wizardPage2.setObjectName("wizardPage2") self.page_2 = QtWidgets.QWidget()
self.gridLayout_2 = QtWidgets.QGridLayout(self.wizardPage2) self.page_2.setObjectName("page_2")
self.gridLayout_2.setObjectName("gridLayout_2") self.gridLayout_3 = QtWidgets.QGridLayout(self.page_2)
self.toolButton = QtWidgets.QToolButton(self.wizardPage2) self.gridLayout_3.setObjectName("gridLayout_3")
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) self.label_4 = QtWidgets.QLabel(self.page_2)
sizePolicy.setHorizontalStretch(0) self.label_4.setObjectName("label_4")
sizePolicy.setVerticalStretch(0) self.gridLayout_3.addWidget(self.label_4, 2, 0, 1, 1)
sizePolicy.setHeightForWidth(self.toolButton.sizePolicy().hasHeightForWidth()) self.tghodge_graph = PlotWidget(self.page_2)
self.toolButton.setSizePolicy(sizePolicy)
self.toolButton.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
self.toolButton.setArrowType(QtCore.Qt.RightArrow)
self.toolButton.setObjectName("toolButton")
self.gridLayout_2.addWidget(self.toolButton, 0, 0, 1, 2)
self.tghodge_graph = PlotWidget(self.wizardPage2)
self.tghodge_graph.setObjectName("tghodge_graph") self.tghodge_graph.setObjectName("tghodge_graph")
self.gridLayout_2.addWidget(self.tghodge_graph, 2, 0, 1, 1) self.gridLayout_3.addWidget(self.tghodge_graph, 1, 0, 1, 1)
self.tau_plot = PlotWidget(self.wizardPage2) self.tau_plot = PlotWidget(self.page_2)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.MinimumExpanding) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0) sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0) sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.tau_plot.sizePolicy().hasHeightForWidth()) sizePolicy.setHeightForWidth(self.tau_plot.sizePolicy().hasHeightForWidth())
self.tau_plot.setSizePolicy(sizePolicy) self.tau_plot.setSizePolicy(sizePolicy)
self.tau_plot.setObjectName("tau_plot") self.tau_plot.setObjectName("tau_plot")
self.gridLayout_2.addWidget(self.tau_plot, 2, 1, 1, 1) self.gridLayout_3.addWidget(self.tau_plot, 1, 1, 1, 1)
self.gridLayout_4 = QtWidgets.QGridLayout() self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
self.gridLayout_4.setObjectName("gridLayout_4") self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.checkBox_6 = QtWidgets.QCheckBox(self.wizardPage2) self.label_2 = QtWidgets.QLabel(self.page_2)
self.checkBox_6.setChecked(True) self.label_2.setObjectName("label_2")
self.checkBox_6.setObjectName("checkBox_6") self.horizontalLayout_3.addWidget(self.label_2)
self.gridLayout_4.addWidget(self.checkBox_6, 2, 0, 1, 1) self.hodge_button = QtWidgets.QPushButton(self.page_2)
self.new_graph_tau_check = QtWidgets.QCheckBox(self.wizardPage2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
self.new_graph_tau_check.setChecked(True)
self.new_graph_tau_check.setObjectName("new_graph_tau_check")
self.gridLayout_4.addWidget(self.new_graph_tau_check, 0, 1, 1, 1)
self.checkBox_7 = QtWidgets.QCheckBox(self.wizardPage2)
self.checkBox_7.setChecked(True)
self.checkBox_7.setObjectName("checkBox_7")
self.gridLayout_4.addWidget(self.checkBox_7, 4, 0, 1, 1)
self.checkBox_5 = QtWidgets.QCheckBox(self.wizardPage2)
self.checkBox_5.setChecked(True)
self.checkBox_5.setObjectName("checkBox_5")
self.gridLayout_4.addWidget(self.checkBox_5, 3, 0, 1, 1)
self.new_graph_tau_combo = QtWidgets.QComboBox(self.wizardPage2)
self.new_graph_tau_combo.setEnabled(False)
self.new_graph_tau_combo.setObjectName("new_graph_tau_combo")
self.gridLayout_4.addWidget(self.new_graph_tau_combo, 0, 2, 1, 1)
self.checkBox_4 = QtWidgets.QCheckBox(self.wizardPage2)
self.checkBox_4.setChecked(True)
self.checkBox_4.setObjectName("checkBox_4")
self.gridLayout_4.addWidget(self.checkBox_4, 1, 0, 1, 1)
self.checkBox = QtWidgets.QCheckBox(self.wizardPage2)
self.checkBox.setChecked(True)
self.checkBox.setObjectName("checkBox")
self.gridLayout_4.addWidget(self.checkBox, 0, 0, 1, 1)
self.pushButton_4 = QtWidgets.QPushButton(self.wizardPage2)
self.pushButton_4.setObjectName("pushButton_4")
self.gridLayout_4.addWidget(self.pushButton_4, 4, 1, 1, 2)
self.gridLayout_2.addLayout(self.gridLayout_4, 3, 0, 1, 2)
Wizard.addPage(self.wizardPage2)
self.wizardPage = QtWidgets.QWizardPage()
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0) sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0) sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.wizardPage.sizePolicy().hasHeightForWidth()) sizePolicy.setHeightForWidth(self.hodge_button.sizePolicy().hasHeightForWidth())
self.wizardPage.setSizePolicy(sizePolicy) self.hodge_button.setSizePolicy(sizePolicy)
self.wizardPage.setSubTitle("") self.hodge_button.setObjectName("hodge_button")
self.wizardPage.setObjectName("wizardPage") self.horizontalLayout_3.addWidget(self.hodge_button)
self.gridLayout_6 = QtWidgets.QGridLayout(self.wizardPage) self.gridLayout_3.addLayout(self.horizontalLayout_3, 0, 0, 1, 2)
self.export_hodge_button = QtWidgets.QPushButton(self.page_2)
self.export_hodge_button.setObjectName("export_hodge_button")
self.gridLayout_3.addWidget(self.export_hodge_button, 5, 1, 1, 1)
self.hodge_graph_combo = QtWidgets.QComboBox(self.page_2)
self.hodge_graph_combo.setEnabled(False)
self.hodge_graph_combo.setObjectName("hodge_graph_combo")
self.gridLayout_3.addWidget(self.hodge_graph_combo, 4, 1, 1, 1)
self.hodge_graph_check = QtWidgets.QCheckBox(self.page_2)
self.hodge_graph_check.setChecked(True)
self.hodge_graph_check.setObjectName("hodge_graph_check")
self.gridLayout_3.addWidget(self.hodge_graph_check, 4, 0, 1, 1)
self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
self.horizontalLayout_5.setObjectName("horizontalLayout_5")
self.onset_check = QtWidgets.QCheckBox(self.page_2)
self.onset_check.setChecked(True)
self.onset_check.setObjectName("onset_check")
self.horizontalLayout_5.addWidget(self.onset_check)
self.mid_check = QtWidgets.QCheckBox(self.page_2)
self.mid_check.setChecked(True)
self.mid_check.setObjectName("mid_check")
self.horizontalLayout_5.addWidget(self.mid_check)
self.end_check = QtWidgets.QCheckBox(self.page_2)
self.end_check.setChecked(True)
self.end_check.setObjectName("end_check")
self.horizontalLayout_5.addWidget(self.end_check)
self.inflection_check = QtWidgets.QCheckBox(self.page_2)
self.inflection_check.setChecked(True)
self.inflection_check.setObjectName("inflection_check")
self.horizontalLayout_5.addWidget(self.inflection_check)
self.fictive_check = QtWidgets.QCheckBox(self.page_2)
self.fictive_check.setChecked(True)
self.fictive_check.setObjectName("fictive_check")
self.horizontalLayout_5.addWidget(self.fictive_check)
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_5.addItem(spacerItem1)
self.gridLayout_3.addLayout(self.horizontalLayout_5, 3, 0, 1, 2)
self.stackedWidget.addWidget(self.page_2)
self.page_3 = QtWidgets.QWidget()
self.page_3.setObjectName("page_3")
self.gridLayout_6 = QtWidgets.QGridLayout(self.page_3)
self.gridLayout_6.setObjectName("gridLayout_6") self.gridLayout_6.setObjectName("gridLayout_6")
self.fit_tnhm_fitbutton = QtWidgets.QPushButton(self.wizardPage) self.tnmh_graphics = PlotWidget(self.page_3)
self.fit_tnhm_fitbutton.setObjectName("fit_tnhm_fitbutton") self.tnmh_graphics.setObjectName("tnmh_graphics")
self.gridLayout_6.addWidget(self.fit_tnhm_fitbutton, 0, 0, 1, 2) self.gridLayout_6.addWidget(self.tnmh_graphics, 1, 0, 1, 2)
self.treeWidget_2 = QtWidgets.QTreeWidget(self.wizardPage) self.tnmh_tree = QtWidgets.QTreeWidget(self.page_3)
self.treeWidget_2.setObjectName("treeWidget_2") self.tnmh_tree.setObjectName("tnmh_tree")
self.treeWidget_2.headerItem().setText(0, "1") self.tnmh_tree.headerItem().setText(0, "1")
self.treeWidget_2.header().setVisible(False) self.tnmh_tree.header().setVisible(False)
self.gridLayout_6.addWidget(self.treeWidget_2, 2, 0, 1, 1) self.gridLayout_6.addWidget(self.tnmh_tree, 2, 0, 1, 1)
self.gridLayout_5 = QtWidgets.QGridLayout() self.gridLayout_5 = QtWidgets.QGridLayout()
self.gridLayout_5.setObjectName("gridLayout_5") self.gridLayout_5.setObjectName("gridLayout_5")
self.new_graph_tnmh_check_2 = QtWidgets.QCheckBox(self.wizardPage) self.tnmh_graph_check = QtWidgets.QCheckBox(self.page_3)
self.new_graph_tnmh_check_2.setChecked(True) self.tnmh_graph_check.setChecked(True)
self.new_graph_tnmh_check_2.setObjectName("new_graph_tnmh_check_2") self.tnmh_graph_check.setObjectName("tnmh_graph_check")
self.gridLayout_5.addWidget(self.new_graph_tnmh_check_2, 1, 0, 1, 1) self.gridLayout_5.addWidget(self.tnmh_graph_check, 1, 0, 1, 1)
self.checkBox_14 = QtWidgets.QCheckBox(self.wizardPage) self.tnmhfit_export_check = QtWidgets.QCheckBox(self.page_3)
self.checkBox_14.setChecked(True) self.tnmhfit_export_check.setChecked(True)
self.checkBox_14.setObjectName("checkBox_14") self.tnmhfit_export_check.setObjectName("tnmhfit_export_check")
self.gridLayout_5.addWidget(self.checkBox_14, 0, 0, 1, 1) self.gridLayout_5.addWidget(self.tnmhfit_export_check, 0, 0, 1, 1)
self.pushButton_2 = QtWidgets.QPushButton(self.wizardPage) self.tnmh_export_button = QtWidgets.QPushButton(self.page_3)
self.pushButton_2.setObjectName("pushButton_2") self.tnmh_export_button.setObjectName("tnmh_export_button")
self.gridLayout_5.addWidget(self.pushButton_2, 2, 0, 1, 2) self.gridLayout_5.addWidget(self.tnmh_export_button, 2, 0, 1, 2)
self.checkBox_13 = QtWidgets.QCheckBox(self.wizardPage) self.fictive_export_check = QtWidgets.QCheckBox(self.page_3)
self.checkBox_13.setChecked(True) self.fictive_export_check.setChecked(True)
self.checkBox_13.setObjectName("checkBox_13") self.fictive_export_check.setObjectName("fictive_export_check")
self.gridLayout_5.addWidget(self.checkBox_13, 0, 1, 1, 1) self.gridLayout_5.addWidget(self.fictive_export_check, 0, 1, 1, 1)
self.new_graph_tnmh_combo_2 = QtWidgets.QComboBox(self.wizardPage) self.tnmh_graph_combo = QtWidgets.QComboBox(self.page_3)
self.new_graph_tnmh_combo_2.setEnabled(False) self.tnmh_graph_combo.setEnabled(False)
self.new_graph_tnmh_combo_2.setObjectName("new_graph_tnmh_combo_2") self.tnmh_graph_combo.setObjectName("tnmh_graph_combo")
self.gridLayout_5.addWidget(self.new_graph_tnmh_combo_2, 1, 1, 1, 1) self.gridLayout_5.addWidget(self.tnmh_graph_combo, 1, 1, 1, 1)
spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.gridLayout_5.addItem(spacerItem1, 3, 0, 1, 1) self.gridLayout_5.addItem(spacerItem2, 3, 0, 1, 1)
self.gridLayout_6.addLayout(self.gridLayout_5, 2, 1, 1, 1) self.gridLayout_6.addLayout(self.gridLayout_5, 2, 1, 1, 1)
self.graphicsView_3 = PlotWidget(self.wizardPage) self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.graphicsView_3.setObjectName("graphicsView_3") self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.gridLayout_6.addWidget(self.graphicsView_3, 1, 0, 1, 2) self.label_3 = QtWidgets.QLabel(self.page_3)
Wizard.addPage(self.wizardPage) self.label_3.setObjectName("label_3")
self.horizontalLayout_2.addWidget(self.label_3)
self.tnhm_fitbutton = QtWidgets.QPushButton(self.page_3)
self.tnhm_fitbutton.setObjectName("tnhm_fitbutton")
self.horizontalLayout_2.addWidget(self.tnhm_fitbutton)
self.gridLayout_6.addLayout(self.horizontalLayout_2, 0, 0, 1, 2)
self.stackedWidget.addWidget(self.page_3)
self.gridLayout.addWidget(self.stackedWidget, 0, 1, 1, 1)
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem3)
self.back_button = QtWidgets.QToolButton(DSCEvalDialog)
self.back_button.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
self.back_button.setArrowType(QtCore.Qt.LeftArrow)
self.back_button.setObjectName("back_button")
self.horizontalLayout.addWidget(self.back_button)
self.next_button = QtWidgets.QToolButton(DSCEvalDialog)
self.next_button.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
self.next_button.setArrowType(QtCore.Qt.RightArrow)
self.next_button.setObjectName("next_button")
self.horizontalLayout.addWidget(self.next_button)
self.close_button = QtWidgets.QPushButton(DSCEvalDialog)
self.close_button.setObjectName("close_button")
self.horizontalLayout.addWidget(self.close_button)
self.gridLayout.addLayout(self.horizontalLayout, 1, 0, 1, 2)
self.retranslateUi(Wizard) self.retranslateUi(DSCEvalDialog)
QtCore.QMetaObject.connectSlotsByName(Wizard) self.stackedWidget.setCurrentIndex(0)
self.close_button.clicked.connect(DSCEvalDialog.close) # type: ignore
QtCore.QMetaObject.connectSlotsByName(DSCEvalDialog)
def retranslateUi(self, Wizard): def retranslateUi(self, DSCEvalDialog):
_translate = QtCore.QCoreApplication.translate _translate = QtCore.QCoreApplication.translate
Wizard.setWindowTitle(_translate("Wizard", "Wizard")) DSCEvalDialog.setWindowTitle(_translate("DSCEvalDialog", "To boldly go where no man has gone before"))
self.wizardPage1.setTitle(_translate("Wizard", "Glass transition")) self.tg_export_check.setText(_translate("DSCEvalDialog", "Export Tg"))
self.tg_export_check.setText(_translate("Wizard", "Export Tg")) self.tglines_export_check.setText(_translate("DSCEvalDialog", "Export lines"))
self.tglines_export_check.setText(_translate("Wizard", "Export lines")) self.tg_export_button.setText(_translate("DSCEvalDialog", "Export"))
self.pushButton.setText(_translate("Wizard", "Export")) self.label.setText(_translate("DSCEvalDialog", "<html><head/><body><p><span style=\" font-weight:600;\">Glass transition</span></p></body></html>"))
self.calctg_button.setText(_translate("Wizard", "Calculate Tg")) self.calctg_button.setText(_translate("DSCEvalDialog", "Calculate Tg"))
self.wizardPage2.setTitle(_translate("Wizard", "Hodge")) self.label_4.setText(_translate("DSCEvalDialog", "Export tau:"))
self.toolButton.setText(_translate("Wizard", "Calculate Hodge")) self.label_2.setText(_translate("DSCEvalDialog", "<html><head/><body><p><span style=\" font-weight:600;\">Hodge tau</span></p></body></html>"))
self.checkBox_6.setText(_translate("Wizard", "End")) self.hodge_button.setText(_translate("DSCEvalDialog", "Make it so."))
self.new_graph_tau_check.setText(_translate("Wizard", "New graph")) self.export_hodge_button.setText(_translate("DSCEvalDialog", "Export"))
self.checkBox_7.setText(_translate("Wizard", "Fictive")) self.hodge_graph_check.setText(_translate("DSCEvalDialog", "New graph"))
self.checkBox_5.setText(_translate("Wizard", "Inflection")) self.onset_check.setText(_translate("DSCEvalDialog", "Onset"))
self.checkBox_4.setText(_translate("Wizard", "Midpoint")) self.mid_check.setText(_translate("DSCEvalDialog", "Midpoint"))
self.checkBox.setText(_translate("Wizard", "Onset")) self.end_check.setText(_translate("DSCEvalDialog", "End"))
self.pushButton_4.setText(_translate("Wizard", "Export")) self.inflection_check.setText(_translate("DSCEvalDialog", "Inflection"))
self.wizardPage.setTitle(_translate("Wizard", "TNMH")) self.fictive_check.setText(_translate("DSCEvalDialog", "Fictive"))
self.fit_tnhm_fitbutton.setText(_translate("Wizard", "Fit TNMH model")) self.tnmh_graph_check.setText(_translate("DSCEvalDialog", "New graph"))
self.new_graph_tnmh_check_2.setText(_translate("Wizard", "New graph")) self.tnmhfit_export_check.setText(_translate("DSCEvalDialog", "Export fit"))
self.checkBox_14.setText(_translate("Wizard", "Export fit")) self.tnmh_export_button.setText(_translate("DSCEvalDialog", "Export"))
self.pushButton_2.setText(_translate("Wizard", "Export")) self.fictive_export_check.setText(_translate("DSCEvalDialog", "Export dTf / dT"))
self.checkBox_13.setText(_translate("Wizard", "Export dTf / dT")) self.label_3.setText(_translate("DSCEvalDialog", "<html><head/><body><p><span style=\" font-weight:600;\">dTf/dT and TNMH </span></p></body></html>"))
self.tnhm_fitbutton.setText(_translate("DSCEvalDialog", "Engage!"))
self.back_button.setText(_translate("DSCEvalDialog", "Back"))
self.next_button.setText(_translate("DSCEvalDialog", "Next"))
self.close_button.setText(_translate("DSCEvalDialog", "Close"))
from ..lib.listwidget import QListWidgetSelect
from pyqtgraph import PlotWidget from pyqtgraph import PlotWidget

View File

@ -1,31 +1,24 @@
import pprint
from itertools import cycle from itertools import cycle
from numpy import array, nan, isnan from numpy import array, nan, isnan
from pyqtgraph import mkPen, mkBrush, LegendItem from pyqtgraph import mkPen, mkBrush
from nmreval.dsc.hodge import tau_hodge from nmreval.dsc.hodge import tau_hodge
from nmreval.lib.colors import Tab10 from nmreval.lib.colors import Tab10
from ..Qt import QtWidgets, QtCore, QtGui from ..Qt import QtWidgets, QtCore
from .._py.tnmh_dialog import Ui_Wizard from .._py.tnmh_dialog import Ui_DSCEvalDialog
from ..lib.listwidget import QListWidgetSelect
from ..lib.pg_objects import PlotItem, RegionItem from ..lib.pg_objects import PlotItem, RegionItem
from nmreval.data import DSC, Points from nmreval.data import DSC, Points
class TgCalculator(QtWidgets.QWizard, Ui_Wizard): class TgCalculator(QtWidgets.QWizard, Ui_DSCEvalDialog):
newData = QtCore.pyqtSignal(dict, str) newData = QtCore.pyqtSignal(dict, str)
def __init__(self, management, parent=None): def __init__(self, management, parent=None):
super().__init__(parent=parent) super().__init__(parent=parent)
self.setupUi(self) self.setupUi(self)
self.listWidget = QListWidgetSelect(parent=self)
self.listWidget.setSelectionMode(self.listWidget.ExtendedSelection)
self.listWidget.itemChanged.connect(self.change_visibility)
self.setSideWidget(self.listWidget)
self.listWidget.setSizePolicy(QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.MinimumExpanding))
self._management = management self._management = management
self._colors = cycle(Tab10) self._colors = cycle(Tab10)
@ -87,8 +80,11 @@ class TgCalculator(QtWidgets.QWizard, Ui_Wizard):
self.add_sets() self.add_sets()
self.new_graph_tau_check.stateChanged.connect(lambda state: self.new_graph_tau_combo.setEnabled(not bool(state))) self.tnmh_graph_check.stateChanged.connect(lambda state: self.tnmh_graph_combo.setEnabled(not bool(state)))
self.new_graph_tau_check.stateChanged.connect(lambda state: self.new_graph_tnmh_combo_2.setEnabled(not bool(state))) self.hodge_graph_check.stateChanged.connect(lambda state: self.hodge_graph_combo.setEnabled(not bool(state)))
self.next_button.clicked.connect(lambda: self.stackedWidget.setCurrentIndex((self.stackedWidget.currentIndex() + 1) % 3))
self.back_button.clicked.connect(lambda: self.stackedWidget.setCurrentIndex((self.stackedWidget.currentIndex() + 2) % 3))
def __call__(self): def __call__(self):
self.clear() self.clear()
@ -99,9 +95,13 @@ class TgCalculator(QtWidgets.QWizard, Ui_Wizard):
def clear(self): def clear(self):
self.listWidget.clear() self.listWidget.clear()
self.tg_tree.clear()
self.tnmh_tree.clear()
for plots in self._plots.values(): for plots in self._plots.values():
for val in plots: for val in plots:
self.dsc_plot.removeItem(val) self.dsc_plot.removeItem(val)
self.tnmh_graphics.removeItem(val)
for key, plt in self._hodge.items(): for key, plt in self._hodge.items():
plt[0].setData(x=[], y=[]) plt[0].setData(x=[], y=[])
@ -115,11 +115,13 @@ class TgCalculator(QtWidgets.QWizard, Ui_Wizard):
self._lines = {} self._lines = {}
self._fit = {} self._fit = {}
self.stackedWidget.setCurrentIndex(0)
def add_sets(self): def add_sets(self):
self.new_graph_tau_combo.clear() for w in (self.tnmh_graph_combo, self.hodge_graph_combo):
for graphs in self._management.graphs.list(): w.clear()
self.new_graph_tau_combo.addItem(graphs[1], userData=graphs[0]) for graphs in self._management.graphs.list():
self.new_graph_tnmh_combo_2.addItem(graphs[1], userData=graphs[0]) w.addItem(graphs[1], userData=graphs[0])
min_x = 10_000_000 min_x = 10_000_000
max_x = -10_000_000 max_x = -10_000_000
@ -158,11 +160,11 @@ class TgCalculator(QtWidgets.QWizard, Ui_Wizard):
self.dsc_plot.addItem(tg_plot) self.dsc_plot.addItem(tg_plot)
fictive_cp = PlotItem(pen=mkPen(c.rgb())) fictive_cp = PlotItem(pen=mkPen(c.rgb()))
self.graphicsView_3.addItem(fictive_cp) self.tnmh_graphics.addItem(fictive_cp)
tnmh_fit = PlotItem() tnmh_fit = PlotItem()
tnmh_fit.set_line(style=2, color=c) tnmh_fit.set_line(style=2, color=c)
self.graphicsView_3.addItem(tnmh_fit) self.tnmh_graphics.addItem(tnmh_fit)
self._plots[key] = (data_plot, tg_plot, glass, liquid, tangent, fictive_cp, tnmh_fit) self._plots[key] = (data_plot, tg_plot, glass, liquid, tangent, fictive_cp, tnmh_fit)
self._tg_value[key] = { self._tg_value[key] = {
@ -173,7 +175,7 @@ class TgCalculator(QtWidgets.QWizard, Ui_Wizard):
# 'fictive': (nan, nan), # 'fictive': (nan, nan),
} }
if self._limitless: if self._limitless and max_x != -10000000 and min_x != 10000000 :
dist = max_x - min_x dist = max_x - min_x
self.limits[0].setRegion((min_x, min_x+min(0.1*dist, 5))) self.limits[0].setRegion((min_x, min_x+min(0.1*dist, 5)))
self.limits[1].setRegion((max_x-min(5, 0.1*dist), max_x)) self.limits[1].setRegion((max_x-min(5, 0.1*dist), max_x))
@ -205,7 +207,7 @@ class TgCalculator(QtWidgets.QWizard, Ui_Wizard):
self._update_tg_plots() self._update_tg_plots()
def _update_tg_plots(self): def _update_tg_plots(self):
self.treeWidget.clear() self.tg_tree.clear()
for idx in range(self.listWidget.count()): for idx in range(self.listWidget.count()):
item = self.listWidget.item(idx) item = self.listWidget.item(idx)
@ -217,7 +219,7 @@ class TgCalculator(QtWidgets.QWizard, Ui_Wizard):
child_item = QtWidgets.QTreeWidgetItem([f'{name.capitalize()}: {pos[0]:.2f} K']) child_item = QtWidgets.QTreeWidgetItem([f'{name.capitalize()}: {pos[0]:.2f} K'])
tree_item.addChild(child_item) tree_item.addChild(child_item)
self.treeWidget.addTopLevelItem(tree_item) self.tg_tree.addTopLevelItem(tree_item)
key = item.data(QtCore.Qt.UserRole) key = item.data(QtCore.Qt.UserRole)
plot = self._plots[key] plot = self._plots[key]
@ -225,7 +227,7 @@ class TgCalculator(QtWidgets.QWizard, Ui_Wizard):
plot[1].setData(array(list(self._tg_value[key].values()))) plot[1].setData(array(list(self._tg_value[key].values())))
@QtCore.pyqtSlot(name='on_pushButton_clicked') @QtCore.pyqtSlot(name='on_tg_export_button_clicked')
def export_tg(self): def export_tg(self):
ret_dic = {} ret_dic = {}
for key, tg in self._tg_value.items(): for key, tg in self._tg_value.items():
@ -236,10 +238,9 @@ class TgCalculator(QtWidgets.QWizard, Ui_Wizard):
else: else:
tg_pts = None tg_pts = None
line = []
if self.tglines_export_check.isChecked(): if self.tglines_export_check.isChecked():
line = self._lines[key] line = self._lines.get(key, [])
else:
line = []
ret_dic[key] = (tg_pts, line) ret_dic[key] = (tg_pts, line)
@ -263,13 +264,13 @@ class TgCalculator(QtWidgets.QWizard, Ui_Wizard):
return cp return cp
@QtCore.pyqtSlot(name='on_fit_tnhm_fitbutton_clicked') @QtCore.pyqtSlot(name='on_tnhm_fitbutton_clicked')
def make_tnmh(self): def make_tnmh(self):
baselines = tuple(lim.getRegion() for lim in self.limits) baselines = tuple(lim.getRegion() for lim in self.limits)
if baselines[0][0] > baselines[1][0]: if baselines[0][0] > baselines[1][0]:
baselines = baselines[1], baselines[0] baselines = baselines[1], baselines[0]
self.treeWidget_2.clear() self.tnmh_tree.clear()
for idx in range(self.listWidget.count()): for idx in range(self.listWidget.count()):
item = self.listWidget.item(idx) item = self.listWidget.item(idx)
if item.checkState() == QtCore.Qt.Unchecked: if item.checkState() == QtCore.Qt.Unchecked:
@ -295,9 +296,9 @@ class TgCalculator(QtWidgets.QWizard, Ui_Wizard):
child_item = QtWidgets.QTreeWidgetItem([values.parameter_string()]) child_item = QtWidgets.QTreeWidgetItem([values.parameter_string()])
tree_item.addChild(child_item) tree_item.addChild(child_item)
self.treeWidget_2.addTopLevelItem(tree_item) self.tnmh_tree.addTopLevelItem(tree_item)
@QtCore.pyqtSlot(name='on_pushButton_2_clicked') @QtCore.pyqtSlot(name='on_tnmh_export_button_clicked')
def export_tnmh(self): def export_tnmh(self):
ret_dic = {} ret_dic = {}
for idx in range(self.listWidget.count()): for idx in range(self.listWidget.count()):
@ -306,26 +307,23 @@ class TgCalculator(QtWidgets.QWizard, Ui_Wizard):
continue continue
key = item.data(QtCore.Qt.UserRole) key = item.data(QtCore.Qt.UserRole)
if self.checkBox_13.isChecked():
_, cp = self._dsc[key]
else:
cp = None
if self.checkBox_14.isChecked(): cp = None
line = self._fit[key] if self.fictive_export_check.isChecked():
else: _, cp = self._dsc[key]
line = None
line = None
if self.tnmhfit_export_check.isChecked():
line = self._fit.get(key)
ret_dic[key] = (cp, line) ret_dic[key] = (cp, line)
if self.new_graph_tnmh_check_2.isChecked(): ret_dic['graph'] = '' if self.tnmh_graph_check.isChecked() else self.tnmh_graph_combo.currentData()
ret_dic['graph'] = ''
else:
ret_dic['graph'] = self.new_graph_tnmh_combo_2.currentData()
self.newData.emit(ret_dic, 'tnmh') self.newData.emit(ret_dic, 'tnmh')
@QtCore.pyqtSlot(name='on_toolButton_clicked') @QtCore.pyqtSlot(name='on_hodge_button_clicked')
def hodge(self): def hodge(self):
for tg_type, (plot, data, fitplots, fit) in self._hodge.items(): for tg_type, (plot, data, fitplots, fit) in self._hodge.items():
@ -355,27 +353,21 @@ class TgCalculator(QtWidgets.QWizard, Ui_Wizard):
self._hodge[tg_type] = (plot, data, fitplots, fit) self._hodge[tg_type] = (plot, data, fitplots, fit)
@QtCore.pyqtSlot(name='on_pushButton_4_clicked') @QtCore.pyqtSlot(name='on_export_hodge_button_clicked')
def export_hodge(self): def export_hodge(self):
ret_dic2 = {} ret_dic = {}
for cb in (self.checkBox, self.checkBox_4, self.checkBox_6, self.checkBox_5, self.checkBox_7): for cb in (self.onset_check, self.mid_check, self.end_check, self.inflection_check, self.fictive_check):
if cb.isChecked(): if cb.isChecked():
item = cb.text().lower() item = cb.text().lower()
data = self._hodge.get(item) data = self._hodge.get(item)
if data[1] is not None: if data[1] is not None:
ret_dic2[item] = data[1] ret_dic[item] = data[1]
if self.new_graph_tau_check.isChecked(): ret_dic['graph'] = '' if self.hodge_graph_check.isChecked() else self.hodge_graph_combo.currentData()
ret_dic2['graph'] = ''
else:
ret_dic2['graph'] = self.new_graph_tau_combo.currentData()
self.newData.emit(ret_dic2, 'hodge') self.newData.emit(ret_dic, 'hodge')
def close(self) -> bool: def close(self) -> bool:
self.clear() self.clear()
return super().close() return super().close()
def accept(self) -> None:
self.close()

View File

@ -774,50 +774,36 @@ class UpperManagement(QtCore.QObject):
self.newData.emit(new_data, self.current_graph) self.newData.emit(new_data, self.current_graph)
@QtCore.pyqtSlot(dict, str) @QtCore.pyqtSlot(dict, str)
def addTg(self, dic1: dict, dtype: str): def addTg(self, dic: dict, dtype: str):
if dtype == 'tg': graph_id = self.current_graph if dtype == 'tg' else dic.pop('graph')
for k, (tg, lines) in dic1.items():
set_id_list = []
if dtype == 'hodge':
for v in dic.values():
set_id_list.append(self.add(v))
else:
for k, (data, lines) in dic.items():
p: ExperimentContainer = self[k] p: ExperimentContainer = self[k]
col = p.plot_real.linecolor col = p.plot_real.linecolor
tg_data_id = [] if data is not None:
set_id_list.append(self.add(data, color=col))
if tg is not None: if dtype == 'tnmh':
tg_data_id.append(self.add(tg, color=col)) if lines is not None:
lines = [lines]
else:
lines = []
for line in lines: for line in lines:
set_id = self.add(line, color=col) set_id = self.add(line, color=col)
self[set_id].setLine(style=LineStyle.Dashed) self[set_id].setLine(style=LineStyle.Dashed)
self[set_id].setSymbol(symbol=SymbolStyle.No) self[set_id].setSymbol(symbol=SymbolStyle.No)
tg_data_id.append(set_id) set_id_list.append(set_id)
self.newData.emit(tg_data_id, self.current_graph) self.newData.emit(set_id_list, graph_id)
elif dtype == 'hodge':
set_id_list = []
graph_id = dic1.pop('graph')
for v in dic1.values():
set_id_list.append(self.add(v))
self.newData.emit(set_id_list, graph_id)
elif dtype == 'tnmh':
set_id_list = []
graph_id = dic1.pop('graph')
for k, (tg, fit) in dic1.items():
p: ExperimentContainer = self[k]
col = p.plot_real.linecolor
tg_data_id = []
if tg is not None:
set_id_list.append(self.add(tg, color=col))
set_id = self.add(fit, color=col)
self[set_id].setLine(style=LineStyle.Dashed)
self[set_id].setSymbol(symbol=SymbolStyle.No)
set_id_list.append(set_id)
self.newData.emit(set_id_list, graph_id)
@QtCore.pyqtSlot(int, dict) @QtCore.pyqtSlot(int, dict)
def smooth_data(self, npoints, param_kwargs): def smooth_data(self, npoints, param_kwargs):

View File

@ -244,7 +244,6 @@ class FitResult(Points):
ret_val = '' ret_val = ''
for pval in self.parameter.values(): for pval in self.parameter.values():
print(pval)
ret_val += convert(str(pval), old='tex', new='str') + '\n' ret_val += convert(str(pval), old='tex', new='str') + '\n'
if self.fun_kwargs: if self.fun_kwargs:

View File

@ -1,326 +1,430 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0"> <ui version="4.0">
<class>Wizard</class> <class>DSCEvalDialog</class>
<widget class="QWizard" name="Wizard"> <widget class="QDialog" name="DSCEvalDialog">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>854</width> <width>996</width>
<height>619</height> <height>712</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>Wizard</string> <string>To boldly go where no man has gone before</string>
</property> </property>
<widget class="QWizardPage" name="wizardPage1"> <layout class="QGridLayout" name="gridLayout">
<property name="title"> <item row="0" column="0">
<string>Glass transition</string> <widget class="QListWidgetSelect" name="listWidget">
</property> <property name="sizePolicy">
<layout class="QGridLayout" name="gridLayout"> <sizepolicy hsizetype="Maximum" vsizetype="Expanding">
<item row="2" column="0"> <horstretch>0</horstretch>
<widget class="QTreeWidget" name="treeWidget"> <verstretch>0</verstretch>
<attribute name="headerVisible"> </sizepolicy>
<bool>false</bool> </property>
</attribute> <property name="selectionMode">
<column> <enum>QAbstractItemView::ExtendedSelection</enum>
<property name="text"> </property>
<string notr="true">1</string> </widget>
</item>
<item row="0" column="1">
<widget class="QStackedWidget" name="stackedWidget">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="frameShape">
<enum>QFrame::Box</enum>
</property>
<property name="currentIndex">
<number>0</number>
</property>
<widget class="QWidget" name="page">
<layout class="QGridLayout" name="gridLayout_2">
<item row="2" column="1">
<layout class="QGridLayout" name="gridLayout_9">
<item row="0" column="0">
<widget class="QCheckBox" name="tg_export_check">
<property name="text">
<string>Export Tg</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="3" column="0">
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="1">
<widget class="QCheckBox" name="tglines_export_check">
<property name="text">
<string>Export lines</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="2" column="0" colspan="2">
<widget class="QPushButton" name="tg_export_button">
<property name="text">
<string>Export</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="2" column="0">
<widget class="QTreeWidget" name="tg_tree">
<attribute name="headerVisible">
<bool>false</bool>
</attribute>
<column>
<property name="text">
<string notr="true">1</string>
</property>
</column>
</widget>
</item>
<item row="1" column="0" colspan="2">
<widget class="PlotWidget" name="dsc_plot">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item row="0" column="0" colspan="2">
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Glass transition&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="calctg_button">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Calculate Tg</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QWidget" name="page_2">
<layout class="QGridLayout" name="gridLayout_3">
<item row="2" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>Export tau:</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="PlotWidget" name="tghodge_graph"/>
</item>
<item row="1" column="1">
<widget class="PlotWidget" name="tau_plot">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item row="0" column="0" colspan="2">
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Hodge tau&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="hodge_button">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Make it so.</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="5" column="1">
<widget class="QPushButton" name="export_hodge_button">
<property name="text">
<string>Export</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QComboBox" name="hodge_graph_combo">
<property name="enabled">
<bool>false</bool>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QCheckBox" name="hodge_graph_check">
<property name="text">
<string>New graph</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="3" column="0" colspan="2">
<layout class="QHBoxLayout" name="horizontalLayout_5">
<item>
<widget class="QCheckBox" name="onset_check">
<property name="text">
<string>Onset</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="mid_check">
<property name="text">
<string>Midpoint</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="end_check">
<property name="text">
<string>End</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="inflection_check">
<property name="text">
<string>Inflection</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="fictive_check">
<property name="text">
<string>Fictive</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QWidget" name="page_3">
<layout class="QGridLayout" name="gridLayout_6">
<item row="1" column="0" colspan="2">
<widget class="PlotWidget" name="tnmh_graphics"/>
</item>
<item row="2" column="0">
<widget class="QTreeWidget" name="tnmh_tree">
<attribute name="headerVisible">
<bool>false</bool>
</attribute>
<column>
<property name="text">
<string notr="true">1</string>
</property>
</column>
</widget>
</item>
<item row="2" column="1">
<layout class="QGridLayout" name="gridLayout_5">
<item row="1" column="0">
<widget class="QCheckBox" name="tnmh_graph_check">
<property name="text">
<string>New graph</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QCheckBox" name="tnmhfit_export_check">
<property name="text">
<string>Export fit</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="2" column="0" colspan="2">
<widget class="QPushButton" name="tnmh_export_button">
<property name="text">
<string>Export</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QCheckBox" name="fictive_export_check">
<property name="text">
<string>Export dTf / dT</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QComboBox" name="tnmh_graph_combo">
<property name="enabled">
<bool>false</bool>
</property>
</widget>
</item>
<item row="3" column="0">
<spacer name="verticalSpacer_4">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item row="0" column="0" colspan="2">
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLabel" name="label_3">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;dTf/dT and TNMH &lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="tnhm_fitbutton">
<property name="text">
<string>Engage!</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</widget>
</item>
<item row="1" column="0" colspan="2">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property> </property>
</column> <property name="sizeHint" stdset="0">
</widget> <size>
</item> <width>40</width>
<item row="2" column="1"> <height>20</height>
<layout class="QGridLayout" name="gridLayout_9"> </size>
<item row="0" column="0">
<widget class="QCheckBox" name="tg_export_check">
<property name="text">
<string>Export Tg</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="3" column="0">
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="1">
<widget class="QCheckBox" name="tglines_export_check">
<property name="text">
<string>Export lines</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="2" column="0" colspan="2">
<widget class="QPushButton" name="pushButton">
<property name="text">
<string>Export</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="1" column="0" colspan="2">
<widget class="PlotWidget" name="dsc_plot">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item row="0" column="0" colspan="2">
<widget class="QToolButton" name="calctg_button">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Calculate Tg</string>
</property>
<property name="toolButtonStyle">
<enum>Qt::ToolButtonTextBesideIcon</enum>
</property>
<property name="arrowType">
<enum>Qt::RightArrow</enum>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWizardPage" name="wizardPage2">
<property name="title">
<string>Hodge</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0" colspan="2">
<widget class="QToolButton" name="toolButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Calculate Hodge</string>
</property>
<property name="toolButtonStyle">
<enum>Qt::ToolButtonTextBesideIcon</enum>
</property>
<property name="arrowType">
<enum>Qt::RightArrow</enum>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="PlotWidget" name="tghodge_graph"/>
</item>
<item row="2" column="1">
<widget class="PlotWidget" name="tau_plot">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item row="3" column="0" colspan="2">
<layout class="QGridLayout" name="gridLayout_4">
<item row="2" column="0">
<widget class="QCheckBox" name="checkBox_6">
<property name="text">
<string>End</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QCheckBox" name="new_graph_tau_check">
<property name="text">
<string>New graph</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QCheckBox" name="checkBox_7">
<property name="text">
<string>Fictive</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QCheckBox" name="checkBox_5">
<property name="text">
<string>Inflection</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QComboBox" name="new_graph_tau_combo">
<property name="enabled">
<bool>false</bool>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QCheckBox" name="checkBox_4">
<property name="text">
<string>Midpoint</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QCheckBox" name="checkBox">
<property name="text">
<string>Onset</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="4" column="1" colspan="2">
<widget class="QPushButton" name="pushButton_4">
<property name="text">
<string>Export</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QWizardPage" name="wizardPage">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>TNMH</string>
</property>
<property name="subTitle">
<string/>
</property>
<layout class="QGridLayout" name="gridLayout_6">
<item row="0" column="0" colspan="2">
<widget class="QPushButton" name="fit_tnhm_fitbutton">
<property name="text">
<string>Fit TNMH model</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QTreeWidget" name="treeWidget_2">
<attribute name="headerVisible">
<bool>false</bool>
</attribute>
<column>
<property name="text">
<string notr="true">1</string>
</property> </property>
</column> </spacer>
</widget> </item>
</item> <item>
<item row="2" column="1"> <widget class="QToolButton" name="back_button">
<layout class="QGridLayout" name="gridLayout_5"> <property name="text">
<item row="1" column="0"> <string>Back</string>
<widget class="QCheckBox" name="new_graph_tnmh_check_2"> </property>
<property name="text"> <property name="toolButtonStyle">
<string>New graph</string> <enum>Qt::ToolButtonTextBesideIcon</enum>
</property> </property>
<property name="checked"> <property name="arrowType">
<bool>true</bool> <enum>Qt::LeftArrow</enum>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="0"> <item>
<widget class="QCheckBox" name="checkBox_14"> <widget class="QToolButton" name="next_button">
<property name="text"> <property name="text">
<string>Export fit</string> <string>Next</string>
</property> </property>
<property name="checked"> <property name="toolButtonStyle">
<bool>true</bool> <enum>Qt::ToolButtonTextBesideIcon</enum>
</property> </property>
</widget> <property name="arrowType">
</item> <enum>Qt::RightArrow</enum>
<item row="2" column="0" colspan="2"> </property>
<widget class="QPushButton" name="pushButton_2"> </widget>
<property name="text"> </item>
<string>Export</string> <item>
</property> <widget class="QPushButton" name="close_button">
</widget> <property name="text">
</item> <string>Close</string>
<item row="0" column="1"> </property>
<widget class="QCheckBox" name="checkBox_13"> </widget>
<property name="text"> </item>
<string>Export dTf / dT</string> </layout>
</property> </item>
<property name="checked"> </layout>
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QComboBox" name="new_graph_tnmh_combo_2">
<property name="enabled">
<bool>false</bool>
</property>
</widget>
</item>
<item row="3" column="0">
<spacer name="verticalSpacer_4">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item row="1" column="0" colspan="2">
<widget class="PlotWidget" name="graphicsView_3"/>
</item>
</layout>
</widget>
</widget> </widget>
<customwidgets> <customwidgets>
<customwidget> <customwidget>
@ -328,7 +432,29 @@
<extends>QGraphicsView</extends> <extends>QGraphicsView</extends>
<header>pyqtgraph</header> <header>pyqtgraph</header>
</customwidget> </customwidget>
<customwidget>
<class>QListWidgetSelect</class>
<extends>QListWidget</extends>
<header>..lib.listwidget</header>
</customwidget>
</customwidgets> </customwidgets>
<resources/> <resources/>
<connections/> <connections>
<connection>
<sender>close_button</sender>
<signal>clicked()</signal>
<receiver>DSCEvalDialog</receiver>
<slot>close()</slot>
<hints>
<hint type="sourcelabel">
<x>931</x>
<y>671</y>
</hint>
<hint type="destinationlabel">
<x>490</x>
<y>346</y>
</hint>
</hints>
</connection>
</connections>
</ui> </ui>