Source code for sas.qtgui.Plotting.UI.BoxSumUI

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

# Form implementation generated from reading ui file '.\src\sas\qtgui\Plotting\UI\BoxSumUI.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_BoxSumUI(object):
[docs] def setupUi(self, BoxSumUI): BoxSumUI.setObjectName("BoxSumUI") BoxSumUI.resize(322, 313) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(BoxSumUI.sizePolicy().hasHeightForWidth()) BoxSumUI.setSizePolicy(sizePolicy) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/res/ball.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off) BoxSumUI.setWindowIcon(icon) self.gridLayout_4 = QtWidgets.QGridLayout(BoxSumUI) self.gridLayout_4.setObjectName("gridLayout_4") self.groupBox = QtWidgets.QGroupBox(BoxSumUI) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth()) self.groupBox.setSizePolicy(sizePolicy) self.groupBox.setObjectName("groupBox") self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox) self.gridLayout_3.setObjectName("gridLayout_3") self.groupBox_4 = QtWidgets.QGroupBox(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.groupBox_4.sizePolicy().hasHeightForWidth()) self.groupBox_4.setSizePolicy(sizePolicy) self.groupBox_4.setObjectName("groupBox_4") self.gridLayout = QtWidgets.QGridLayout(self.groupBox_4) self.gridLayout.setObjectName("gridLayout") self.label = QtWidgets.QLabel(self.groupBox_4) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth()) self.label.setSizePolicy(sizePolicy) self.label.setObjectName("label") self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.txtBoxHeight = QtWidgets.QLineEdit(self.groupBox_4) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.txtBoxHeight.sizePolicy().hasHeightForWidth()) self.txtBoxHeight.setSizePolicy(sizePolicy) self.txtBoxHeight.setMinimumSize(QtCore.QSize(70, 0)) self.txtBoxHeight.setMaximumSize(QtCore.QSize(70, 16777215)) self.txtBoxHeight.setObjectName("txtBoxHeight") self.gridLayout.addWidget(self.txtBoxHeight, 0, 1, 1, 1) self.label_10 = QtWidgets.QLabel(self.groupBox_4) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_10.sizePolicy().hasHeightForWidth()) self.label_10.setSizePolicy(sizePolicy) self.label_10.setObjectName("label_10") self.gridLayout.addWidget(self.label_10, 0, 2, 1, 1) self.label_2 = QtWidgets.QLabel(self.groupBox_4) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth()) self.label_2.setSizePolicy(sizePolicy) self.label_2.setObjectName("label_2") self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1) self.txtBoxWidth = QtWidgets.QLineEdit(self.groupBox_4) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.txtBoxWidth.sizePolicy().hasHeightForWidth()) self.txtBoxWidth.setSizePolicy(sizePolicy) self.txtBoxWidth.setMinimumSize(QtCore.QSize(70, 0)) self.txtBoxWidth.setMaximumSize(QtCore.QSize(70, 16777215)) self.txtBoxWidth.setObjectName("txtBoxWidth") self.gridLayout.addWidget(self.txtBoxWidth, 1, 1, 1, 1) self.label_11 = QtWidgets.QLabel(self.groupBox_4) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_11.sizePolicy().hasHeightForWidth()) self.label_11.setSizePolicy(sizePolicy) self.label_11.setObjectName("label_11") self.gridLayout.addWidget(self.label_11, 1, 2, 1, 1) self.gridLayout_3.addWidget(self.groupBox_4, 0, 0, 1, 1) self.groupBox_2 = QtWidgets.QGroupBox(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.groupBox_2.sizePolicy().hasHeightForWidth()) self.groupBox_2.setSizePolicy(sizePolicy) self.groupBox_2.setObjectName("groupBox_2") self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox_2) self.gridLayout_2.setObjectName("gridLayout_2") self.label_3 = QtWidgets.QLabel(self.groupBox_2) self.label_3.setObjectName("label_3") self.gridLayout_2.addWidget(self.label_3, 0, 0, 1, 1) self.txtCenterX = QtWidgets.QLineEdit(self.groupBox_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.txtCenterX.sizePolicy().hasHeightForWidth()) self.txtCenterX.setSizePolicy(sizePolicy) self.txtCenterX.setMinimumSize(QtCore.QSize(70, 0)) self.txtCenterX.setMaximumSize(QtCore.QSize(70, 16777215)) self.txtCenterX.setObjectName("txtCenterX") self.gridLayout_2.addWidget(self.txtCenterX, 0, 1, 1, 1) self.label_13 = QtWidgets.QLabel(self.groupBox_2) self.label_13.setObjectName("label_13") self.gridLayout_2.addWidget(self.label_13, 0, 2, 1, 1) self.label_4 = QtWidgets.QLabel(self.groupBox_2) self.label_4.setObjectName("label_4") self.gridLayout_2.addWidget(self.label_4, 1, 0, 1, 1) self.txtCenterY = QtWidgets.QLineEdit(self.groupBox_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.txtCenterY.sizePolicy().hasHeightForWidth()) self.txtCenterY.setSizePolicy(sizePolicy) self.txtCenterY.setMinimumSize(QtCore.QSize(70, 0)) self.txtCenterY.setMaximumSize(QtCore.QSize(70, 16777215)) self.txtCenterY.setText("") self.txtCenterY.setObjectName("txtCenterY") self.gridLayout_2.addWidget(self.txtCenterY, 1, 1, 1, 1) self.label_12 = QtWidgets.QLabel(self.groupBox_2) self.label_12.setObjectName("label_12") self.gridLayout_2.addWidget(self.label_12, 1, 2, 1, 1) self.gridLayout_3.addWidget(self.groupBox_2, 0, 1, 1, 1) self.gridLayout_4.addWidget(self.groupBox, 0, 0, 1, 2) self.groupBox_3 = QtWidgets.QGroupBox(BoxSumUI) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.groupBox_3.sizePolicy().hasHeightForWidth()) self.groupBox_3.setSizePolicy(sizePolicy) self.groupBox_3.setObjectName("groupBox_3") self.gridLayout_5 = QtWidgets.QGridLayout(self.groupBox_3) self.gridLayout_5.setObjectName("gridLayout_5") self.formLayout = QtWidgets.QFormLayout() self.formLayout.setObjectName("formLayout") self.label_5 = QtWidgets.QLabel(self.groupBox_3) self.label_5.setObjectName("label_5") self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_5) self.lblAvg = QtWidgets.QLabel(self.groupBox_3) self.lblAvg.setObjectName("lblAvg") self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.lblAvg) self.label_6 = QtWidgets.QLabel(self.groupBox_3) self.label_6.setObjectName("label_6") self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_6) self.lblAvgErr = QtWidgets.QLabel(self.groupBox_3) self.lblAvgErr.setObjectName("lblAvgErr") self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.lblAvgErr) self.label_7 = QtWidgets.QLabel(self.groupBox_3) self.label_7.setObjectName("label_7") self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_7) self.lblNumPoints = QtWidgets.QLabel(self.groupBox_3) self.lblNumPoints.setObjectName("lblNumPoints") self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.lblNumPoints) self.label_8 = QtWidgets.QLabel(self.groupBox_3) self.label_8.setObjectName("label_8") self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_8) self.lblSum = QtWidgets.QLabel(self.groupBox_3) self.lblSum.setObjectName("lblSum") self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.lblSum) self.label_9 = QtWidgets.QLabel(self.groupBox_3) self.label_9.setObjectName("label_9") self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.label_9) self.lblSumErr = QtWidgets.QLabel(self.groupBox_3) self.lblSumErr.setObjectName("lblSumErr") self.formLayout.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.lblSumErr) self.gridLayout_5.addLayout(self.formLayout, 0, 0, 1, 1) self.gridLayout_4.addWidget(self.groupBox_3, 1, 0, 1, 2) spacerItem = QtWidgets.QSpacerItem(20, 18, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout_4.addItem(spacerItem, 2, 0, 1, 1) self.buttonBox = QtWidgets.QDialogButtonBox(BoxSumUI) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Close) self.buttonBox.setObjectName("buttonBox") self.gridLayout_4.addWidget(self.buttonBox, 3, 1, 1, 1) self.retranslateUi(BoxSumUI) self.buttonBox.accepted.connect(BoxSumUI.accept) # type: ignore self.buttonBox.rejected.connect(BoxSumUI.reject) # type: ignore QtCore.QMetaObject.connectSlotsByName(BoxSumUI)
[docs] def retranslateUi(self, BoxSumUI): _translate = QtCore.QCoreApplication.translate BoxSumUI.setWindowTitle(_translate("BoxSumUI", "Box Sum")) self.groupBox.setTitle(_translate("BoxSumUI", "Box dimensions")) self.groupBox_4.setTitle(_translate("BoxSumUI", "Box size")) self.label.setToolTip(_translate("BoxSumUI", "<html><head/><body><p>Height of the box.</p></body></html>")) self.label.setText(_translate("BoxSumUI", "Height")) self.txtBoxHeight.setToolTip(_translate("BoxSumUI", "<html><head/><body><p>Height of the box.</p></body></html>")) self.label_10.setText(_translate("BoxSumUI", "<html><head/><body><p>Å<span style=\" vertical-align:super;\">-1</span></p></body></html>")) self.label_2.setToolTip(_translate("BoxSumUI", "<html><head/><body><p>Width of the box.</p></body></html>")) self.label_2.setText(_translate("BoxSumUI", "Width")) self.txtBoxWidth.setToolTip(_translate("BoxSumUI", "<html><head/><body><p>Width of the box.</p></body></html>")) self.label_11.setText(_translate("BoxSumUI", "<html><head/><body><p>Å<span style=\" vertical-align:super;\">-1</span></p></body></html>")) self.groupBox_2.setTitle(_translate("BoxSumUI", "Box center")) self.label_3.setToolTip(_translate("BoxSumUI", "<html><head/><body><p>X coordinate of the center of the box.</p></body></html>")) self.label_3.setText(_translate("BoxSumUI", "<html><head/><body><p>Q<span style=\" vertical-align:sub;\">X</span></p></body></html>")) self.txtCenterX.setToolTip(_translate("BoxSumUI", "<html><head/><body><p>X coordinate of the center of the box.</p></body></html>")) self.label_13.setText(_translate("BoxSumUI", "<html><head/><body><p>Å<span style=\" vertical-align:super;\">-1</span></p></body></html>")) self.label_4.setToolTip(_translate("BoxSumUI", "<html><head/><body><p>Y coordinate of the center of the box.</p></body></html>")) self.label_4.setText(_translate("BoxSumUI", "<html><head/><body><p>Q<span style=\" vertical-align:sub;\">Y</span></p></body></html>")) self.txtCenterY.setToolTip(_translate("BoxSumUI", "<html><head/><body><p>Y coordinate of the center of the box.</p></body></html>")) self.label_12.setText(_translate("BoxSumUI", "<html><head/><body><p>Å<span style=\" vertical-align:super;\">-1</span></p></body></html>")) self.groupBox_3.setTitle(_translate("BoxSumUI", "Box parameters")) self.label_5.setToolTip(_translate("BoxSumUI", "<html><head/><body><p>Average point count in selected region.</p></body></html>")) self.label_5.setText(_translate("BoxSumUI", "Avg:")) self.lblAvg.setToolTip(_translate("BoxSumUI", "<html><head/><body><p>Average point count in selected region.</p></body></html>")) self.lblAvg.setText(_translate("BoxSumUI", "TextLabel")) self.label_6.setToolTip(_translate("BoxSumUI", "<html><head/><body><p>Error of average point count in selected region.</p></body></html>")) self.label_6.setText(_translate("BoxSumUI", "Avg error:")) self.lblAvgErr.setToolTip(_translate("BoxSumUI", "<html><head/><body><p>Error of average point count in selected region.</p></body></html>")) self.lblAvgErr.setText(_translate("BoxSumUI", "TextLabel")) self.label_7.setToolTip(_translate("BoxSumUI", "<html><head/><body><p>Total number of points in the selected region.</p></body></html>")) self.label_7.setText(_translate("BoxSumUI", "Num. of points:")) self.lblNumPoints.setToolTip(_translate("BoxSumUI", "<html><head/><body><p>Total number of points in the selected region.</p></body></html>")) self.lblNumPoints.setText(_translate("BoxSumUI", "TextLabel")) self.label_8.setToolTip(_translate("BoxSumUI", "<html><head/><body><p>Sum of point intensities for all points in the selected region.</p></body></html>")) self.label_8.setText(_translate("BoxSumUI", "Sum:")) self.lblSum.setToolTip(_translate("BoxSumUI", "<html><head/><body><p>Sum of point intensities for all points in the selected region.</p></body></html>")) self.lblSum.setText(_translate("BoxSumUI", "TextLabel")) self.label_9.setToolTip(_translate("BoxSumUI", "<html><head/><body><p>Error of point intensity sum for all points in the selected region.</p></body></html>")) self.label_9.setText(_translate("BoxSumUI", "Sum error:")) self.lblSumErr.setToolTip(_translate("BoxSumUI", "<html><head/><body><p>Error of point intensity sum for all points in the selected region.</p></body></html>")) self.lblSumErr.setText(_translate("BoxSumUI", "TextLabel"))