Source code for sas.qtgui.Calculators.UI.GenericScatteringCalculator

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

# Form implementation generated from reading ui file '.\src\sas\qtgui\Calculators\UI\GenericScatteringCalculator.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


[docs]class Ui_GenericScatteringCalculator(object):
[docs] def setupUi(self, GenericScatteringCalculator): GenericScatteringCalculator.setObjectName("GenericScatteringCalculator") GenericScatteringCalculator.resize(1024, 625) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(GenericScatteringCalculator.sizePolicy().hasHeightForWidth()) GenericScatteringCalculator.setSizePolicy(sizePolicy) GenericScatteringCalculator.setMinimumSize(QtCore.QSize(660, 550)) GenericScatteringCalculator.setMaximumSize(QtCore.QSize(1150, 700)) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/res/ball.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off) GenericScatteringCalculator.setWindowIcon(icon) self.gridLayout_12 = QtWidgets.QGridLayout(GenericScatteringCalculator) self.gridLayout_12.setObjectName("gridLayout_12") self.groupBox_Datafile = QtWidgets.QGroupBox(GenericScatteringCalculator) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.groupBox_Datafile.setFont(font) self.groupBox_Datafile.setObjectName("groupBox_Datafile") self.gridLayout_5 = QtWidgets.QGridLayout(self.groupBox_Datafile) self.gridLayout_5.setObjectName("gridLayout_5") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.lblNucData = QtWidgets.QLabel(self.groupBox_Datafile) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblNucData.setFont(font) self.lblNucData.setObjectName("lblNucData") self.gridLayout.addWidget(self.lblNucData, 0, 0, 1, 1) self.checkboxNucData = QtWidgets.QCheckBox(self.groupBox_Datafile) self.checkboxNucData.setText("") self.checkboxNucData.setObjectName("checkboxNucData") self.gridLayout.addWidget(self.checkboxNucData, 0, 1, 1, 1) self.txtNucData = QtWidgets.QLineEdit(self.groupBox_Datafile) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.txtNucData.sizePolicy().hasHeightForWidth()) self.txtNucData.setSizePolicy(sizePolicy) self.txtNucData.setMinimumSize(QtCore.QSize(151, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtNucData.setFont(font) self.txtNucData.setObjectName("txtNucData") self.gridLayout.addWidget(self.txtNucData, 0, 2, 1, 1) self.cmdNucLoad = QtWidgets.QPushButton(self.groupBox_Datafile) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmdNucLoad.sizePolicy().hasHeightForWidth()) self.cmdNucLoad.setSizePolicy(sizePolicy) self.cmdNucLoad.setMinimumSize(QtCore.QSize(80, 23)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmdNucLoad.setFont(font) self.cmdNucLoad.setAutoDefault(False) self.cmdNucLoad.setObjectName("cmdNucLoad") self.gridLayout.addWidget(self.cmdNucLoad, 0, 3, 1, 1) self.lblMagData = QtWidgets.QLabel(self.groupBox_Datafile) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblMagData.setFont(font) self.lblMagData.setObjectName("lblMagData") self.gridLayout.addWidget(self.lblMagData, 1, 0, 1, 1) self.checkboxMagData = QtWidgets.QCheckBox(self.groupBox_Datafile) self.checkboxMagData.setText("") self.checkboxMagData.setObjectName("checkboxMagData") self.gridLayout.addWidget(self.checkboxMagData, 1, 1, 1, 1) self.txtMagData = QtWidgets.QLineEdit(self.groupBox_Datafile) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.txtMagData.sizePolicy().hasHeightForWidth()) self.txtMagData.setSizePolicy(sizePolicy) self.txtMagData.setMinimumSize(QtCore.QSize(151, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtMagData.setFont(font) self.txtMagData.setObjectName("txtMagData") self.gridLayout.addWidget(self.txtMagData, 1, 2, 1, 1) self.cmdMagLoad = QtWidgets.QPushButton(self.groupBox_Datafile) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmdMagLoad.sizePolicy().hasHeightForWidth()) self.cmdMagLoad.setSizePolicy(sizePolicy) self.cmdMagLoad.setMinimumSize(QtCore.QSize(80, 23)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmdMagLoad.setFont(font) self.cmdMagLoad.setAutoDefault(False) self.cmdMagLoad.setObjectName("cmdMagLoad") self.gridLayout.addWidget(self.cmdMagLoad, 1, 3, 1, 1) self.lblShape = QtWidgets.QLabel(self.groupBox_Datafile) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblShape.setFont(font) self.lblShape.setObjectName("lblShape") self.gridLayout.addWidget(self.lblShape, 2, 0, 1, 1) self.cbShape = QtWidgets.QComboBox(self.groupBox_Datafile) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cbShape.sizePolicy().hasHeightForWidth()) self.cbShape.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cbShape.setFont(font) self.cbShape.setObjectName("cbShape") self.cbShape.addItem("") self.gridLayout.addWidget(self.cbShape, 2, 2, 1, 1) self.cmdDraw = QtWidgets.QPushButton(self.groupBox_Datafile) self.cmdDraw.setEnabled(True) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmdDraw.sizePolicy().hasHeightForWidth()) self.cmdDraw.setSizePolicy(sizePolicy) self.cmdDraw.setMinimumSize(QtCore.QSize(80, 23)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmdDraw.setFont(font) self.cmdDraw.setAutoDefault(False) self.cmdDraw.setObjectName("cmdDraw") self.gridLayout.addWidget(self.cmdDraw, 2, 3, 1, 1) self.gridLayout_5.addLayout(self.gridLayout, 0, 0, 1, 1) self.gridLayout_12.addWidget(self.groupBox_Datafile, 0, 0, 1, 2) self.line = QtWidgets.QFrame(GenericScatteringCalculator) self.line.setFrameShape(QtWidgets.QFrame.VLine) self.line.setFrameShadow(QtWidgets.QFrame.Sunken) self.line.setObjectName("line") self.gridLayout_12.addWidget(self.line, 0, 3, 7, 2) self.groupBox_SLDPixelInfo = QtWidgets.QGroupBox(GenericScatteringCalculator) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.groupBox_SLDPixelInfo.setFont(font) self.groupBox_SLDPixelInfo.setObjectName("groupBox_SLDPixelInfo") self.gridLayout_11 = QtWidgets.QGridLayout(self.groupBox_SLDPixelInfo) self.gridLayout_11.setObjectName("gridLayout_11") self.lblNoPixels = QtWidgets.QLabel(self.groupBox_SLDPixelInfo) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblNoPixels.setFont(font) self.lblNoPixels.setObjectName("lblNoPixels") self.gridLayout_11.addWidget(self.lblNoPixels, 0, 0, 1, 1) self.txtNoPixels = QtWidgets.QLineEdit(self.groupBox_SLDPixelInfo) self.txtNoPixels.setEnabled(False) self.txtNoPixels.setMinimumSize(QtCore.QSize(110, 27)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtNoPixels.setFont(font) self.txtNoPixels.setReadOnly(True) self.txtNoPixels.setObjectName("txtNoPixels") self.gridLayout_11.addWidget(self.txtNoPixels, 0, 1, 1, 3) self.groupBox_5 = QtWidgets.QGroupBox(self.groupBox_SLDPixelInfo) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.groupBox_5.setFont(font) self.groupBox_5.setObjectName("groupBox_5") self.gridLayout_8 = QtWidgets.QGridLayout(self.groupBox_5) self.gridLayout_8.setObjectName("gridLayout_8") self.gridLayout_4 = QtWidgets.QGridLayout() self.gridLayout_4.setObjectName("gridLayout_4") self.lblMx = QtWidgets.QLabel(self.groupBox_5) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblMx.setFont(font) self.lblMx.setObjectName("lblMx") self.gridLayout_4.addWidget(self.lblMx, 0, 0, 1, 1) self.txtMx = QtWidgets.QLineEdit(self.groupBox_5) self.txtMx.setMinimumSize(QtCore.QSize(70, 18)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtMx.setFont(font) self.txtMx.setObjectName("txtMx") self.gridLayout_4.addWidget(self.txtMx, 0, 1, 1, 1) self.lblUnitMx = QtWidgets.QLabel(self.groupBox_5) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblUnitMx.setFont(font) self.lblUnitMx.setObjectName("lblUnitMx") self.gridLayout_4.addWidget(self.lblUnitMx, 0, 2, 1, 1) self.lblMy = QtWidgets.QLabel(self.groupBox_5) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblMy.setFont(font) self.lblMy.setObjectName("lblMy") self.gridLayout_4.addWidget(self.lblMy, 1, 0, 1, 1) self.txtMy = QtWidgets.QLineEdit(self.groupBox_5) self.txtMy.setMinimumSize(QtCore.QSize(70, 18)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtMy.setFont(font) self.txtMy.setObjectName("txtMy") self.gridLayout_4.addWidget(self.txtMy, 1, 1, 1, 1) self.lblUnitMy = QtWidgets.QLabel(self.groupBox_5) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblUnitMy.setFont(font) self.lblUnitMy.setObjectName("lblUnitMy") self.gridLayout_4.addWidget(self.lblUnitMy, 1, 2, 1, 1) self.lblMz = QtWidgets.QLabel(self.groupBox_5) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblMz.setFont(font) self.lblMz.setObjectName("lblMz") self.gridLayout_4.addWidget(self.lblMz, 2, 0, 1, 1) self.txtMz = QtWidgets.QLineEdit(self.groupBox_5) self.txtMz.setMinimumSize(QtCore.QSize(70, 18)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtMz.setFont(font) self.txtMz.setObjectName("txtMz") self.gridLayout_4.addWidget(self.txtMz, 2, 1, 1, 1) self.lblUnitMz = QtWidgets.QLabel(self.groupBox_5) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblUnitMz.setFont(font) self.lblUnitMz.setObjectName("lblUnitMz") self.gridLayout_4.addWidget(self.lblUnitMz, 2, 2, 1, 1) self.lblNucl = QtWidgets.QLabel(self.groupBox_5) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblNucl.setFont(font) self.lblNucl.setObjectName("lblNucl") self.gridLayout_4.addWidget(self.lblNucl, 3, 0, 1, 1) self.txtNucl = QtWidgets.QLineEdit(self.groupBox_5) self.txtNucl.setMinimumSize(QtCore.QSize(70, 18)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtNucl.setFont(font) self.txtNucl.setObjectName("txtNucl") self.gridLayout_4.addWidget(self.txtNucl, 3, 1, 1, 1) self.lblUnitNucl = QtWidgets.QLabel(self.groupBox_5) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblUnitNucl.setFont(font) self.lblUnitNucl.setObjectName("lblUnitNucl") self.gridLayout_4.addWidget(self.lblUnitNucl, 3, 2, 1, 1) self.gridLayout_8.addLayout(self.gridLayout_4, 0, 0, 1, 1) self.gridLayout_11.addWidget(self.groupBox_5, 1, 0, 2, 4) self.groupBox_6 = QtWidgets.QGroupBox(self.groupBox_SLDPixelInfo) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.groupBox_6.setFont(font) self.groupBox_6.setObjectName("groupBox_6") self.gridLayout_9 = QtWidgets.QGridLayout(self.groupBox_6) self.gridLayout_9.setObjectName("gridLayout_9") self.gridLayout_Nodes = QtWidgets.QGridLayout() self.gridLayout_Nodes.setObjectName("gridLayout_Nodes") self.lblXnodes = QtWidgets.QLabel(self.groupBox_6) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblXnodes.setFont(font) self.lblXnodes.setObjectName("lblXnodes") self.gridLayout_Nodes.addWidget(self.lblXnodes, 0, 0, 1, 1) self.txtXnodes = QtWidgets.QLineEdit(self.groupBox_6) self.txtXnodes.setMinimumSize(QtCore.QSize(56, 18)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtXnodes.setFont(font) self.txtXnodes.setObjectName("txtXnodes") self.gridLayout_Nodes.addWidget(self.txtXnodes, 0, 1, 1, 1) self.label_ynodes = QtWidgets.QLabel(self.groupBox_6) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_ynodes.setFont(font) self.label_ynodes.setObjectName("label_ynodes") self.gridLayout_Nodes.addWidget(self.label_ynodes, 1, 0, 1, 1) self.txtYnodes = QtWidgets.QLineEdit(self.groupBox_6) self.txtYnodes.setMinimumSize(QtCore.QSize(56, 18)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtYnodes.setFont(font) self.txtYnodes.setObjectName("txtYnodes") self.gridLayout_Nodes.addWidget(self.txtYnodes, 1, 1, 1, 1) self.label_znodes = QtWidgets.QLabel(self.groupBox_6) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_znodes.setFont(font) self.label_znodes.setObjectName("label_znodes") self.gridLayout_Nodes.addWidget(self.label_znodes, 2, 0, 1, 1) self.txtZnodes = QtWidgets.QLineEdit(self.groupBox_6) self.txtZnodes.setMinimumSize(QtCore.QSize(56, 18)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtZnodes.setFont(font) self.txtZnodes.setObjectName("txtZnodes") self.gridLayout_Nodes.addWidget(self.txtZnodes, 2, 1, 1, 1) self.gridLayout_9.addLayout(self.gridLayout_Nodes, 0, 0, 1, 1) self.gridLayout_11.addWidget(self.groupBox_6, 0, 4, 2, 4) self.groupBox_Stepsize = QtWidgets.QGroupBox(self.groupBox_SLDPixelInfo) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.groupBox_Stepsize.setFont(font) self.groupBox_Stepsize.setObjectName("groupBox_Stepsize") self.gridLayout_10 = QtWidgets.QGridLayout(self.groupBox_Stepsize) self.gridLayout_10.setObjectName("gridLayout_10") self.gridLayout_Stepsize = QtWidgets.QGridLayout() self.gridLayout_Stepsize.setObjectName("gridLayout_Stepsize") self.lblXstepsize = QtWidgets.QLabel(self.groupBox_Stepsize) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblXstepsize.setFont(font) self.lblXstepsize.setObjectName("lblXstepsize") self.gridLayout_Stepsize.addWidget(self.lblXstepsize, 0, 0, 1, 1) self.txtXstepsize = QtWidgets.QLineEdit(self.groupBox_Stepsize) self.txtXstepsize.setMinimumSize(QtCore.QSize(50, 18)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtXstepsize.setFont(font) self.txtXstepsize.setObjectName("txtXstepsize") self.gridLayout_Stepsize.addWidget(self.txtXstepsize, 0, 1, 1, 1) self.lblUnitx = QtWidgets.QLabel(self.groupBox_Stepsize) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblUnitx.setFont(font) self.lblUnitx.setObjectName("lblUnitx") self.gridLayout_Stepsize.addWidget(self.lblUnitx, 0, 2, 1, 1) self.lblYstepsize = QtWidgets.QLabel(self.groupBox_Stepsize) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblYstepsize.setFont(font) self.lblYstepsize.setObjectName("lblYstepsize") self.gridLayout_Stepsize.addWidget(self.lblYstepsize, 1, 0, 1, 1) self.txtYstepsize = QtWidgets.QLineEdit(self.groupBox_Stepsize) self.txtYstepsize.setMinimumSize(QtCore.QSize(50, 18)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtYstepsize.setFont(font) self.txtYstepsize.setObjectName("txtYstepsize") self.gridLayout_Stepsize.addWidget(self.txtYstepsize, 1, 1, 1, 1) self.lblUnity = QtWidgets.QLabel(self.groupBox_Stepsize) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblUnity.setFont(font) self.lblUnity.setObjectName("lblUnity") self.gridLayout_Stepsize.addWidget(self.lblUnity, 1, 2, 1, 1) self.lblZstepsize = QtWidgets.QLabel(self.groupBox_Stepsize) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblZstepsize.setFont(font) self.lblZstepsize.setObjectName("lblZstepsize") self.gridLayout_Stepsize.addWidget(self.lblZstepsize, 2, 0, 1, 1) self.txtZstepsize = QtWidgets.QLineEdit(self.groupBox_Stepsize) self.txtZstepsize.setMinimumSize(QtCore.QSize(50, 18)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtZstepsize.setFont(font) self.txtZstepsize.setObjectName("txtZstepsize") self.gridLayout_Stepsize.addWidget(self.txtZstepsize, 2, 1, 1, 1) self.lblUnitz = QtWidgets.QLabel(self.groupBox_Stepsize) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblUnitz.setFont(font) self.lblUnitz.setObjectName("lblUnitz") self.gridLayout_Stepsize.addWidget(self.lblUnitz, 2, 2, 1, 1) self.gridLayout_10.addLayout(self.gridLayout_Stepsize, 0, 0, 1, 1) self.gridLayout_11.addWidget(self.groupBox_Stepsize, 2, 4, 2, 4) self.cmdDrawpoints = QtWidgets.QPushButton(self.groupBox_SLDPixelInfo) self.cmdDrawpoints.setEnabled(True) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmdDrawpoints.sizePolicy().hasHeightForWidth()) self.cmdDrawpoints.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmdDrawpoints.setFont(font) self.cmdDrawpoints.setAutoDefault(False) self.cmdDrawpoints.setObjectName("cmdDrawpoints") self.gridLayout_11.addWidget(self.cmdDrawpoints, 3, 0, 1, 2) spacerItem = QtWidgets.QSpacerItem(7, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout_11.addItem(spacerItem, 3, 2, 1, 1) self.cmdSave = QtWidgets.QPushButton(self.groupBox_SLDPixelInfo) self.cmdSave.setEnabled(False) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmdSave.sizePolicy().hasHeightForWidth()) self.cmdSave.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.cmdSave.setFont(font) self.cmdSave.setAutoDefault(False) self.cmdSave.setObjectName("cmdSave") self.gridLayout_11.addWidget(self.cmdSave, 3, 3, 1, 1) self.cmdDrawpoints.raise_() self.cmdSave.raise_() self.lblNoPixels.raise_() self.txtNoPixels.raise_() self.groupBox_5.raise_() self.groupBox_6.raise_() self.groupBox_Stepsize.raise_() self.gridLayout_12.addWidget(self.groupBox_SLDPixelInfo, 0, 5, 2, 4) spacerItem1 = QtWidgets.QSpacerItem(3, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout_12.addItem(spacerItem1, 1, 2, 1, 1) spacerItem2 = QtWidgets.QSpacerItem(0, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout_12.addItem(spacerItem2, 1, 4, 1, 1) self.groupBox_InputParam = QtWidgets.QGroupBox(GenericScatteringCalculator) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.groupBox_InputParam.setFont(font) self.groupBox_InputParam.setObjectName("groupBox_InputParam") self.gridLayout_6 = QtWidgets.QGridLayout(self.groupBox_InputParam) self.gridLayout_6.setObjectName("gridLayout_6") self.gridLayout_InputParam = QtWidgets.QGridLayout() self.gridLayout_InputParam.setSizeConstraint(QtWidgets.QLayout.SetMinimumSize) self.gridLayout_InputParam.setObjectName("gridLayout_InputParam") self.lblParameter = QtWidgets.QLabel(self.groupBox_InputParam) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblParameter.setFont(font) self.lblParameter.setObjectName("lblParameter") self.gridLayout_InputParam.addWidget(self.lblParameter, 0, 0, 1, 1) self.lblValue = QtWidgets.QLabel(self.groupBox_InputParam) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblValue.setFont(font) self.lblValue.setObjectName("lblValue") self.gridLayout_InputParam.addWidget(self.lblValue, 0, 1, 1, 1) self.lblUnit = QtWidgets.QLabel(self.groupBox_InputParam) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblUnit.setFont(font) self.lblUnit.setObjectName("lblUnit") self.gridLayout_InputParam.addWidget(self.lblUnit, 0, 2, 1, 1) self.lblUpFracIn = QtWidgets.QLabel(self.groupBox_InputParam) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblUpFracIn.setFont(font) self.lblUpFracIn.setObjectName("lblUpFracIn") self.gridLayout_InputParam.addWidget(self.lblUpFracIn, 1, 0, 1, 1) self.txtUpFracIn = QtWidgets.QLineEdit(self.groupBox_InputParam) self.txtUpFracIn.setMinimumSize(QtCore.QSize(0, 18)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtUpFracIn.setFont(font) self.txtUpFracIn.setObjectName("txtUpFracIn") self.gridLayout_InputParam.addWidget(self.txtUpFracIn, 1, 1, 1, 1) self.lblUpFracOut = QtWidgets.QLabel(self.groupBox_InputParam) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblUpFracOut.setFont(font) self.lblUpFracOut.setObjectName("lblUpFracOut") self.gridLayout_InputParam.addWidget(self.lblUpFracOut, 2, 0, 1, 1) self.txtUpFracOut = QtWidgets.QLineEdit(self.groupBox_InputParam) self.txtUpFracOut.setMinimumSize(QtCore.QSize(0, 18)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtUpFracOut.setFont(font) self.txtUpFracOut.setObjectName("txtUpFracOut") self.gridLayout_InputParam.addWidget(self.txtUpFracOut, 2, 1, 1, 1) self.lblUpTheta = QtWidgets.QLabel(self.groupBox_InputParam) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblUpTheta.setFont(font) self.lblUpTheta.setObjectName("lblUpTheta") self.gridLayout_InputParam.addWidget(self.lblUpTheta, 3, 0, 1, 1) self.txtUpTheta = QtWidgets.QLineEdit(self.groupBox_InputParam) self.txtUpTheta.setMinimumSize(QtCore.QSize(0, 18)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtUpTheta.setFont(font) self.txtUpTheta.setObjectName("txtUpTheta") self.gridLayout_InputParam.addWidget(self.txtUpTheta, 3, 1, 1, 1) self.lblUpPhi = QtWidgets.QLabel(self.groupBox_InputParam) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblUpPhi.setFont(font) self.lblUpPhi.setObjectName("lblUpPhi") self.gridLayout_InputParam.addWidget(self.lblUpPhi, 4, 0, 1, 1) self.lblUpThetaUnit = QtWidgets.QLabel(self.groupBox_InputParam) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblUpThetaUnit.setFont(font) self.lblUpThetaUnit.setObjectName("lblUpThetaUnit") self.gridLayout_InputParam.addWidget(self.lblUpThetaUnit, 3, 2, 1, 1) self.txtUpPhi = QtWidgets.QLineEdit(self.groupBox_InputParam) self.txtUpPhi.setMinimumSize(QtCore.QSize(0, 18)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtUpPhi.setFont(font) self.txtUpPhi.setObjectName("txtUpPhi") self.gridLayout_InputParam.addWidget(self.txtUpPhi, 4, 1, 1, 1) self.lblUpPhiUnit = QtWidgets.QLabel(self.groupBox_InputParam) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblUpPhiUnit.setFont(font) self.lblUpPhiUnit.setObjectName("lblUpPhiUnit") self.gridLayout_InputParam.addWidget(self.lblUpPhiUnit, 4, 2, 1, 1) self.txtBackground = QtWidgets.QLineEdit(self.groupBox_InputParam) self.txtBackground.setMinimumSize(QtCore.QSize(0, 18)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtBackground.setFont(font) self.txtBackground.setObjectName("txtBackground") self.gridLayout_InputParam.addWidget(self.txtBackground, 5, 1, 1, 1) self.lbl2 = QtWidgets.QLabel(self.groupBox_InputParam) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lbl2.setFont(font) self.lbl2.setObjectName("lbl2") self.gridLayout_InputParam.addWidget(self.lbl2, 5, 2, 1, 1) self.lblScale = QtWidgets.QLabel(self.groupBox_InputParam) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblScale.setFont(font) self.lblScale.setObjectName("lblScale") self.gridLayout_InputParam.addWidget(self.lblScale, 6, 0, 1, 1) self.txtScale = QtWidgets.QLineEdit(self.groupBox_InputParam) self.txtScale.setMinimumSize(QtCore.QSize(0, 18)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtScale.setFont(font) self.txtScale.setObjectName("txtScale") self.gridLayout_InputParam.addWidget(self.txtScale, 6, 1, 1, 1) self.lblSolventSLD = QtWidgets.QLabel(self.groupBox_InputParam) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblSolventSLD.setFont(font) self.lblSolventSLD.setObjectName("lblSolventSLD") self.gridLayout_InputParam.addWidget(self.lblSolventSLD, 7, 0, 1, 1) self.txtSolventSLD = QtWidgets.QLineEdit(self.groupBox_InputParam) self.txtSolventSLD.setMinimumSize(QtCore.QSize(0, 18)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtSolventSLD.setFont(font) self.txtSolventSLD.setObjectName("txtSolventSLD") self.gridLayout_InputParam.addWidget(self.txtSolventSLD, 7, 1, 1, 1) self.lblTotalVolume = QtWidgets.QLabel(self.groupBox_InputParam) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblTotalVolume.setFont(font) self.lblTotalVolume.setObjectName("lblTotalVolume") self.gridLayout_InputParam.addWidget(self.lblTotalVolume, 8, 0, 1, 1) self.txtTotalVolume = QtWidgets.QLineEdit(self.groupBox_InputParam) self.txtTotalVolume.setMinimumSize(QtCore.QSize(0, 18)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtTotalVolume.setFont(font) self.txtTotalVolume.setObjectName("txtTotalVolume") self.gridLayout_InputParam.addWidget(self.txtTotalVolume, 8, 1, 1, 1) self.lblUnitVolume = QtWidgets.QLabel(self.groupBox_InputParam) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblUnitVolume.setFont(font) self.lblUnitVolume.setObjectName("lblUnitVolume") self.gridLayout_InputParam.addWidget(self.lblUnitVolume, 8, 2, 1, 1) self.lblBackgd = QtWidgets.QLabel(self.groupBox_InputParam) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblBackgd.setFont(font) self.lblBackgd.setObjectName("lblBackgd") self.gridLayout_InputParam.addWidget(self.lblBackgd, 5, 0, 1, 1) self.lblUnitSolventSLD = QtWidgets.QLabel(self.groupBox_InputParam) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lblUnitSolventSLD.sizePolicy().hasHeightForWidth()) self.lblUnitSolventSLD.setSizePolicy(sizePolicy) self.lblUnitSolventSLD.setMinimumSize(QtCore.QSize(0, 0)) self.lblUnitSolventSLD.setBaseSize(QtCore.QSize(0, 0)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblUnitSolventSLD.setFont(font) self.lblUnitSolventSLD.setScaledContents(False) self.lblUnitSolventSLD.setIndent(-1) self.lblUnitSolventSLD.setObjectName("lblUnitSolventSLD") self.gridLayout_InputParam.addWidget(self.lblUnitSolventSLD, 7, 2, 1, 1) self.gridLayout_6.addLayout(self.gridLayout_InputParam, 0, 0, 1, 1) self.gridLayout_12.addWidget(self.groupBox_InputParam, 1, 0, 2, 2) self.groupBox_Qrange = QtWidgets.QGroupBox(GenericScatteringCalculator) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.groupBox_Qrange.setFont(font) self.groupBox_Qrange.setObjectName("groupBox_Qrange") self.gridLayout_7 = QtWidgets.QGridLayout(self.groupBox_Qrange) self.gridLayout_7.setObjectName("gridLayout_7") self.gridLayout_3 = QtWidgets.QGridLayout() self.gridLayout_3.setObjectName("gridLayout_3") self.lblNoQBins = QtWidgets.QLabel(self.groupBox_Qrange) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblNoQBins.setFont(font) self.lblNoQBins.setObjectName("lblNoQBins") self.gridLayout_3.addWidget(self.lblNoQBins, 0, 0, 1, 1) self.txtNoQBins = QtWidgets.QLineEdit(self.groupBox_Qrange) self.txtNoQBins.setMinimumSize(QtCore.QSize(0, 18)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtNoQBins.setFont(font) self.txtNoQBins.setObjectName("txtNoQBins") self.gridLayout_3.addWidget(self.txtNoQBins, 0, 1, 1, 1) self.lblQxQyMax = QtWidgets.QLabel(self.groupBox_Qrange) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblQxQyMax.setFont(font) self.lblQxQyMax.setObjectName("lblQxQyMax") self.gridLayout_3.addWidget(self.lblQxQyMax, 1, 0, 1, 1) self.txtQxMax = QtWidgets.QLineEdit(self.groupBox_Qrange) self.txtQxMax.setMinimumSize(QtCore.QSize(0, 18)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtQxMax.setFont(font) self.txtQxMax.setObjectName("txtQxMax") self.gridLayout_3.addWidget(self.txtQxMax, 1, 1, 1, 1) self.lbl5 = QtWidgets.QLabel(self.groupBox_Qrange) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lbl5.setFont(font) self.lbl5.setObjectName("lbl5") self.gridLayout_3.addWidget(self.lbl5, 1, 2, 1, 1) self.gridLayout_7.addLayout(self.gridLayout_3, 0, 0, 1, 1) self.gridLayout_12.addWidget(self.groupBox_Qrange, 3, 0, 1, 2) self.line1 = QtWidgets.QFrame(GenericScatteringCalculator) self.line1.setFrameShape(QtWidgets.QFrame.VLine) self.line1.setFrameShadow(QtWidgets.QFrame.Sunken) self.line1.setObjectName("line1") self.gridLayout_12.addWidget(self.line1, 0, 9, 2, 2) self.groupBox_coordinateInfo = QtWidgets.QGroupBox(GenericScatteringCalculator) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.groupBox_coordinateInfo.setFont(font) self.groupBox_coordinateInfo.setObjectName("groupBox_coordinateInfo") self.gridLayout_13 = QtWidgets.QGridLayout(self.groupBox_coordinateInfo) self.gridLayout_13.setObjectName("gridLayout_13") self.groupBox_7 = QtWidgets.QGroupBox(self.groupBox_coordinateInfo) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.groupBox_7.setFont(font) self.groupBox_7.setObjectName("groupBox_7") self.gridLayout_14 = QtWidgets.QGridLayout(self.groupBox_7) self.gridLayout_14.setObjectName("gridLayout_14") self.lblEnvYaw = QtWidgets.QLabel(self.groupBox_7) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblEnvYaw.setFont(font) self.lblEnvYaw.setObjectName("lblEnvYaw") self.gridLayout_14.addWidget(self.lblEnvYaw, 0, 0, 1, 1) self.txtEnvYaw = QtWidgets.QLineEdit(self.groupBox_7) self.txtEnvYaw.setMinimumSize(QtCore.QSize(0, 18)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtEnvYaw.setFont(font) self.txtEnvYaw.setObjectName("txtEnvYaw") self.gridLayout_14.addWidget(self.txtEnvYaw, 0, 1, 1, 1) self.lblEnvYawUnit = QtWidgets.QLabel(self.groupBox_7) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblEnvYawUnit.setFont(font) self.lblEnvYawUnit.setObjectName("lblEnvYawUnit") self.gridLayout_14.addWidget(self.lblEnvYawUnit, 0, 2, 1, 1) self.lblEnvPitch = QtWidgets.QLabel(self.groupBox_7) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblEnvPitch.setFont(font) self.lblEnvPitch.setObjectName("lblEnvPitch") self.gridLayout_14.addWidget(self.lblEnvPitch, 1, 0, 1, 1) self.txtEnvPitch = QtWidgets.QLineEdit(self.groupBox_7) self.txtEnvPitch.setMinimumSize(QtCore.QSize(0, 18)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtEnvPitch.setFont(font) self.txtEnvPitch.setObjectName("txtEnvPitch") self.gridLayout_14.addWidget(self.txtEnvPitch, 1, 1, 1, 1) self.lblEnvPitchUnit = QtWidgets.QLabel(self.groupBox_7) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblEnvPitchUnit.setFont(font) self.lblEnvPitchUnit.setObjectName("lblEnvPitchUnit") self.gridLayout_14.addWidget(self.lblEnvPitchUnit, 1, 2, 1, 1) self.lblEnvRoll = QtWidgets.QLabel(self.groupBox_7) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblEnvRoll.setFont(font) self.lblEnvRoll.setObjectName("lblEnvRoll") self.gridLayout_14.addWidget(self.lblEnvRoll, 2, 0, 1, 1) self.txtEnvRoll = QtWidgets.QLineEdit(self.groupBox_7) self.txtEnvRoll.setMinimumSize(QtCore.QSize(0, 18)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtEnvRoll.setFont(font) self.txtEnvRoll.setObjectName("txtEnvRoll") self.gridLayout_14.addWidget(self.txtEnvRoll, 2, 1, 1, 1) self.lblEnvRollUnit = QtWidgets.QLabel(self.groupBox_7) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblEnvRollUnit.setFont(font) self.lblEnvRollUnit.setObjectName("lblEnvRollUnit") self.gridLayout_14.addWidget(self.lblEnvRollUnit, 2, 2, 1, 1) self.gridLayout_13.addWidget(self.groupBox_7, 0, 0, 1, 4) self.groupBox_71 = QtWidgets.QGroupBox(self.groupBox_coordinateInfo) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.groupBox_71.setFont(font) self.groupBox_71.setObjectName("groupBox_71") self.gridLayout_141 = QtWidgets.QGridLayout(self.groupBox_71) self.gridLayout_141.setObjectName("gridLayout_141") self.lblSampleYaw = QtWidgets.QLabel(self.groupBox_71) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblSampleYaw.setFont(font) self.lblSampleYaw.setObjectName("lblSampleYaw") self.gridLayout_141.addWidget(self.lblSampleYaw, 0, 0, 1, 1) self.txtSampleYaw = QtWidgets.QLineEdit(self.groupBox_71) self.txtSampleYaw.setMinimumSize(QtCore.QSize(0, 18)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtSampleYaw.setFont(font) self.txtSampleYaw.setObjectName("txtSampleYaw") self.gridLayout_141.addWidget(self.txtSampleYaw, 0, 1, 1, 1) self.lblSampleYawUnit = QtWidgets.QLabel(self.groupBox_71) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblSampleYawUnit.setFont(font) self.lblSampleYawUnit.setObjectName("lblSampleYawUnit") self.gridLayout_141.addWidget(self.lblSampleYawUnit, 0, 2, 1, 1) self.lblSamplePitch = QtWidgets.QLabel(self.groupBox_71) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblSamplePitch.setFont(font) self.lblSamplePitch.setObjectName("lblSamplePitch") self.gridLayout_141.addWidget(self.lblSamplePitch, 1, 0, 1, 1) self.txtSamplePitch = QtWidgets.QLineEdit(self.groupBox_71) self.txtSamplePitch.setMinimumSize(QtCore.QSize(0, 18)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtSamplePitch.setFont(font) self.txtSamplePitch.setObjectName("txtSamplePitch") self.gridLayout_141.addWidget(self.txtSamplePitch, 1, 1, 1, 1) self.lblSamplePitchUnit = QtWidgets.QLabel(self.groupBox_71) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblSamplePitchUnit.setFont(font) self.lblSamplePitchUnit.setObjectName("lblSamplePitchUnit") self.gridLayout_141.addWidget(self.lblSamplePitchUnit, 1, 2, 1, 1) self.lblSampleRoll = QtWidgets.QLabel(self.groupBox_71) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblSampleRoll.setFont(font) self.lblSampleRoll.setObjectName("lblSampleRoll") self.gridLayout_141.addWidget(self.lblSampleRoll, 2, 0, 1, 1) self.txtSampleRoll = QtWidgets.QLineEdit(self.groupBox_71) self.txtSampleRoll.setMinimumSize(QtCore.QSize(0, 18)) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.txtSampleRoll.setFont(font) self.txtSampleRoll.setObjectName("txtSampleRoll") self.gridLayout_141.addWidget(self.txtSampleRoll, 2, 1, 1, 1) self.lblSampleRollUnit = QtWidgets.QLabel(self.groupBox_71) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblSampleRollUnit.setFont(font) self.lblSampleRollUnit.setObjectName("lblSampleRollUnit") self.gridLayout_141.addWidget(self.lblSampleRollUnit, 2, 2, 1, 1) self.gridLayout_13.addWidget(self.groupBox_71, 1, 0, 1, 4) self.gridLayout_12.addWidget(self.groupBox_coordinateInfo, 0, 11, 2, 2) self.coordDisplay = QtWidgets.QHBoxLayout() self.coordDisplay.setObjectName("coordDisplay") self.gridLayout_12.addLayout(self.coordDisplay, 2, 5, 5, 8) spacerItem3 = QtWidgets.QSpacerItem(0, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout_12.addItem(spacerItem3, 3, 6, 1, 1) self.cbOptionsCalc = QtWidgets.QComboBox(GenericScatteringCalculator) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cbOptionsCalc.sizePolicy().hasHeightForWidth()) self.cbOptionsCalc.setSizePolicy(sizePolicy) self.cbOptionsCalc.setMinimumSize(QtCore.QSize(155, 23)) self.cbOptionsCalc.setMaximumSize(QtCore.QSize(155, 26)) self.cbOptionsCalc.setObjectName("cbOptionsCalc") self.cbOptionsCalc.addItem("") self.cbOptionsCalc.addItem("") self.gridLayout_12.addWidget(self.cbOptionsCalc, 5, 0, 1, 1) spacerItem4 = QtWidgets.QSpacerItem(20, 54, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout_12.addItem(spacerItem4, 5, 1, 2, 1) spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout_12.addItem(spacerItem5, 6, 5, 1, 1) self.gridLayout_2 = QtWidgets.QGridLayout() self.gridLayout_2.setObjectName("gridLayout_2") spacerItem6 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout_2.addItem(spacerItem6, 0, 0, 1, 1) self.cmdCompute = QtWidgets.QPushButton(GenericScatteringCalculator) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmdCompute.sizePolicy().hasHeightForWidth()) self.cmdCompute.setSizePolicy(sizePolicy) self.cmdCompute.setAutoDefault(False) self.cmdCompute.setObjectName("cmdCompute") self.gridLayout_2.addWidget(self.cmdCompute, 0, 1, 1, 1) self.cmdReset = QtWidgets.QPushButton(GenericScatteringCalculator) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmdReset.sizePolicy().hasHeightForWidth()) self.cmdReset.setSizePolicy(sizePolicy) self.cmdReset.setMinimumSize(QtCore.QSize(75, 23)) self.cmdReset.setAutoDefault(False) self.cmdReset.setObjectName("cmdReset") self.gridLayout_2.addWidget(self.cmdReset, 0, 2, 1, 1) self.cmdClose = QtWidgets.QPushButton(GenericScatteringCalculator) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmdClose.sizePolicy().hasHeightForWidth()) self.cmdClose.setSizePolicy(sizePolicy) self.cmdClose.setMinimumSize(QtCore.QSize(75, 23)) self.cmdClose.setIconSize(QtCore.QSize(17, 16)) self.cmdClose.setAutoDefault(False) self.cmdClose.setObjectName("cmdClose") self.gridLayout_2.addWidget(self.cmdClose, 0, 3, 1, 1) self.cmdHelp = QtWidgets.QPushButton(GenericScatteringCalculator) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, 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.setAutoDefault(False) self.cmdHelp.setObjectName("cmdHelp") self.gridLayout_2.addWidget(self.cmdHelp, 0, 4, 1, 1) self.gridLayout_12.addLayout(self.gridLayout_2, 7, 0, 1, 3) self.lblVerifyError = QtWidgets.QLabel(GenericScatteringCalculator) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.lblVerifyError.setFont(font) self.lblVerifyError.setText("") self.lblVerifyError.setWordWrap(True) self.lblVerifyError.setAlignment(QtCore.Qt.AlignHCenter) self.lblVerifyError.setMinimumSize(QtCore.QSize(0, 30)) self.lblVerifyError.setObjectName("lblVerifyError") self.gridLayout_12.addWidget(self.lblVerifyError, 7, 5, 1, 1) self.retranslateUi(GenericScatteringCalculator) QtCore.QMetaObject.connectSlotsByName(GenericScatteringCalculator)
[docs] def retranslateUi(self, GenericScatteringCalculator): _translate = QtCore.QCoreApplication.translate GenericScatteringCalculator.setWindowTitle(_translate("GenericScatteringCalculator", "Generic Scattering Calculator")) self.groupBox_Datafile.setTitle(_translate("GenericScatteringCalculator", "SLD Data File")) self.lblNucData.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>Nuclear data used to simulate SANS.</p></body></html>")) self.lblNucData.setText(_translate("GenericScatteringCalculator", "Nuclear Data")) self.txtNucData.setToolTip(_translate("GenericScatteringCalculator", "Display name of loaded datafile.")) self.txtNucData.setText(_translate("GenericScatteringCalculator", "No File Loaded")) self.cmdNucLoad.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>Only .txt, .sld and .pdb datafile formats are supported. </p><p>Load Nuclear sld data.</p></body></html>")) self.cmdNucLoad.setText(_translate("GenericScatteringCalculator", "Load")) self.lblMagData.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>Magnetic data used to simulate SANS.</p></body></html>")) self.lblMagData.setText(_translate("GenericScatteringCalculator", "Magnetic Data")) self.txtMagData.setToolTip(_translate("GenericScatteringCalculator", "Display name of loaded datafile.")) self.txtMagData.setText(_translate("GenericScatteringCalculator", "No File Loaded")) self.cmdMagLoad.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>Only .txt, .omf and.sld datafile formats are supported. </p><p>Load Magnetic sld data.</p></body></html>")) self.cmdMagLoad.setText(_translate("GenericScatteringCalculator", "Load")) self.lblShape.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>Default shape of the sample.</p></body></html>")) self.lblShape.setText(_translate("GenericScatteringCalculator", "Shape")) self.cbShape.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>Select the default shape of the sample.</p></body></html>")) self.cbShape.setItemText(0, _translate("GenericScatteringCalculator", "Rectangular")) self.cmdDraw.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>Generate a 3D plot with arrows for the magnetic vectors.</p><p>It is not recommanded for a large number of pixels.</p></body></html>")) self.cmdDraw.setText(_translate("GenericScatteringCalculator", "Draw")) self.groupBox_SLDPixelInfo.setTitle(_translate("GenericScatteringCalculator", "SLD Pixel Info")) self.lblNoPixels.setToolTip(_translate("GenericScatteringCalculator", "Number of pixels.\n" "Not editable.")) self.lblNoPixels.setText(_translate("GenericScatteringCalculator", "No. of Pixels")) self.txtNoPixels.setText(_translate("GenericScatteringCalculator", "1000")) self.groupBox_5.setTitle(_translate("GenericScatteringCalculator", "Mean SLD")) self.lblMx.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>Mean value of M<span style=\" vertical-align:sub;\">x</span> (x-component of the magnetisation vector).</p></body></html>")) self.lblMx.setText(_translate("GenericScatteringCalculator", "Mx")) self.txtMx.setToolTip(_translate("GenericScatteringCalculator", "x component of the magnetization vector in the laboratory xyz frame")) self.txtMx.setText(_translate("GenericScatteringCalculator", "0.0")) self.lblUnitMx.setText(_translate("GenericScatteringCalculator", "<html><head/><body><p>Å<span style=\" vertical-align:super;\">-2</span></p></body></html>")) self.lblMy.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>Mean value of My (y-component of the magnetisation vector).</p></body></html>")) self.lblMy.setText(_translate("GenericScatteringCalculator", "My")) self.txtMy.setToolTip(_translate("GenericScatteringCalculator", "y component of the magnetization vector in the laboratory xyz frame")) self.txtMy.setText(_translate("GenericScatteringCalculator", "0.0")) self.lblUnitMy.setText(_translate("GenericScatteringCalculator", "<html><head/><body><p>Å<span style=\" vertical-align:super;\">-2</span></p></body></html>")) self.lblMz.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>Mean value of M<span style=\" vertical-align:sub;\">z</span> (z-component of the magnetisation vector).</p></body></html>")) self.lblMz.setText(_translate("GenericScatteringCalculator", "Mz")) self.txtMz.setToolTip(_translate("GenericScatteringCalculator", "z component of the magnetization vector in the laboratory xyz frame")) self.txtMz.setText(_translate("GenericScatteringCalculator", "0.0")) self.lblUnitMz.setText(_translate("GenericScatteringCalculator", "<html><head/><body><p>Å<span style=\" vertical-align:super;\">-2</span></p></body></html>")) self.lblNucl.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>Average of the nuclear scattering density.</p></body></html>")) self.lblNucl.setText(_translate("GenericScatteringCalculator", "Nucl.")) self.txtNucl.setText(_translate("GenericScatteringCalculator", "6.97e-06")) self.lblUnitNucl.setText(_translate("GenericScatteringCalculator", "<html><head/><body><p>Å<span style=\" vertical-align:super;\">-2</span></p></body></html>")) self.groupBox_6.setTitle(_translate("GenericScatteringCalculator", "Nodes")) self.lblXnodes.setText(_translate("GenericScatteringCalculator", "xnodes")) self.txtXnodes.setText(_translate("GenericScatteringCalculator", "10")) self.label_ynodes.setText(_translate("GenericScatteringCalculator", "ynodes")) self.txtYnodes.setText(_translate("GenericScatteringCalculator", "10")) self.label_znodes.setText(_translate("GenericScatteringCalculator", "znodes")) self.txtZnodes.setText(_translate("GenericScatteringCalculator", "10")) self.groupBox_Stepsize.setTitle(_translate("GenericScatteringCalculator", "Step Size")) self.lblXstepsize.setText(_translate("GenericScatteringCalculator", "xstepsize")) self.txtXstepsize.setText(_translate("GenericScatteringCalculator", "6")) self.lblUnitx.setText(_translate("GenericScatteringCalculator", "Å")) self.lblYstepsize.setText(_translate("GenericScatteringCalculator", "ystepsize")) self.txtYstepsize.setText(_translate("GenericScatteringCalculator", "6")) self.lblUnity.setText(_translate("GenericScatteringCalculator", "Å")) self.lblZstepsize.setText(_translate("GenericScatteringCalculator", "zstepsize")) self.txtZstepsize.setText(_translate("GenericScatteringCalculator", "6")) self.lblUnitz.setText(_translate("GenericScatteringCalculator", "Å")) self.cmdDrawpoints.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>Draw a scatter plot for sld profile (without arrows)</p></body></html>")) self.cmdDrawpoints.setText(_translate("GenericScatteringCalculator", "Draw Points")) self.cmdSave.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>Save the sld data as sld format.</p></body></html>")) self.cmdSave.setText(_translate("GenericScatteringCalculator", "Save SLD Data")) self.groupBox_InputParam.setTitle(_translate("GenericScatteringCalculator", "Input Parameters")) self.lblParameter.setText(_translate("GenericScatteringCalculator", "Parameter")) self.lblValue.setText(_translate("GenericScatteringCalculator", "Value")) self.lblUnit.setText(_translate("GenericScatteringCalculator", "Unit")) self.lblUpFracIn.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>Ratio of spin up/(spin up + spin down) neutrons after the analyzer.</p><p>It must be between 0 and 1.</p><p>It is equal to 0.5 for unpolarized neutrons.</p><p>The editing is disabled if data are from .omf, .sld, .pdb files.</p></body></html>")) self.lblUpFracIn.setText(_translate("GenericScatteringCalculator", "Up_frac_in")) self.txtUpFracIn.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>Ratio of spin up/(spin up + spin down) neutrons after the analyzer.</p><p>It must be between 0 and 1.</p><p>It is equal to 0.5 for unpolarized neutrons.</p></body></html>")) self.txtUpFracIn.setText(_translate("GenericScatteringCalculator", "1.0")) self.lblUpFracOut.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>Ratio of spin up/(spin up + spin down) neutrons before the sample.</p><p>It must be between 0 and 1.</p><p>It is equal to 0.5 for unpolarized neutrons.</p><p>The editing is disabled if data are from .omf, .sld, .pdb files.</p></body></html>")) self.lblUpFracOut.setText(_translate("GenericScatteringCalculator", "Up_frac_out")) self.txtUpFracOut.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>Ratio of spin up/(spin up + spin down) neutrons before the sample.</p><p>It must be between 0 and 1.</p><p>It is equal to 0.5 for unpolarized neutrons.</p></body></html>")) self.txtUpFracOut.setText(_translate("GenericScatteringCalculator", "1.0")) self.lblUpTheta.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>Polarization angle.</p><p>The editing is disabled if data are from .omf, .sld, .pdb files.</p></body></html>")) self.lblUpTheta.setText(_translate("GenericScatteringCalculator", "Up_theta")) self.txtUpTheta.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>Polarization angle.</p></body></html>")) self.txtUpTheta.setText(_translate("GenericScatteringCalculator", "0.0")) self.lblUpPhi.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>Polarization angle.</p><p>The editing is disabled if data are from .omf, .sld, .pdb files.</p></body></html>")) self.lblUpPhi.setText(_translate("GenericScatteringCalculator", "Up_phi")) self.lblUpThetaUnit.setText(_translate("GenericScatteringCalculator", "<html><head/><body><p><span style=\" vertical-align:super;\">o</span></p></body></html>")) self.txtUpPhi.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>Polarization angle.</p></body></html>")) self.txtUpPhi.setText(_translate("GenericScatteringCalculator", "0.0")) self.lblUpPhiUnit.setText(_translate("GenericScatteringCalculator", "<html><head/><body><p><span style=\" vertical-align:super;\">o</span></p></body></html>")) self.txtBackground.setText(_translate("GenericScatteringCalculator", "0.0")) self.lbl2.setText(_translate("GenericScatteringCalculator", "<html><head/><body><p>cm<span style=\" vertical-align:super;\">-1</span></p></body></html>")) self.lblScale.setText(_translate("GenericScatteringCalculator", "Scale")) self.txtScale.setText(_translate("GenericScatteringCalculator", "1.0")) self.lblSolventSLD.setText(_translate("GenericScatteringCalculator", "Solvent_SLD")) self.txtSolventSLD.setText(_translate("GenericScatteringCalculator", "0.0")) self.lblTotalVolume.setToolTip(_translate("GenericScatteringCalculator", "Default total volume calculated from the pixel information (or natural density for pdb file).")) self.lblTotalVolume.setText(_translate("GenericScatteringCalculator", "Total volume")) self.txtTotalVolume.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>Default total volume calculated from the pixel information (or natural density for pdb file)</p></body></html>")) self.txtTotalVolume.setText(_translate("GenericScatteringCalculator", "216000.0")) self.lblUnitVolume.setText(_translate("GenericScatteringCalculator", "<html><head/><body><p>Å<span style=\" vertical-align:super;\">3</span></p></body></html>")) self.lblBackgd.setText(_translate("GenericScatteringCalculator", "Background")) self.lblUnitSolventSLD.setText(_translate("GenericScatteringCalculator", "<html><head/><body><p>Å<span style=\" vertical-align:super;\">-2</span></p></body></html>")) self.groupBox_Qrange.setTitle(_translate("GenericScatteringCalculator", "Q Range")) self.lblNoQBins.setToolTip(_translate("GenericScatteringCalculator", "Number of bins in reciprocal space for the 1D or 2D plot generated by \'Compute\'.\n" "Number of Qbins &isin; [2, 1000].")) self.lblNoQBins.setText(_translate("GenericScatteringCalculator", "No. of Qx (Qy) bins")) self.txtNoQBins.setText(_translate("GenericScatteringCalculator", "30")) self.lblQxQyMax.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>Maximum value of Q<span style=\" vertical-align:sub;\">x,y</span>.</p><p>Q<span style=\" vertical-align:sub;\">x,ymax </span>&isin; ]0, 1000].</p></body></html>")) self.lblQxQyMax.setText(_translate("GenericScatteringCalculator", "Qx (Qy) Max")) self.txtQxMax.setText(_translate("GenericScatteringCalculator", "0.3")) self.lbl5.setText(_translate("GenericScatteringCalculator", "<html><head/><body><p>Å<span style=\" vertical-align:super;\">-1</span></p></body></html>")) self.groupBox_coordinateInfo.setTitle(_translate("GenericScatteringCalculator", "Coordinate System Info")) self.groupBox_7.setTitle(_translate("GenericScatteringCalculator", "Environment Coordinates (uvw)")) self.lblEnvYaw.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>The yaw angle of the environment coordinates from the beamline coordinates.</p></body></html>")) self.lblEnvYaw.setText(_translate("GenericScatteringCalculator", "Yaw")) self.txtEnvYaw.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>The yaw angle of the environment coordinates from the beamline coordinates.</p></body></html>")) self.txtEnvYaw.setText(_translate("GenericScatteringCalculator", "0.0")) self.lblEnvYawUnit.setText(_translate("GenericScatteringCalculator", "<html><head/><body><p><span style=\" vertical-align:super;\">o</span></p></body></html>")) self.lblEnvPitch.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>The pitch angle of the environment coordinates from the beamline coordinates.</p></body></html>")) self.lblEnvPitch.setText(_translate("GenericScatteringCalculator", "Pitch")) self.txtEnvPitch.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>The pitch angle of the environment coordinates from the beamline coordinates.</p></body></html>")) self.txtEnvPitch.setText(_translate("GenericScatteringCalculator", "0.0")) self.lblEnvPitchUnit.setText(_translate("GenericScatteringCalculator", "<html><head/><body><p><span style=\" vertical-align:super;\">o</span></p></body></html>")) self.lblEnvRoll.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>The roll angle of the environment coordinates from the beamline coordinates.</p></body></html>")) self.lblEnvRoll.setText(_translate("GenericScatteringCalculator", "Roll")) self.txtEnvRoll.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>The roll angle of the environment coordinates from the beamline coordinates.</p></body></html>")) self.txtEnvRoll.setText(_translate("GenericScatteringCalculator", "0.0")) self.lblEnvRollUnit.setText(_translate("GenericScatteringCalculator", "<html><head/><body><p><span style=\" vertical-align:super;\">o</span></p></body></html>")) self.groupBox_71.setTitle(_translate("GenericScatteringCalculator", "Sample Coordinates (xyz)")) self.lblSampleYaw.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>The yaw angle of the sample coordinates from the environment coordinates.</p></body></html>")) self.lblSampleYaw.setText(_translate("GenericScatteringCalculator", "Yaw")) self.txtSampleYaw.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>The yaw angle of the sample coordinates from the environment coordinates.</p></body></html>")) self.txtSampleYaw.setText(_translate("GenericScatteringCalculator", "0.0")) self.lblSampleYawUnit.setText(_translate("GenericScatteringCalculator", "<html><head/><body><p><span style=\" vertical-align:super;\">o</span></p></body></html>")) self.lblSamplePitch.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>The pitch angle of the sample coordinates from the environment coordinates.</p></body></html>")) self.lblSamplePitch.setText(_translate("GenericScatteringCalculator", "Pitch")) self.txtSamplePitch.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>The pitch angle of the sample coordinates from the environment coordinates.</p></body></html>")) self.txtSamplePitch.setText(_translate("GenericScatteringCalculator", "0.0")) self.lblSamplePitchUnit.setText(_translate("GenericScatteringCalculator", "<html><head/><body><p><span style=\" vertical-align:super;\">o</span></p></body></html>")) self.lblSampleRoll.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>The roll angle of the sample coordinates from the environment coordinates.</p></body></html>")) self.lblSampleRoll.setText(_translate("GenericScatteringCalculator", "Roll")) self.txtSampleRoll.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>The roll angle of the sample coordinates from the enivronment coordinates.</p></body></html>")) self.txtSampleRoll.setText(_translate("GenericScatteringCalculator", "0.0")) self.lblSampleRollUnit.setText(_translate("GenericScatteringCalculator", "<html><head/><body><p><span style=\" vertical-align:super;\">o</span></p></body></html>")) self.cbOptionsCalc.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>Option of orientation to perform calculations:</p><p>- Scattering calculated for fixed orientation &#8594; 2D output</p><p>- Scattering orientation averaged over all orientations &#8594; 1D output</p><p>This choice is only available for pdb files.</p></body></html>")) self.cbOptionsCalc.setItemText(0, _translate("GenericScatteringCalculator", "Fixed orientation")) self.cbOptionsCalc.setItemText(1, _translate("GenericScatteringCalculator", "Debye full avg.")) self.cmdCompute.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>Compute the scattering pattern and display 1D or 2D plot depending on the settings.</p></body></html>")) self.cmdCompute.setText(_translate("GenericScatteringCalculator", "Compute")) self.cmdReset.setToolTip(_translate("GenericScatteringCalculator", "Reset the interface to its default values")) self.cmdReset.setText(_translate("GenericScatteringCalculator", "Reset")) self.cmdClose.setToolTip(_translate("GenericScatteringCalculator", "Close the calculator.")) self.cmdClose.setText(_translate("GenericScatteringCalculator", "Close")) self.cmdHelp.setToolTip(_translate("GenericScatteringCalculator", "Display \'Help\' information about the calculator")) self.cmdHelp.setText(_translate("GenericScatteringCalculator", "Help")) self.lblVerifyError.setToolTip(_translate("GenericScatteringCalculator", "Verification Error"))