# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '.\src\sas\qtgui\Calculators\UI\GenericScatteringCalculator.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_GenericScatteringCalculator(object):
[docs] def setupUi(self, GenericScatteringCalculator):
GenericScatteringCalculator.setObjectName("GenericScatteringCalculator")
GenericScatteringCalculator.resize(716, 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(800, 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.lblData = QtWidgets.QLabel(self.groupBox_Datafile)
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.lblData.setFont(font)
self.lblData.setObjectName("lblData")
self.gridLayout.addWidget(self.lblData, 0, 0, 1, 1)
self.txtData = QtWidgets.QLineEdit(self.groupBox_Datafile)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.txtData.sizePolicy().hasHeightForWidth())
self.txtData.setSizePolicy(sizePolicy)
self.txtData.setMinimumSize(QtCore.QSize(151, 0))
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.txtData.setFont(font)
self.txtData.setObjectName("txtData")
self.gridLayout.addWidget(self.txtData, 0, 1, 1, 1)
self.cmdLoad = QtWidgets.QPushButton(self.groupBox_Datafile)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.cmdLoad.sizePolicy().hasHeightForWidth())
self.cmdLoad.setSizePolicy(sizePolicy)
self.cmdLoad.setMinimumSize(QtCore.QSize(80, 23))
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.cmdLoad.setFont(font)
self.cmdLoad.setAutoDefault(False)
self.cmdLoad.setObjectName("cmdLoad")
self.gridLayout.addWidget(self.cmdLoad, 0, 2, 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, 1, 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, 1, 1, 1, 1)
self.cmdDraw = QtWidgets.QPushButton(self.groupBox_Datafile)
self.cmdDraw.setEnabled(False)
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, 1, 2, 1, 1)
self.gridLayout_5.addLayout(self.gridLayout, 0, 0, 1, 1)
self.gridLayout_12.addWidget(self.groupBox_Datafile, 0, 0, 2, 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, 1, 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, 2, 0, 1, 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, 3, 0, 1, 4)
spacerItem = QtWidgets.QSpacerItem(10, 10, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.gridLayout_11.addItem(spacerItem, 4, 0, 1, 1)
self.cmdDrawpoints = QtWidgets.QPushButton(self.groupBox_SLDPixelInfo)
self.cmdDrawpoints.setEnabled(False)
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, 5, 0, 1, 2)
spacerItem1 = QtWidgets.QSpacerItem(7, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_11.addItem(spacerItem1, 5, 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, 5, 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, 5, 1)
spacerItem2 = QtWidgets.QSpacerItem(3, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_12.addItem(spacerItem2, 1, 2, 1, 1)
spacerItem3 = QtWidgets.QSpacerItem(0, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_12.addItem(spacerItem3, 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.lbl1 = QtWidgets.QLabel(self.groupBox_InputParam)
font = QtGui.QFont()
font.setBold(False)
font.setWeight(50)
self.lbl1.setFont(font)
self.lbl1.setObjectName("lbl1")
self.gridLayout_InputParam.addWidget(self.lbl1, 3, 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, 4, 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, 4, 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, 5, 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, 5, 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, 6, 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, 6, 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, 7, 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, 7, 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, 7, 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, 4, 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, 6, 2, 1, 1)
self.gridLayout_6.addLayout(self.gridLayout_InputParam, 0, 0, 1, 1)
self.gridLayout_12.addWidget(self.groupBox_InputParam, 2, 0, 1, 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)
spacerItem4 = QtWidgets.QSpacerItem(0, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_12.addItem(spacerItem4, 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, 4, 0, 1, 1)
spacerItem5 = QtWidgets.QSpacerItem(20, 54, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.gridLayout_12.addItem(spacerItem5, 4, 1, 2, 1)
spacerItem6 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_12.addItem(spacerItem6, 5, 5, 1, 1)
self.gridLayout_2 = QtWidgets.QGridLayout()
self.gridLayout_2.setObjectName("gridLayout_2")
spacerItem7 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_2.addItem(spacerItem7, 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, 6, 0, 1, 3)
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.lblData.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>Data used to simulate SANS.</p></body></html>"))
self.lblData.setText(_translate("GenericScatteringCalculator", "Data"))
self.txtData.setToolTip(_translate("GenericScatteringCalculator", "Display name of loaded datafile."))
self.txtData.setText(_translate("GenericScatteringCalculator", "Default SLD Profile"))
self.cmdLoad.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>Only .txt, .omf, .sld and .pdb datafile formats are supported. </p><p>Load data and generate 3D plots in real space.</p></body></html>"))
self.cmdLoad.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"))
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"))
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"))
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.lbl1.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 pizel 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 ∈ [2, 1000]."))
self.lblNoQBins.setText(_translate("GenericScatteringCalculator", "No. of Qx (Qy) bins"))
self.txtNoQBins.setText(_translate("GenericScatteringCalculator", "50"))
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>∈ ]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.cbOptionsCalc.setToolTip(_translate("GenericScatteringCalculator", "<html><head/><body><p>Option of orientation to perform calculations:</p><p>- Scattering calculated for fixed orientation → 2D output</p><p>- Scattering orientation averaged over all orientations → 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"))