Source code for sas.qtgui.Perspectives.Fitting.UI.ConstraintWidgetUI

# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file '.\src\sas\qtgui\Perspectives\Fitting\UI\ConstraintWidgetUI.ui'
#
# Created by: PyQt5 UI code generator 5.12.2
#
# WARNING! All changes made in this file will be lost!

from PyQt5 import QtCore, QtGui, QtWidgets


[docs]class Ui_ConstraintWidgetUI(object):
[docs] def setupUi(self, ConstraintWidgetUI): ConstraintWidgetUI.setObjectName("ConstraintWidgetUI") ConstraintWidgetUI.resize(597, 607) self.gridLayout_3 = QtWidgets.QGridLayout(ConstraintWidgetUI) self.gridLayout_3.setObjectName("gridLayout_3") self.groupBox = QtWidgets.QGroupBox(ConstraintWidgetUI) self.groupBox.setObjectName("groupBox") self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox) self.gridLayout_2.setObjectName("gridLayout_2") self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.btnSingle = QtWidgets.QRadioButton(self.groupBox) self.btnSingle.setChecked(True) self.btnSingle.setObjectName("btnSingle") self.horizontalLayout_2.addWidget(self.btnSingle) self.btnBatch = QtWidgets.QRadioButton(self.groupBox) self.btnBatch.setObjectName("btnBatch") self.horizontalLayout_2.addWidget(self.btnBatch) self.chkChain = QtWidgets.QCheckBox(self.groupBox) self.chkChain.setObjectName("chkChain") self.horizontalLayout_2.addWidget(self.chkChain) spacerItem = QtWidgets.QSpacerItem(18, 17, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem) self.gridLayout_2.addLayout(self.horizontalLayout_2, 0, 0, 1, 1) self.tblLayout = QtWidgets.QHBoxLayout() self.tblLayout.setObjectName("tblLayout") self.gridLayout_2.addLayout(self.tblLayout, 1, 0, 1, 1) self.gridLayout_3.addWidget(self.groupBox, 0, 0, 1, 1) self.groupBox_2 = QtWidgets.QGroupBox(ConstraintWidgetUI) self.groupBox_2.setObjectName("groupBox_2") self.gridLayout = QtWidgets.QGridLayout(self.groupBox_2) self.gridLayout.setObjectName("gridLayout") self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.label = QtWidgets.QLabel(self.groupBox_2) self.label.setObjectName("label") self.horizontalLayout.addWidget(self.label) self.cbCases = QtWidgets.QComboBox(self.groupBox_2) self.cbCases.setObjectName("cbCases") self.cbCases.addItem("") self.horizontalLayout.addWidget(self.cbCases) self.horizontalLayout_4.addLayout(self.horizontalLayout) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_4.addItem(spacerItem1) self.cmdAdd = QtWidgets.QPushButton(self.groupBox_2) self.cmdAdd.setObjectName("cmdAdd") self.horizontalLayout_4.addWidget(self.cmdAdd) self.gridLayout.addLayout(self.horizontalLayout_4, 0, 0, 1, 1) self.tblConstraints = QtWidgets.QTableWidget(self.groupBox_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.tblConstraints.sizePolicy().hasHeightForWidth()) self.tblConstraints.setSizePolicy(sizePolicy) self.tblConstraints.setContextMenuPolicy(QtCore.Qt.ActionsContextMenu) self.tblConstraints.setObjectName("tblConstraints") self.tblConstraints.setColumnCount(1) self.tblConstraints.setRowCount(0) item = QtWidgets.QTableWidgetItem() self.tblConstraints.setHorizontalHeaderItem(0, item) self.gridLayout.addWidget(self.tblConstraints, 1, 0, 1, 1) self.gridLayout_3.addWidget(self.groupBox_2, 1, 0, 1, 1) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") spacerItem2 = QtWidgets.QSpacerItem(273, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem2) self.cmdFit = QtWidgets.QPushButton(ConstraintWidgetUI) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmdFit.sizePolicy().hasHeightForWidth()) self.cmdFit.setSizePolicy(sizePolicy) self.cmdFit.setMinimumSize(QtCore.QSize(75, 23)) self.cmdFit.setObjectName("cmdFit") self.horizontalLayout_3.addWidget(self.cmdFit) self.cmdHelp = QtWidgets.QPushButton(ConstraintWidgetUI) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmdHelp.sizePolicy().hasHeightForWidth()) self.cmdHelp.setSizePolicy(sizePolicy) self.cmdHelp.setMinimumSize(QtCore.QSize(75, 23)) self.cmdHelp.setObjectName("cmdHelp") self.horizontalLayout_3.addWidget(self.cmdHelp) self.gridLayout_3.addLayout(self.horizontalLayout_3, 2, 0, 1, 1) self.retranslateUi(ConstraintWidgetUI) QtCore.QMetaObject.connectSlotsByName(ConstraintWidgetUI)
[docs] def retranslateUi(self, ConstraintWidgetUI): _translate = QtCore.QCoreApplication.translate ConstraintWidgetUI.setWindowTitle(_translate("ConstraintWidgetUI", "Constrained and Simultaneous Fit")) self.groupBox.setTitle(_translate("ConstraintWidgetUI", "Source choice for simultaneous fitting")) self.btnSingle.setText(_translate("ConstraintWidgetUI", "Single fits")) self.btnBatch.setText(_translate("ConstraintWidgetUI", "Batch fits")) self.chkChain.setText(_translate("ConstraintWidgetUI", "Chained fit")) self.groupBox_2.setTitle(_translate("ConstraintWidgetUI", "Constraints")) self.label.setText(_translate("ConstraintWidgetUI", "Special cases")) self.cbCases.setItemText(0, _translate("ConstraintWidgetUI", "None")) self.cmdAdd.setToolTip(_translate("ConstraintWidgetUI", "Define constraints between two fit pages.")) self.cmdAdd.setText(_translate("ConstraintWidgetUI", "Add constraints")) self.cmdFit.setToolTip(_translate("ConstraintWidgetUI", "Perform simultaneous fitting of selected fit pages.")) self.cmdFit.setText(_translate("ConstraintWidgetUI", "Fit")) self.cmdHelp.setToolTip(_translate("ConstraintWidgetUI", "Display help on constrained and simultaneous fitting.")) self.cmdHelp.setText(_translate("ConstraintWidgetUI", "Help"))