# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '.\src\sas\qtgui\Perspectives\Fitting\UI\ComplexConstraintUI.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
[docs]class Ui_ComplexConstraintUI(object):
[docs] def setupUi(self, ComplexConstraintUI):
ComplexConstraintUI.setObjectName("ComplexConstraintUI")
ComplexConstraintUI.resize(449, 260)
self.gridLayout_2 = QtWidgets.QGridLayout(ComplexConstraintUI)
self.gridLayout_2.setObjectName("gridLayout_2")
self.groupBox = QtWidgets.QGroupBox(ComplexConstraintUI)
self.groupBox.setObjectName("groupBox")
self.gridLayout = QtWidgets.QGridLayout(self.groupBox)
self.gridLayout.setObjectName("gridLayout")
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
self.cbModel1 = QtWidgets.QComboBox(self.groupBox)
self.cbModel1.setObjectName("cbModel1")
self.horizontalLayout.addWidget(self.cbModel1)
self.cbParam1 = QtWidgets.QComboBox(self.groupBox)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.cbParam1.sizePolicy().hasHeightForWidth())
self.cbParam1.setSizePolicy(sizePolicy)
self.cbParam1.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToContents)
self.cbParam1.setObjectName("cbParam1")
self.cbParam1.addItem("")
self.horizontalLayout.addWidget(self.cbParam1)
self.cbOperator = QtWidgets.QComboBox(self.groupBox)
self.cbOperator.setObjectName("cbOperator")
self.cbOperator.addItem("")
self.horizontalLayout.addWidget(self.cbOperator)
self.cbModel2 = QtWidgets.QComboBox(self.groupBox)
self.cbModel2.setObjectName("cbModel2")
self.horizontalLayout.addWidget(self.cbModel2)
self.cbParam2 = QtWidgets.QComboBox(self.groupBox)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.cbParam2.sizePolicy().hasHeightForWidth())
self.cbParam2.setSizePolicy(sizePolicy)
self.cbParam2.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToContents)
self.cbParam2.setObjectName("cbParam2")
self.cbParam2.addItem("")
self.horizontalLayout.addWidget(self.cbParam2)
self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 1)
self.label = QtWidgets.QLabel(self.groupBox)
self.label.setObjectName("label")
self.gridLayout.addWidget(self.label, 1, 0, 1, 1)
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.txtParam = QtWidgets.QLabel(self.groupBox)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.txtParam.sizePolicy().hasHeightForWidth())
self.txtParam.setSizePolicy(sizePolicy)
self.txtParam.setObjectName("txtParam")
self.horizontalLayout_2.addWidget(self.txtParam)
self.txtOperator = QtWidgets.QLabel(self.groupBox)
self.txtOperator.setObjectName("txtOperator")
self.horizontalLayout_2.addWidget(self.txtOperator)
self.txtConstraint = QtWidgets.QLineEdit(self.groupBox)
self.txtConstraint.setText("")
self.txtConstraint.setObjectName("txtConstraint")
self.horizontalLayout_2.addWidget(self.txtConstraint)
self.gridLayout.addLayout(self.horizontalLayout_2, 2, 0, 1, 1)
self.gridLayout_2.addWidget(self.groupBox, 0, 0, 1, 1)
self.lblWarning = QtWidgets.QLabel(ComplexConstraintUI)
self.lblWarning.setObjectName("lblWarning")
self.gridLayout_2.addWidget(self.lblWarning, 1, 0, 1, 1)
spacerItem = QtWidgets.QSpacerItem(20, 9, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.gridLayout_2.addItem(spacerItem, 2, 0, 1, 1)
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
spacerItem1 = QtWidgets.QSpacerItem(58, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_3.addItem(spacerItem1)
self.cmdAddAll = QtWidgets.QToolButton(ComplexConstraintUI)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.cmdAddAll.sizePolicy().hasHeightForWidth())
self.cmdAddAll.setSizePolicy(sizePolicy)
self.cmdAddAll.setMinimumSize(QtCore.QSize(93, 28))
self.cmdAddAll.setPopupMode(QtWidgets.QToolButton.InstantPopup)
self.cmdAddAll.setToolButtonStyle(QtCore.Qt.ToolButtonTextOnly)
self.cmdAddAll.setAutoRaise(False)
self.cmdAddAll.setArrowType(QtCore.Qt.DownArrow)
self.cmdAddAll.setObjectName("cmdAddAll")
self.horizontalLayout_3.addWidget(self.cmdAddAll)
self.cmdOK = QtWidgets.QToolButton(ComplexConstraintUI)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.cmdOK.sizePolicy().hasHeightForWidth())
self.cmdOK.setSizePolicy(sizePolicy)
self.cmdOK.setMinimumSize(QtCore.QSize(93, 28))
self.cmdOK.setPopupMode(QtWidgets.QToolButton.InstantPopup)
self.cmdOK.setToolButtonStyle(QtCore.Qt.ToolButtonTextOnly)
self.cmdOK.setAutoRaise(False)
self.cmdOK.setArrowType(QtCore.Qt.DownArrow)
self.cmdOK.setObjectName("cmdOK")
self.horizontalLayout_3.addWidget(self.cmdOK)
self.cmdHelp = QtWidgets.QPushButton(ComplexConstraintUI)
self.cmdHelp.setObjectName("cmdHelp")
self.horizontalLayout_3.addWidget(self.cmdHelp)
self.gridLayout_2.addLayout(self.horizontalLayout_3, 3, 0, 1, 1)
self.retranslateUi(ComplexConstraintUI)
QtCore.QMetaObject.connectSlotsByName(ComplexConstraintUI)
[docs] def retranslateUi(self, ComplexConstraintUI):
_translate = QtCore.QCoreApplication.translate
ComplexConstraintUI.setWindowTitle(_translate("ComplexConstraintUI", "Complex Constraint"))
self.groupBox.setTitle(_translate("ComplexConstraintUI", "2 parameter constraint"))
self.cbParam1.setItemText(0, _translate("ComplexConstraintUI", "sld"))
self.cbOperator.setItemText(0, _translate("ComplexConstraintUI", ">"))
self.cbParam2.setItemText(0, _translate("ComplexConstraintUI", "sld_a"))
self.label.setText(_translate("ComplexConstraintUI", "Edit complex constraint:"))
self.txtParam.setText(_translate("ComplexConstraintUI", "param1"))
self.txtOperator.setText(_translate("ComplexConstraintUI", "="))
self.lblWarning.setText(_translate("ComplexConstraintUI", "<html><head/><body><p><span style=\" color:#ff0000;\">Warning! Polydisperse parameter selected.<br/></span>Constraints involving polydisperse parameters only apply to<br/>starting values and are not re-applied during size or angle polydispersity<br/>integrations. To do so requires creating a custom model.</p></body></html>"))
self.cmdAddAll.setToolTip(_translate("ComplexConstraintUI", "<html><head/><body><p>Add constraints between all identically named parameters in both fitpages</p></body></html>"))
self.cmdAddAll.setText(_translate("ComplexConstraintUI", "Add All"))
self.cmdOK.setToolTip(_translate("ComplexConstraintUI", "<html><head/><body><p>Add the constraint as defined by the above expression.</p></body></html>"))
self.cmdOK.setText(_translate("ComplexConstraintUI", "Add"))
self.cmdHelp.setText(_translate("ComplexConstraintUI", "Help"))