# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'src/resources/_ui/dscfile_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") Dialog.resize(1341, 799) self.verticalLayout_5 = QtWidgets.QVBoxLayout(Dialog) self.verticalLayout_5.setObjectName("verticalLayout_5") self.splitter = QtWidgets.QSplitter(Dialog) self.splitter.setOrientation(QtCore.Qt.Horizontal) self.splitter.setObjectName("splitter") self.verticalLayoutWidget = QtWidgets.QWidget(self.splitter) self.verticalLayoutWidget.setObjectName("verticalLayoutWidget") self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.verticalLayoutWidget) self.verticalLayout_4.setContentsMargins(6, 6, 6, 6) self.verticalLayout_4.setObjectName("verticalLayout_4") self.groupBox = QtWidgets.QGroupBox(self.verticalLayoutWidget) self.groupBox.setFlat(False) self.groupBox.setObjectName("groupBox") self.verticalLayout = QtWidgets.QVBoxLayout(self.groupBox) self.verticalLayout.setContentsMargins(6, 6, 6, 6) self.verticalLayout.setObjectName("verticalLayout") self.step_listWidget = QtWidgets.QListWidget(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Minimum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.step_listWidget.sizePolicy().hasHeightForWidth()) self.step_listWidget.setSizePolicy(sizePolicy) self.step_listWidget.setMinimumSize(QtCore.QSize(0, 0)) self.step_listWidget.setObjectName("step_listWidget") self.verticalLayout.addWidget(self.step_listWidget) self.verticalLayout_4.addWidget(self.groupBox) self.groupBox_2 = QtWidgets.QGroupBox(self.verticalLayoutWidget) self.groupBox_2.setObjectName("groupBox_2") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox_2) self.verticalLayout_2.setContentsMargins(6, 6, 6, 6) self.verticalLayout_2.setObjectName("verticalLayout_2") self.groupBox_4 = QtWidgets.QGroupBox(self.groupBox_2) self.groupBox_4.setObjectName("groupBox_4") self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.groupBox_4) self.verticalLayout_6.setContentsMargins(6, 6, 6, 6) self.verticalLayout_6.setObjectName("verticalLayout_6") self.empty_label = QtWidgets.QLabel(self.groupBox_4) self.empty_label.setObjectName("empty_label") self.verticalLayout_6.addWidget(self.empty_label) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setSpacing(3) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.loadempty_button = QtWidgets.QPushButton(self.groupBox_4) self.loadempty_button.setObjectName("loadempty_button") self.horizontalLayout_2.addWidget(self.loadempty_button) self.delempty_button = QtWidgets.QPushButton(self.groupBox_4) self.delempty_button.setObjectName("delempty_button") self.horizontalLayout_2.addWidget(self.delempty_button) self.verticalLayout_6.addLayout(self.horizontalLayout_2) self.verticalLayout_2.addWidget(self.groupBox_4) self.groupBox_5 = QtWidgets.QGroupBox(self.groupBox_2) self.groupBox_5.setObjectName("groupBox_5") self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.groupBox_5) self.verticalLayout_7.setContentsMargins(6, 6, 6, 6) self.verticalLayout_7.setSpacing(3) self.verticalLayout_7.setObjectName("verticalLayout_7") self.none_radioButton = QtWidgets.QRadioButton(self.groupBox_5) self.none_radioButton.setObjectName("none_radioButton") self.buttonGroup = QtWidgets.QButtonGroup(Dialog) self.buttonGroup.setObjectName("buttonGroup") self.buttonGroup.addButton(self.none_radioButton) self.verticalLayout_7.addWidget(self.none_radioButton) self.isotherm_radioButton = QtWidgets.QRadioButton(self.groupBox_5) self.isotherm_radioButton.setChecked(True) self.isotherm_radioButton.setObjectName("isotherm_radioButton") self.buttonGroup.addButton(self.isotherm_radioButton) self.verticalLayout_7.addWidget(self.isotherm_radioButton) self.slope_radioButton = QtWidgets.QRadioButton(self.groupBox_5) self.slope_radioButton.setObjectName("slope_radioButton") self.buttonGroup.addButton(self.slope_radioButton) self.verticalLayout_7.addWidget(self.slope_radioButton) self.widget = QtWidgets.QWidget(self.groupBox_5) self.widget.setMinimumSize(QtCore.QSize(0, 33)) self.widget.setObjectName("widget") self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.widget) self.horizontalLayout_3.setContentsMargins(3, 3, 3, 3) self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.limit1_lineedit = QtWidgets.QLineEdit(self.widget) self.limit1_lineedit.setObjectName("limit1_lineedit") self.horizontalLayout_3.addWidget(self.limit1_lineedit) self.limit2_lineedit = QtWidgets.QLineEdit(self.widget) self.limit2_lineedit.setText("") self.limit2_lineedit.setObjectName("limit2_lineedit") self.horizontalLayout_3.addWidget(self.limit2_lineedit) self.verticalLayout_7.addWidget(self.widget) self.verticalLayout_2.addWidget(self.groupBox_5) self.verticalLayout_4.addWidget(self.groupBox_2) self.groupBox_3 = QtWidgets.QGroupBox(self.verticalLayoutWidget) self.groupBox_3.setObjectName("groupBox_3") self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.groupBox_3) self.verticalLayout_3.setContentsMargins(6, 6, 6, 6) self.verticalLayout_3.setObjectName("verticalLayout_3") self.cp_checkBox = QtWidgets.QCheckBox(self.groupBox_3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cp_checkBox.sizePolicy().hasHeightForWidth()) self.cp_checkBox.setSizePolicy(sizePolicy) self.cp_checkBox.setChecked(True) self.cp_checkBox.setObjectName("cp_checkBox") self.verticalLayout_3.addWidget(self.cp_checkBox) self.reference_tableWidget = QtWidgets.QTableWidget(self.groupBox_3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Maximum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.reference_tableWidget.sizePolicy().hasHeightForWidth()) self.reference_tableWidget.setSizePolicy(sizePolicy) self.reference_tableWidget.setMinimumSize(QtCore.QSize(0, 0)) self.reference_tableWidget.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection) self.reference_tableWidget.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows) self.reference_tableWidget.setColumnCount(2) self.reference_tableWidget.setObjectName("reference_tableWidget") self.reference_tableWidget.setRowCount(0) self.reference_tableWidget.horizontalHeader().setVisible(False) self.reference_tableWidget.horizontalHeader().setStretchLastSection(True) self.reference_tableWidget.verticalHeader().setVisible(False) self.verticalLayout_3.addWidget(self.reference_tableWidget) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setSpacing(3) self.horizontalLayout.setObjectName("horizontalLayout") self.ref_add_pushButton = QtWidgets.QPushButton(self.groupBox_3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Maximum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.ref_add_pushButton.sizePolicy().hasHeightForWidth()) self.ref_add_pushButton.setSizePolicy(sizePolicy) self.ref_add_pushButton.setObjectName("ref_add_pushButton") self.horizontalLayout.addWidget(self.ref_add_pushButton) self.ref_remove_pushButton = QtWidgets.QPushButton(self.groupBox_3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Maximum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.ref_remove_pushButton.sizePolicy().hasHeightForWidth()) self.ref_remove_pushButton.setSizePolicy(sizePolicy) self.ref_remove_pushButton.setObjectName("ref_remove_pushButton") self.horizontalLayout.addWidget(self.ref_remove_pushButton) self.verticalLayout_3.addLayout(self.horizontalLayout) self.verticalLayout_4.addWidget(self.groupBox_3) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_4.addItem(spacerItem) self.buttonBox = QtWidgets.QDialogButtonBox(self.verticalLayoutWidget) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Apply|QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok|QtWidgets.QDialogButtonBox.Save) self.buttonBox.setCenterButtons(True) self.buttonBox.setObjectName("buttonBox") self.verticalLayout_4.addWidget(self.buttonBox) self.layoutWidget = QtWidgets.QWidget(self.splitter) self.layoutWidget.setObjectName("layoutWidget") self.gridLayout = QtWidgets.QGridLayout(self.layoutWidget) self.gridLayout.setContentsMargins(0, 0, 0, 0) self.gridLayout.setObjectName("gridLayout") self.raw_graph = PlotWidget(self.layoutWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.raw_graph.sizePolicy().hasHeightForWidth()) self.raw_graph.setSizePolicy(sizePolicy) self.raw_graph.setMinimumSize(QtCore.QSize(300, 200)) self.raw_graph.setObjectName("raw_graph") self.gridLayout.addWidget(self.raw_graph, 0, 0, 1, 1) self.calib_graph = PlotWidget(self.layoutWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.calib_graph.sizePolicy().hasHeightForWidth()) self.calib_graph.setSizePolicy(sizePolicy) self.calib_graph.setMinimumSize(QtCore.QSize(300, 200)) self.calib_graph.setObjectName("calib_graph") self.gridLayout.addWidget(self.calib_graph, 1, 0, 1, 1) self.baseline_graph = PlotWidget(self.layoutWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.baseline_graph.sizePolicy().hasHeightForWidth()) self.baseline_graph.setSizePolicy(sizePolicy) self.baseline_graph.setMinimumSize(QtCore.QSize(300, 200)) self.baseline_graph.setObjectName("baseline_graph") self.gridLayout.addWidget(self.baseline_graph, 0, 1, 1, 1) self.end_graph = PlotWidget(self.layoutWidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.end_graph.sizePolicy().hasHeightForWidth()) self.end_graph.setSizePolicy(sizePolicy) self.end_graph.setMinimumSize(QtCore.QSize(0, 0)) self.end_graph.setObjectName("end_graph") self.gridLayout.addWidget(self.end_graph, 1, 1, 1, 1) self.verticalLayout_5.addWidget(self.splitter) self.retranslateUi(Dialog) 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 Dialog.setWindowTitle(_translate("Dialog", "Read DSC file")) self.groupBox.setTitle(_translate("Dialog", "Detected steps")) self.groupBox_2.setTitle(_translate("Dialog", "Baseline corrections")) self.groupBox_4.setTitle(_translate("Dialog", "Empty measurement")) self.empty_label.setText(_translate("Dialog", "No emtpy measurement")) self.loadempty_button.setText(_translate("Dialog", "Load empty")) self.delempty_button.setText(_translate("Dialog", "Remove empty")) self.groupBox_5.setTitle(_translate("Dialog", "Slope correction")) self.none_radioButton.setText(_translate("Dialog", "None")) self.isotherm_radioButton.setText(_translate("Dialog", "Isotherms")) self.slope_radioButton.setText(_translate("Dialog", "Curve slope")) self.limit1_lineedit.setPlaceholderText(_translate("Dialog", "start (in min)")) self.limit2_lineedit.setPlaceholderText(_translate("Dialog", "stop (in min)")) self.groupBox_3.setTitle(_translate("Dialog", "References")) self.cp_checkBox.setText(_translate("Dialog", "Use reference to convert to heat capacity")) self.ref_add_pushButton.setText(_translate("Dialog", "Add reference")) self.ref_remove_pushButton.setText(_translate("Dialog", "Remove reference")) from pyqtgraph import PlotWidget