# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '.\src\sas\qtgui\Calculators\UI\ResolutionCalculatorPanelUI.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_ResolutionCalculatorPanel(object):
[docs] def setupUi(self, ResolutionCalculatorPanel):
ResolutionCalculatorPanel.setObjectName("ResolutionCalculatorPanel")
ResolutionCalculatorPanel.setEnabled(True)
ResolutionCalculatorPanel.resize(876, 540)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(ResolutionCalculatorPanel.sizePolicy().hasHeightForWidth())
ResolutionCalculatorPanel.setSizePolicy(sizePolicy)
ResolutionCalculatorPanel.setMinimumSize(QtCore.QSize(800, 540))
ResolutionCalculatorPanel.setMaximumSize(QtCore.QSize(1310, 667))
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/res/ball.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
ResolutionCalculatorPanel.setWindowIcon(icon)
self.gridLayout_7 = QtWidgets.QGridLayout(ResolutionCalculatorPanel)
self.gridLayout_7.setObjectName("gridLayout_7")
self.groupBox = QtWidgets.QGroupBox(ResolutionCalculatorPanel)
self.groupBox.setMinimumSize(QtCore.QSize(400, 0))
self.groupBox.setMaximumSize(QtCore.QSize(16777215, 350))
self.groupBox.setObjectName("groupBox")
self.gridLayout_6 = QtWidgets.QGridLayout(self.groupBox)
self.gridLayout_6.setContentsMargins(6, 6, 6, 6)
self.gridLayout_6.setObjectName("gridLayout_6")
self.gridLayout_5 = QtWidgets.QGridLayout()
self.gridLayout_5.setObjectName("gridLayout_5")
self.label_26 = QtWidgets.QLabel(self.groupBox)
self.label_26.setMinimumSize(QtCore.QSize(26, 17))
self.label_26.setObjectName("label_26")
self.gridLayout_5.addWidget(self.label_26, 0, 0, 1, 1)
self.cbSource = QtWidgets.QComboBox(self.groupBox)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.cbSource.sizePolicy().hasHeightForWidth())
self.cbSource.setSizePolicy(sizePolicy)
self.cbSource.setMinimumSize(QtCore.QSize(85, 26))
self.cbSource.setObjectName("cbSource")
self.cbSource.addItem("")
self.cbSource.addItem("")
self.cbSource.addItem("")
self.cbSource.addItem("")
self.cbSource.addItem("")
self.cbSource.addItem("")
self.gridLayout_5.addWidget(self.cbSource, 0, 1, 1, 1)
self.cbWaveColor = QtWidgets.QComboBox(self.groupBox)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.cbWaveColor.sizePolicy().hasHeightForWidth())
self.cbWaveColor.setSizePolicy(sizePolicy)
self.cbWaveColor.setMinimumSize(QtCore.QSize(100, 26))
self.cbWaveColor.setMaximumSize(QtCore.QSize(150, 26))
self.cbWaveColor.setObjectName("cbWaveColor")
self.cbWaveColor.addItem("")
self.cbWaveColor.addItem("")
self.gridLayout_5.addWidget(self.cbWaveColor, 0, 2, 1, 2)
self.lblSpectrum = QtWidgets.QLabel(self.groupBox)
self.lblSpectrum.setMinimumSize(QtCore.QSize(70, 20))
self.lblSpectrum.setBaseSize(QtCore.QSize(80, 20))
self.lblSpectrum.setObjectName("lblSpectrum")
self.gridLayout_5.addWidget(self.lblSpectrum, 1, 1, 1, 1)
self.cbCustomSpectrum = QtWidgets.QComboBox(self.groupBox)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.cbCustomSpectrum.sizePolicy().hasHeightForWidth())
self.cbCustomSpectrum.setSizePolicy(sizePolicy)
self.cbCustomSpectrum.setMinimumSize(QtCore.QSize(90, 26))
self.cbCustomSpectrum.setMaximumSize(QtCore.QSize(150, 26))
self.cbCustomSpectrum.setObjectName("cbCustomSpectrum")
self.cbCustomSpectrum.addItem("")
self.cbCustomSpectrum.addItem("")
self.gridLayout_5.addWidget(self.cbCustomSpectrum, 1, 2, 1, 2)
self.label_27 = QtWidgets.QLabel(self.groupBox)
self.label_27.setMinimumSize(QtCore.QSize(84, 20))
self.label_27.setObjectName("label_27")
self.gridLayout_5.addWidget(self.label_27, 2, 0, 1, 2)
self.txtWavelength = QtWidgets.QLineEdit(self.groupBox)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.txtWavelength.sizePolicy().hasHeightForWidth())
self.txtWavelength.setSizePolicy(sizePolicy)
self.txtWavelength.setMinimumSize(QtCore.QSize(100, 23))
self.txtWavelength.setBaseSize(QtCore.QSize(100, 20))
self.txtWavelength.setFocusPolicy(QtCore.Qt.StrongFocus)
self.txtWavelength.setEchoMode(QtWidgets.QLineEdit.Normal)
self.txtWavelength.setObjectName("txtWavelength")
self.gridLayout_5.addWidget(self.txtWavelength, 2, 3, 1, 1)
self.lblUnitWavelength = QtWidgets.QLabel(self.groupBox)
self.lblUnitWavelength.setMinimumSize(QtCore.QSize(22, 21))
self.lblUnitWavelength.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.lblUnitWavelength.setObjectName("lblUnitWavelength")
self.gridLayout_5.addWidget(self.lblUnitWavelength, 2, 4, 1, 1)
self.label_28 = QtWidgets.QLabel(self.groupBox)
self.label_28.setMinimumSize(QtCore.QSize(134, 20))
self.label_28.setObjectName("label_28")
self.gridLayout_5.addWidget(self.label_28, 3, 0, 1, 2)
self.txtWavelengthSpread = QtWidgets.QLineEdit(self.groupBox)
self.txtWavelengthSpread.setMinimumSize(QtCore.QSize(100, 23))
self.txtWavelengthSpread.setBaseSize(QtCore.QSize(100, 20))
self.txtWavelengthSpread.setFocusPolicy(QtCore.Qt.StrongFocus)
self.txtWavelengthSpread.setObjectName("txtWavelengthSpread")
self.gridLayout_5.addWidget(self.txtWavelengthSpread, 3, 3, 1, 1)
self.label_29 = QtWidgets.QLabel(self.groupBox)
self.label_29.setMinimumSize(QtCore.QSize(143, 20))
self.label_29.setObjectName("label_29")
self.gridLayout_5.addWidget(self.label_29, 4, 0, 1, 2)
self.txtSourceApertureSize = QtWidgets.QLineEdit(self.groupBox)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.txtSourceApertureSize.sizePolicy().hasHeightForWidth())
self.txtSourceApertureSize.setSizePolicy(sizePolicy)
self.txtSourceApertureSize.setMinimumSize(QtCore.QSize(100, 23))
self.txtSourceApertureSize.setBaseSize(QtCore.QSize(100, 20))
self.txtSourceApertureSize.setFocusPolicy(QtCore.Qt.StrongFocus)
self.txtSourceApertureSize.setObjectName("txtSourceApertureSize")
self.gridLayout_5.addWidget(self.txtSourceApertureSize, 4, 3, 1, 1)
self.label_39 = QtWidgets.QLabel(self.groupBox)
self.label_39.setMinimumSize(QtCore.QSize(22, 21))
self.label_39.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.label_39.setObjectName("label_39")
self.gridLayout_5.addWidget(self.label_39, 4, 4, 1, 1)
self.label_30 = QtWidgets.QLabel(self.groupBox)
self.label_30.setMinimumSize(QtCore.QSize(147, 20))
self.label_30.setObjectName("label_30")
self.gridLayout_5.addWidget(self.label_30, 5, 0, 1, 2)
self.txtSampleApertureSize = QtWidgets.QLineEdit(self.groupBox)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.txtSampleApertureSize.sizePolicy().hasHeightForWidth())
self.txtSampleApertureSize.setSizePolicy(sizePolicy)
self.txtSampleApertureSize.setMinimumSize(QtCore.QSize(100, 23))
self.txtSampleApertureSize.setBaseSize(QtCore.QSize(100, 20))
self.txtSampleApertureSize.setFocusPolicy(QtCore.Qt.StrongFocus)
self.txtSampleApertureSize.setObjectName("txtSampleApertureSize")
self.gridLayout_5.addWidget(self.txtSampleApertureSize, 5, 3, 1, 1)
self.label_40 = QtWidgets.QLabel(self.groupBox)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_40.sizePolicy().hasHeightForWidth())
self.label_40.setSizePolicy(sizePolicy)
self.label_40.setMinimumSize(QtCore.QSize(22, 21))
self.label_40.setObjectName("label_40")
self.gridLayout_5.addWidget(self.label_40, 5, 4, 1, 1)
self.label_31 = QtWidgets.QLabel(self.groupBox)
self.label_31.setMinimumSize(QtCore.QSize(220, 20))
self.label_31.setObjectName("label_31")
self.gridLayout_5.addWidget(self.label_31, 6, 0, 1, 3)
self.txtSource2SampleDistance = QtWidgets.QLineEdit(self.groupBox)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.txtSource2SampleDistance.sizePolicy().hasHeightForWidth())
self.txtSource2SampleDistance.setSizePolicy(sizePolicy)
self.txtSource2SampleDistance.setMinimumSize(QtCore.QSize(100, 23))
self.txtSource2SampleDistance.setBaseSize(QtCore.QSize(100, 20))
self.txtSource2SampleDistance.setFocusPolicy(QtCore.Qt.StrongFocus)
self.txtSource2SampleDistance.setObjectName("txtSource2SampleDistance")
self.gridLayout_5.addWidget(self.txtSource2SampleDistance, 6, 3, 1, 1)
self.label_41 = QtWidgets.QLabel(self.groupBox)
self.label_41.setMinimumSize(QtCore.QSize(22, 21))
self.label_41.setObjectName("label_41")
self.gridLayout_5.addWidget(self.label_41, 6, 4, 1, 1)
self.label_32 = QtWidgets.QLabel(self.groupBox)
self.label_32.setMinimumSize(QtCore.QSize(225, 20))
self.label_32.setObjectName("label_32")
self.gridLayout_5.addWidget(self.label_32, 7, 0, 1, 3)
self.txtSample2DetectorDistance = QtWidgets.QLineEdit(self.groupBox)
self.txtSample2DetectorDistance.setMinimumSize(QtCore.QSize(100, 23))
self.txtSample2DetectorDistance.setBaseSize(QtCore.QSize(100, 20))
self.txtSample2DetectorDistance.setObjectName("txtSample2DetectorDistance")
self.gridLayout_5.addWidget(self.txtSample2DetectorDistance, 7, 3, 1, 1)
self.label_42 = QtWidgets.QLabel(self.groupBox)
self.label_42.setMinimumSize(QtCore.QSize(22, 21))
self.label_42.setObjectName("label_42")
self.gridLayout_5.addWidget(self.label_42, 7, 4, 1, 1)
self.label_33 = QtWidgets.QLabel(self.groupBox)
self.label_33.setMinimumSize(QtCore.QSize(100, 20))
self.label_33.setObjectName("label_33")
self.gridLayout_5.addWidget(self.label_33, 8, 0, 1, 2)
self.txtSampleOffset = QtWidgets.QLineEdit(self.groupBox)
self.txtSampleOffset.setMinimumSize(QtCore.QSize(100, 23))
self.txtSampleOffset.setBaseSize(QtCore.QSize(100, 20))
self.txtSampleOffset.setObjectName("txtSampleOffset")
self.gridLayout_5.addWidget(self.txtSampleOffset, 8, 3, 1, 1)
self.label_43 = QtWidgets.QLabel(self.groupBox)
self.label_43.setMinimumSize(QtCore.QSize(22, 21))
self.label_43.setObjectName("label_43")
self.gridLayout_5.addWidget(self.label_43, 8, 4, 1, 1)
self.label_34 = QtWidgets.QLabel(self.groupBox)
self.label_34.setMinimumSize(QtCore.QSize(175, 20))
self.label_34.setObjectName("label_34")
self.gridLayout_5.addWidget(self.label_34, 9, 0, 1, 3)
self.txtDetectorSize = QtWidgets.QLineEdit(self.groupBox)
self.txtDetectorSize.setMinimumSize(QtCore.QSize(100, 23))
self.txtDetectorSize.setBaseSize(QtCore.QSize(100, 20))
self.txtDetectorSize.setObjectName("txtDetectorSize")
self.gridLayout_5.addWidget(self.txtDetectorSize, 9, 3, 1, 1)
self.label_35 = QtWidgets.QLabel(self.groupBox)
self.label_35.setMinimumSize(QtCore.QSize(129, 20))
self.label_35.setObjectName("label_35")
self.gridLayout_5.addWidget(self.label_35, 10, 0, 1, 2)
self.txtDetectorPixSize = QtWidgets.QLineEdit(self.groupBox)
self.txtDetectorPixSize.setMinimumSize(QtCore.QSize(100, 23))
self.txtDetectorPixSize.setBaseSize(QtCore.QSize(100, 20))
self.txtDetectorPixSize.setObjectName("txtDetectorPixSize")
self.gridLayout_5.addWidget(self.txtDetectorPixSize, 10, 3, 1, 1)
self.label_45 = QtWidgets.QLabel(self.groupBox)
self.label_45.setMinimumSize(QtCore.QSize(22, 21))
self.label_45.setObjectName("label_45")
self.gridLayout_5.addWidget(self.label_45, 10, 4, 1, 1)
self.gridLayout_6.addLayout(self.gridLayout_5, 0, 0, 1, 1)
self.gridLayout_7.addWidget(self.groupBox, 0, 0, 1, 1)
self.line_4 = QtWidgets.QFrame(ResolutionCalculatorPanel)
self.line_4.setFrameShape(QtWidgets.QFrame.VLine)
self.line_4.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line_4.setObjectName("line_4")
self.gridLayout_7.addWidget(self.line_4, 0, 1, 7, 1)
self.graphicsView = QtWidgets.QGraphicsView(ResolutionCalculatorPanel)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.graphicsView.sizePolicy().hasHeightForWidth())
self.graphicsView.setSizePolicy(sizePolicy)
self.graphicsView.setMinimumSize(QtCore.QSize(415, 415))
self.graphicsView.setObjectName("graphicsView")
self.gridLayout_7.addWidget(self.graphicsView, 0, 2, 3, 1)
self.line = QtWidgets.QFrame(ResolutionCalculatorPanel)
self.line.setFrameShape(QtWidgets.QFrame.HLine)
self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line.setObjectName("line")
self.gridLayout_7.addWidget(self.line, 1, 0, 1, 1)
self.groupBox_2 = QtWidgets.QGroupBox(ResolutionCalculatorPanel)
self.groupBox_2.setMinimumSize(QtCore.QSize(400, 95))
self.groupBox_2.setMaximumSize(QtCore.QSize(450, 110))
self.groupBox_2.setObjectName("groupBox_2")
self.gridLayout_9 = QtWidgets.QGridLayout(self.groupBox_2)
self.gridLayout_9.setContentsMargins(6, 6, 6, 6)
self.gridLayout_9.setObjectName("gridLayout_9")
self.gridLayout = QtWidgets.QGridLayout()
self.gridLayout.setObjectName("gridLayout")
self.label_21 = QtWidgets.QLabel(self.groupBox_2)
self.label_21.setMinimumSize(QtCore.QSize(21, 21))
self.label_21.setObjectName("label_21")
self.gridLayout.addWidget(self.label_21, 0, 0, 1, 1)
self.txtQx = QtWidgets.QLineEdit(self.groupBox_2)
self.txtQx.setMinimumSize(QtCore.QSize(100, 21))
self.txtQx.setBaseSize(QtCore.QSize(100, 21))
self.txtQx.setObjectName("txtQx")
self.gridLayout.addWidget(self.txtQx, 0, 1, 1, 1)
self.lblUnitQx = QtWidgets.QLabel(self.groupBox_2)
self.lblUnitQx.setMinimumSize(QtCore.QSize(18, 21))
self.lblUnitQx.setObjectName("lblUnitQx")
self.gridLayout.addWidget(self.lblUnitQx, 0, 2, 1, 1)
self.label_22 = QtWidgets.QLabel(self.groupBox_2)
self.label_22.setMinimumSize(QtCore.QSize(21, 21))
self.label_22.setObjectName("label_22")
self.gridLayout.addWidget(self.label_22, 1, 0, 1, 1)
self.txtQy = QtWidgets.QLineEdit(self.groupBox_2)
self.txtQy.setMinimumSize(QtCore.QSize(100, 21))
self.txtQy.setBaseSize(QtCore.QSize(100, 21))
self.txtQy.setObjectName("txtQy")
self.gridLayout.addWidget(self.txtQy, 1, 1, 1, 1)
self.lblUnitQy = QtWidgets.QLabel(self.groupBox_2)
self.lblUnitQy.setMinimumSize(QtCore.QSize(18, 21))
self.lblUnitQy.setObjectName("lblUnitQy")
self.gridLayout.addWidget(self.lblUnitQy, 1, 2, 1, 1)
self.gridLayout_9.addLayout(self.gridLayout, 0, 0, 1, 1)
self.gridLayout_7.addWidget(self.groupBox_2, 2, 0, 3, 1)
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.gridLayout_7.addItem(spacerItem, 3, 2, 1, 1)
self.groupBox_3 = QtWidgets.QGroupBox(ResolutionCalculatorPanel)
self.groupBox_3.setObjectName("groupBox_3")
self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox_3)
self.gridLayout_4.setContentsMargins(6, 6, 6, 6)
self.gridLayout_4.setObjectName("gridLayout_4")
self.gridLayout_2 = QtWidgets.QGridLayout()
self.gridLayout_2.setObjectName("gridLayout_2")
self.txtSigma_x = QtWidgets.QLineEdit(self.groupBox_3)
self.txtSigma_x.setEnabled(True)
self.txtSigma_x.setMinimumSize(QtCore.QSize(80, 23))
self.txtSigma_x.setBaseSize(QtCore.QSize(100, 21))
self.txtSigma_x.setReadOnly(True)
self.txtSigma_x.setObjectName("txtSigma_x")
self.gridLayout_2.addWidget(self.txtSigma_x, 0, 1, 1, 1)
self.txtSigma_y = QtWidgets.QLineEdit(self.groupBox_3)
self.txtSigma_y.setEnabled(True)
self.txtSigma_y.setMinimumSize(QtCore.QSize(80, 23))
self.txtSigma_y.setBaseSize(QtCore.QSize(100, 21))
self.txtSigma_y.setReadOnly(True)
self.txtSigma_y.setObjectName("txtSigma_y")
self.gridLayout_2.addWidget(self.txtSigma_y, 0, 5, 1, 1)
self.label_2 = QtWidgets.QLabel(self.groupBox_3)
self.label_2.setMinimumSize(QtCore.QSize(87, 20))
self.label_2.setBaseSize(QtCore.QSize(87, 20))
self.label_2.setObjectName("label_2")
self.gridLayout_2.addWidget(self.label_2, 1, 0, 1, 1)
self.txtSigma_lamd = QtWidgets.QLineEdit(self.groupBox_3)
self.txtSigma_lamd.setEnabled(True)
self.txtSigma_lamd.setMinimumSize(QtCore.QSize(80, 23))
self.txtSigma_lamd.setBaseSize(QtCore.QSize(100, 21))
self.txtSigma_lamd.setReadOnly(True)
self.txtSigma_lamd.setObjectName("txtSigma_lamd")
self.gridLayout_2.addWidget(self.txtSigma_lamd, 1, 1, 1, 1)
self.txt1DSigma = QtWidgets.QLineEdit(self.groupBox_3)
self.txt1DSigma.setEnabled(True)
self.txt1DSigma.setMinimumSize(QtCore.QSize(80, 23))
self.txt1DSigma.setBaseSize(QtCore.QSize(100, 21))
self.txt1DSigma.setReadOnly(True)
self.txt1DSigma.setObjectName("txt1DSigma")
self.gridLayout_2.addWidget(self.txt1DSigma, 1, 5, 1, 1)
self.lblUnit1DSigma = QtWidgets.QLabel(self.groupBox_3)
self.lblUnit1DSigma.setMinimumSize(QtCore.QSize(20, 21))
self.lblUnit1DSigma.setObjectName("lblUnit1DSigma")
self.gridLayout_2.addWidget(self.lblUnit1DSigma, 1, 6, 1, 1)
self.lblUnitSigmalamd = QtWidgets.QLabel(self.groupBox_3)
self.lblUnitSigmalamd.setMinimumSize(QtCore.QSize(20, 21))
self.lblUnitSigmalamd.setObjectName("lblUnitSigmalamd")
self.gridLayout_2.addWidget(self.lblUnitSigmalamd, 1, 2, 1, 1)
self.label_6 = QtWidgets.QLabel(self.groupBox_3)
self.label_6.setMinimumSize(QtCore.QSize(87, 20))
self.label_6.setBaseSize(QtCore.QSize(87, 20))
self.label_6.setObjectName("label_6")
self.gridLayout_2.addWidget(self.label_6, 1, 4, 1, 1)
self.label_5 = QtWidgets.QLabel(self.groupBox_3)
self.label_5.setMinimumSize(QtCore.QSize(87, 20))
self.label_5.setBaseSize(QtCore.QSize(87, 20))
self.label_5.setObjectName("label_5")
self.gridLayout_2.addWidget(self.label_5, 0, 4, 1, 1)
self.lblUnitSigmay = QtWidgets.QLabel(self.groupBox_3)
self.lblUnitSigmay.setMinimumSize(QtCore.QSize(20, 21))
self.lblUnitSigmay.setObjectName("lblUnitSigmay")
self.gridLayout_2.addWidget(self.lblUnitSigmay, 0, 6, 1, 1)
self.lblUnitSigmax = QtWidgets.QLabel(self.groupBox_3)
self.lblUnitSigmax.setMinimumSize(QtCore.QSize(20, 21))
self.lblUnitSigmax.setObjectName("lblUnitSigmax")
self.gridLayout_2.addWidget(self.lblUnitSigmax, 0, 2, 1, 1)
self.label = QtWidgets.QLabel(self.groupBox_3)
self.label.setMinimumSize(QtCore.QSize(87, 20))
self.label.setBaseSize(QtCore.QSize(87, 20))
self.label.setObjectName("label")
self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1)
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_2.addItem(spacerItem1, 0, 3, 1, 1)
self.gridLayout_4.addLayout(self.gridLayout_2, 0, 0, 1, 1)
self.gridLayout_7.addWidget(self.groupBox_3, 4, 2, 3, 1)
self.line_2 = QtWidgets.QFrame(ResolutionCalculatorPanel)
self.line_2.setFrameShape(QtWidgets.QFrame.HLine)
self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line_2.setObjectName("line_2")
self.gridLayout_7.addWidget(self.line_2, 5, 0, 1, 1)
self.gridLayout_3 = QtWidgets.QGridLayout()
self.gridLayout_3.setObjectName("gridLayout_3")
self.cmdReset = QtWidgets.QPushButton(ResolutionCalculatorPanel)
self.cmdReset.setMinimumSize(QtCore.QSize(75, 25))
self.cmdReset.setAutoDefault(False)
self.cmdReset.setObjectName("cmdReset")
self.gridLayout_3.addWidget(self.cmdReset, 0, 1, 1, 1)
self.cmdCompute = QtWidgets.QPushButton(ResolutionCalculatorPanel)
self.cmdCompute.setAutoDefault(False)
self.cmdCompute.setObjectName("cmdCompute")
self.gridLayout_3.addWidget(self.cmdCompute, 0, 2, 1, 1)
self.cmdClose = QtWidgets.QPushButton(ResolutionCalculatorPanel)
self.cmdClose.setMinimumSize(QtCore.QSize(75, 23))
self.cmdClose.setAutoDefault(False)
self.cmdClose.setObjectName("cmdClose")
self.gridLayout_3.addWidget(self.cmdClose, 0, 3, 1, 1)
self.cmdHelp = QtWidgets.QPushButton(ResolutionCalculatorPanel)
self.cmdHelp.setMinimumSize(QtCore.QSize(75, 23))
self.cmdHelp.setAutoDefault(False)
self.cmdHelp.setObjectName("cmdHelp")
self.gridLayout_3.addWidget(self.cmdHelp, 0, 4, 1, 1)
spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_3.addItem(spacerItem2, 0, 0, 1, 1)
self.gridLayout_7.addLayout(self.gridLayout_3, 6, 0, 1, 1)
self.groupBox.raise_()
self.groupBox_2.raise_()
self.groupBox_3.raise_()
self.graphicsView.raise_()
self.line_4.raise_()
self.line.raise_()
self.line_2.raise_()
self.retranslateUi(ResolutionCalculatorPanel)
self.cbSource.setCurrentIndex(2)
QtCore.QMetaObject.connectSlotsByName(ResolutionCalculatorPanel)
ResolutionCalculatorPanel.setTabOrder(self.cbSource, self.cbWaveColor)
ResolutionCalculatorPanel.setTabOrder(self.cbWaveColor, self.cbCustomSpectrum)
ResolutionCalculatorPanel.setTabOrder(self.cbCustomSpectrum, self.txtWavelength)
ResolutionCalculatorPanel.setTabOrder(self.txtWavelength, self.txtWavelengthSpread)
ResolutionCalculatorPanel.setTabOrder(self.txtWavelengthSpread, self.txtSourceApertureSize)
ResolutionCalculatorPanel.setTabOrder(self.txtSourceApertureSize, self.txtSampleApertureSize)
ResolutionCalculatorPanel.setTabOrder(self.txtSampleApertureSize, self.txtSource2SampleDistance)
ResolutionCalculatorPanel.setTabOrder(self.txtSource2SampleDistance, self.txtSample2DetectorDistance)
ResolutionCalculatorPanel.setTabOrder(self.txtSample2DetectorDistance, self.txtSampleOffset)
ResolutionCalculatorPanel.setTabOrder(self.txtSampleOffset, self.txtDetectorSize)
ResolutionCalculatorPanel.setTabOrder(self.txtDetectorSize, self.txtDetectorPixSize)
ResolutionCalculatorPanel.setTabOrder(self.txtDetectorPixSize, self.txtQx)
ResolutionCalculatorPanel.setTabOrder(self.txtQx, self.txtQy)
ResolutionCalculatorPanel.setTabOrder(self.txtQy, self.cmdCompute)
ResolutionCalculatorPanel.setTabOrder(self.cmdCompute, self.cmdHelp)
ResolutionCalculatorPanel.setTabOrder(self.cmdHelp, self.cmdReset)
ResolutionCalculatorPanel.setTabOrder(self.cmdReset, self.cmdClose)
ResolutionCalculatorPanel.setTabOrder(self.cmdClose, self.txtSigma_lamd)
ResolutionCalculatorPanel.setTabOrder(self.txtSigma_lamd, self.txtSigma_y)
ResolutionCalculatorPanel.setTabOrder(self.txtSigma_y, self.txt1DSigma)
ResolutionCalculatorPanel.setTabOrder(self.txt1DSigma, self.graphicsView)
ResolutionCalculatorPanel.setTabOrder(self.graphicsView, self.txtSigma_x)
[docs] def retranslateUi(self, ResolutionCalculatorPanel):
_translate = QtCore.QCoreApplication.translate
ResolutionCalculatorPanel.setWindowTitle(_translate("ResolutionCalculatorPanel", "Q Resolution Estimator"))
self.groupBox.setTitle(_translate("ResolutionCalculatorPanel", "Instrumental Parameters"))
self.label_26.setText(_translate("ResolutionCalculatorPanel", "Source:"))
self.cbSource.setToolTip(_translate("ResolutionCalculatorPanel", "Source Selection: Affect on the gravitational contribution."))
self.cbSource.setItemText(0, _translate("ResolutionCalculatorPanel", "Alpha"))
self.cbSource.setItemText(1, _translate("ResolutionCalculatorPanel", "Deutron"))
self.cbSource.setItemText(2, _translate("ResolutionCalculatorPanel", "Neutron"))
self.cbSource.setItemText(3, _translate("ResolutionCalculatorPanel", "Photon"))
self.cbSource.setItemText(4, _translate("ResolutionCalculatorPanel", "Proton"))
self.cbSource.setItemText(5, _translate("ResolutionCalculatorPanel", "Triton"))
self.cbWaveColor.setItemText(0, _translate("ResolutionCalculatorPanel", "Monochromatic"))
self.cbWaveColor.setItemText(1, _translate("ResolutionCalculatorPanel", "TOF"))
self.lblSpectrum.setText(_translate("ResolutionCalculatorPanel", "Spectrum:"))
self.cbCustomSpectrum.setToolTip(_translate("ResolutionCalculatorPanel", "Wavelength Spectrum: Intensity vs. wavelength."))
self.cbCustomSpectrum.setItemText(0, _translate("ResolutionCalculatorPanel", "Flat"))
self.cbCustomSpectrum.setItemText(1, _translate("ResolutionCalculatorPanel", "Add New"))
self.label_27.setText(_translate("ResolutionCalculatorPanel", "Wavelength:"))
self.txtWavelength.setToolTip(_translate("ResolutionCalculatorPanel", "Wavelength of the Neutrons."))
self.txtWavelength.setText(_translate("ResolutionCalculatorPanel", "6.0"))
self.lblUnitWavelength.setText(_translate("ResolutionCalculatorPanel", "Å"))
self.label_28.setText(_translate("ResolutionCalculatorPanel", "Wavelength Spread:"))
self.txtWavelengthSpread.setToolTip(_translate("ResolutionCalculatorPanel", "Wavelength Spread of Neutrons."))
self.txtWavelengthSpread.setText(_translate("ResolutionCalculatorPanel", "0.125"))
self.label_29.setText(_translate("ResolutionCalculatorPanel", "Source Aperture Size:"))
self.txtSourceApertureSize.setToolTip(_translate("ResolutionCalculatorPanel", "Source Aperture Size."))
self.txtSourceApertureSize.setText(_translate("ResolutionCalculatorPanel", "3.81"))
self.label_39.setText(_translate("ResolutionCalculatorPanel", "cm"))
self.label_30.setText(_translate("ResolutionCalculatorPanel", "Sample Aperture Size:"))
self.txtSampleApertureSize.setToolTip(_translate("ResolutionCalculatorPanel", "Sample Aperture Size."))
self.txtSampleApertureSize.setText(_translate("ResolutionCalculatorPanel", "1.27"))
self.label_40.setText(_translate("ResolutionCalculatorPanel", "cm"))
self.label_31.setText(_translate("ResolutionCalculatorPanel", "Source to Sample Aperture Distance:"))
self.txtSource2SampleDistance.setToolTip(_translate("ResolutionCalculatorPanel", "Source to Sample Aperture Distance."))
self.txtSource2SampleDistance.setText(_translate("ResolutionCalculatorPanel", "1627"))
self.label_41.setText(_translate("ResolutionCalculatorPanel", "cm"))
self.label_32.setText(_translate("ResolutionCalculatorPanel", "Sample Aperture to Detector Distance:"))
self.txtSample2DetectorDistance.setToolTip(_translate("ResolutionCalculatorPanel", "Sample Aperture to Detector Distance."))
self.txtSample2DetectorDistance.setText(_translate("ResolutionCalculatorPanel", "1000"))
self.label_42.setText(_translate("ResolutionCalculatorPanel", "cm"))
self.label_33.setText(_translate("ResolutionCalculatorPanel", "Sample Offset:"))
self.txtSampleOffset.setToolTip(_translate("ResolutionCalculatorPanel", "Sample Offset."))
self.txtSampleOffset.setText(_translate("ResolutionCalculatorPanel", "0"))
self.label_43.setText(_translate("ResolutionCalculatorPanel", "cm"))
self.label_34.setText(_translate("ResolutionCalculatorPanel", "Number of Pixels on Detector:"))
self.txtDetectorSize.setToolTip(_translate("ResolutionCalculatorPanel", "Number of Pixels on Detector."))
self.txtDetectorSize.setText(_translate("ResolutionCalculatorPanel", "128, 128"))
self.label_35.setText(_translate("ResolutionCalculatorPanel", "Detector Pixel Size:"))
self.txtDetectorPixSize.setToolTip(_translate("ResolutionCalculatorPanel", "Detector Pixel Size."))
self.txtDetectorPixSize.setText(_translate("ResolutionCalculatorPanel", "0.5, 0.5"))
self.label_45.setText(_translate("ResolutionCalculatorPanel", "cm"))
self.groupBox_2.setTitle(_translate("ResolutionCalculatorPanel", "Q Location of the Estimation"))
self.label_21.setText(_translate("ResolutionCalculatorPanel", "Qx:"))
self.txtQx.setToolTip(_translate("ResolutionCalculatorPanel", "Type the Qx value."))
self.txtQx.setText(_translate("ResolutionCalculatorPanel", "0.0"))
self.lblUnitQx.setText(_translate("ResolutionCalculatorPanel", "<html><head/><body><p>Å<span style=\" vertical-align:super;\">-1</span></p></body></html>"))
self.label_22.setText(_translate("ResolutionCalculatorPanel", "Qy:"))
self.txtQy.setToolTip(_translate("ResolutionCalculatorPanel", "Type the Qy value."))
self.txtQy.setText(_translate("ResolutionCalculatorPanel", "0.0"))
self.lblUnitQy.setText(_translate("ResolutionCalculatorPanel", "<html><head/><body><p>Å<span style=\" vertical-align:super;\">-1</span></p></body></html>"))
self.groupBox_3.setTitle(_translate("ResolutionCalculatorPanel", "Standard Deviation of the Resolution Distribution"))
self.txtSigma_x.setToolTip(_translate("ResolutionCalculatorPanel", "The x component of the geometric resolution, excluding sigma_lamda."))
self.txtSigma_x.setText(_translate("ResolutionCalculatorPanel", "0.0008288"))
self.txtSigma_y.setToolTip(_translate("ResolutionCalculatorPanel", "The y component of the geometric resolution, excluding sigma_lamda."))
self.txtSigma_y.setText(_translate("ResolutionCalculatorPanel", "0.0008288"))
self.label_2.setText(_translate("ResolutionCalculatorPanel", "Sigma_lamd:"))
self.txtSigma_lamd.setToolTip(_translate("ResolutionCalculatorPanel", "The wavelength contribution in the radial direction. Note: The phi component is always zero."))
self.txtSigma_lamd.setText(_translate("ResolutionCalculatorPanel", "3.168e-05"))
self.txt1DSigma.setToolTip(_translate("ResolutionCalculatorPanel", "Resolution in 1-dimension (for 1D data)."))
self.txt1DSigma.setText(_translate("ResolutionCalculatorPanel", "0.0008289"))
self.lblUnit1DSigma.setText(_translate("ResolutionCalculatorPanel", "<html><head/><body><p>Å<span style=\" vertical-align:super;\">-1</span></p></body></html>"))
self.lblUnitSigmalamd.setText(_translate("ResolutionCalculatorPanel", "<html><head/><body><p>Å<span style=\" vertical-align:super;\">-1</span></p></body></html>"))
self.label_6.setText(_translate("ResolutionCalculatorPanel", "(1D) Sigma:"))
self.label_5.setText(_translate("ResolutionCalculatorPanel", "Sigma_y:"))
self.lblUnitSigmay.setText(_translate("ResolutionCalculatorPanel", "<html><head/><body><p>Å<span style=\" vertical-align:super;\">-1</span></p></body></html>"))
self.lblUnitSigmax.setText(_translate("ResolutionCalculatorPanel", "<html><head/><body><p>Å<span style=\" vertical-align:super;\">-1</span></p></body></html>"))
self.label.setText(_translate("ResolutionCalculatorPanel", "Sigma_x:"))
self.cmdReset.setToolTip(_translate("ResolutionCalculatorPanel", "Reset to default SAS instrumental parameter"))
self.cmdReset.setText(_translate("ResolutionCalculatorPanel", "Reset"))
self.cmdCompute.setToolTip(_translate("ResolutionCalculatorPanel", "Compute the resolution of Q from SAS instrumental parameter"))
self.cmdCompute.setText(_translate("ResolutionCalculatorPanel", "Compute"))
self.cmdClose.setToolTip(_translate("ResolutionCalculatorPanel", "Close this window"))
self.cmdClose.setText(_translate("ResolutionCalculatorPanel", "Close"))
self.cmdHelp.setToolTip(_translate("ResolutionCalculatorPanel", "Help on using the Resolution Calculator"))
self.cmdHelp.setText(_translate("ResolutionCalculatorPanel", "Help"))