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

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

# Form implementation generated from reading ui file '.\src\sas\qtgui\Calculators\UI\SldPanel.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!

from PyQt5 import QtCore, QtGui, QtWidgets

[docs]class Ui_SldPanel(object):
[docs] def setupUi(self, SldPanel): SldPanel.setObjectName("SldPanel") SldPanel.resize(490, 446) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(SldPanel.sizePolicy().hasHeightForWidth()) SldPanel.setSizePolicy(sizePolicy) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/res/ball.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off) SldPanel.setWindowIcon(icon) self.gridLayout_2 = QtWidgets.QGridLayout(SldPanel) self.gridLayout_2.setObjectName("gridLayout_2") spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout_2.addItem(spacerItem, 3, 0, 1, 1) self.groupBoxOutput = QtWidgets.QGroupBox(SldPanel) self.groupBoxOutput.setObjectName("groupBoxOutput") self.gridLayoutOutput = QtWidgets.QGridLayout(self.groupBoxOutput) self.gridLayoutOutput.setObjectName("gridLayoutOutput") self.editNeutronSldReal = QtWidgets.QLineEdit(self.groupBoxOutput) self.editNeutronSldReal.setEnabled(True) self.editNeutronSldReal.setReadOnly(True) self.editNeutronSldReal.setObjectName("editNeutronSldReal") self.gridLayoutOutput.addWidget(self.editNeutronSldReal, 0, 1, 1, 1) self.label_17 = QtWidgets.QLabel(self.groupBoxOutput) self.label_17.setObjectName("label_17") self.gridLayoutOutput.addWidget(self.label_17, 0, 0, 1, 1) self.label_3 = QtWidgets.QLabel(self.groupBoxOutput) self.label_3.setObjectName("label_3") self.gridLayoutOutput.addWidget(self.label_3, 5, 0, 1, 1) self.editNeutronIncXs = QtWidgets.QLineEdit(self.groupBoxOutput) self.editNeutronIncXs.setEnabled(True) self.editNeutronIncXs.setReadOnly(True) self.editNeutronIncXs.setObjectName("editNeutronIncXs") self.gridLayoutOutput.addWidget(self.editNeutronIncXs, 3, 1, 1, 1) self.label_21 = QtWidgets.QLabel(self.groupBoxOutput) self.label_21.setObjectName("label_21") self.gridLayoutOutput.addWidget(self.label_21, 3, 0, 1, 1) self.label_18 = QtWidgets.QLabel(self.groupBoxOutput) self.label_18.setObjectName("label_18") self.gridLayoutOutput.addWidget(self.label_18, 0, 2, 1, 1) self.label_20 = QtWidgets.QLabel(self.groupBoxOutput) self.label_20.setObjectName("label_20") self.gridLayoutOutput.addWidget(self.label_20, 1, 2, 1, 1) self.editNeutronSldImag = QtWidgets.QLineEdit(self.groupBoxOutput) self.editNeutronSldImag.setEnabled(True) self.editNeutronSldImag.setReadOnly(True) self.editNeutronSldImag.setObjectName("editNeutronSldImag") self.gridLayoutOutput.addWidget(self.editNeutronSldImag, 0, 3, 1, 1) self.label_4 = QtWidgets.QLabel(self.groupBoxOutput) self.label_4.setObjectName("label_4") self.gridLayoutOutput.addWidget(self.label_4, 5, 2, 1, 2) self.editNeutronLength = QtWidgets.QLineEdit(self.groupBoxOutput) self.editNeutronLength.setEnabled(True) self.editNeutronLength.setReadOnly(True) self.editNeutronLength.setObjectName("editNeutronLength") self.gridLayoutOutput.addWidget(self.editNeutronLength, 5, 1, 1, 1) self.label_24 = QtWidgets.QLabel(self.groupBoxOutput) self.label_24.setObjectName("label_24") self.gridLayoutOutput.addWidget(self.label_24, 4, 2, 1, 2) self.editNeutronAbsXs = QtWidgets.QLineEdit(self.groupBoxOutput) self.editNeutronAbsXs.setEnabled(True) self.editNeutronAbsXs.setReadOnly(True) self.editNeutronAbsXs.setObjectName("editNeutronAbsXs") self.gridLayoutOutput.addWidget(self.editNeutronAbsXs, 4, 1, 1, 1) self.label_23 = QtWidgets.QLabel(self.groupBoxOutput) self.label_23.setObjectName("label_23") self.gridLayoutOutput.addWidget(self.label_23, 4, 0, 1, 1) self.label_22 = QtWidgets.QLabel(self.groupBoxOutput) self.label_22.setObjectName("label_22") self.gridLayoutOutput.addWidget(self.label_22, 3, 2, 1, 2) self.label_6 = QtWidgets.QLabel(self.groupBoxOutput) self.label_6.setObjectName("label_6") self.gridLayoutOutput.addWidget(self.label_6, 1, 4, 1, 1) self.label_19 = QtWidgets.QLabel(self.groupBoxOutput) self.label_19.setObjectName("label_19") self.gridLayoutOutput.addWidget(self.label_19, 1, 0, 1, 1) self.label_5 = QtWidgets.QLabel(self.groupBoxOutput) self.label_5.setObjectName("label_5") self.gridLayoutOutput.addWidget(self.label_5, 0, 4, 1, 1) self.frame = QtWidgets.QFrame(self.groupBoxOutput) self.frame.setMinimumSize(QtCore.QSize(0, 5)) self.frame.setFrameShape(QtWidgets.QFrame.HLine) self.frame.setFrameShadow(QtWidgets.QFrame.Raised) self.frame.setLineWidth(1) self.frame.setMidLineWidth(0) self.frame.setObjectName("frame") self.gridLayoutOutput.addWidget(self.frame, 2, 0, 1, 5) self.editXraySldReal = QtWidgets.QLineEdit(self.groupBoxOutput) self.editXraySldReal.setEnabled(True) self.editXraySldReal.setReadOnly(True) self.editXraySldReal.setObjectName("editXraySldReal") self.gridLayoutOutput.addWidget(self.editXraySldReal, 1, 1, 1, 1) self.editXraySldImag = QtWidgets.QLineEdit(self.groupBoxOutput) self.editXraySldImag.setEnabled(True) self.editXraySldImag.setReadOnly(True) self.editXraySldImag.setObjectName("editXraySldImag") self.gridLayoutOutput.addWidget(self.editXraySldImag, 1, 3, 1, 1) self.gridLayout_2.addWidget(self.groupBoxOutput, 1, 0, 1, 1) self.groupBoxInput = QtWidgets.QGroupBox(SldPanel) self.groupBoxInput.setObjectName("groupBoxInput") self.gridLayoutInput = QtWidgets.QGridLayout(self.groupBoxInput) self.gridLayoutInput.setObjectName("gridLayoutInput") self.label_8 = QtWidgets.QLabel(self.groupBoxInput) self.label_8.setObjectName("label_8") self.gridLayoutInput.addWidget(self.label_8, 1, 0, 1, 1) self.label_16 = QtWidgets.QLabel(self.groupBoxInput) self.label_16.setObjectName("label_16") self.gridLayoutInput.addWidget(self.label_16, 1, 2, 1, 1) self.label_10 = QtWidgets.QLabel(self.groupBoxInput) self.label_10.setObjectName("label_10") self.gridLayoutInput.addWidget(self.label_10, 0, 2, 1, 1) self.editMolecularFormula = QtWidgets.QLineEdit(self.groupBoxInput) self.editMolecularFormula.setObjectName("editMolecularFormula") self.gridLayoutInput.addWidget(self.editMolecularFormula, 0, 1, 1, 1) self.editMassDensity = QtWidgets.QLineEdit(self.groupBoxInput) self.editMassDensity.setObjectName("editMassDensity") self.gridLayoutInput.addWidget(self.editMassDensity, 1, 1, 1, 1) self.label_12 = QtWidgets.QLabel(self.groupBoxInput) self.label_12.setObjectName("label_12") self.gridLayoutInput.addWidget(self.label_12, 2, 2, 1, 1) self.label_9 = QtWidgets.QLabel(self.groupBoxInput) self.label_9.setObjectName("label_9") self.gridLayoutInput.addWidget(self.label_9, 0, 0, 1, 1) self.label_11 = QtWidgets.QLabel(self.groupBoxInput) self.label_11.setObjectName("label_11") self.gridLayoutInput.addWidget(self.label_11, 2, 0, 1, 1) self.editNeutronWavelength = QtWidgets.QLineEdit(self.groupBoxInput) self.editNeutronWavelength.setStyleSheet("") self.editNeutronWavelength.setReadOnly(False) self.editNeutronWavelength.setObjectName("editNeutronWavelength") self.gridLayoutInput.addWidget(self.editNeutronWavelength, 2, 1, 1, 1) self.editXrayWavelength = QtWidgets.QLineEdit(self.groupBoxInput) self.editXrayWavelength.setObjectName("editXrayWavelength") self.gridLayoutInput.addWidget(self.editXrayWavelength, 3, 1, 1, 1) self.label_13 = QtWidgets.QLabel(self.groupBoxInput) self.label_13.setObjectName("label_13") self.gridLayoutInput.addWidget(self.label_13, 3, 0, 1, 1) self.label = QtWidgets.QLabel(self.groupBoxInput) self.label.setObjectName("label") self.gridLayoutInput.addWidget(self.label, 3, 2, 1, 1) self.gridLayout_2.addWidget(self.groupBoxInput, 0, 0, 1, 1) self.widget = QtWidgets.QWidget(SldPanel) self.widget.setMinimumSize(QtCore.QSize(466, 32)) self.widget.setObjectName("widget") self.gridLayout = QtWidgets.QGridLayout(self.widget) self.gridLayout.setContentsMargins(0, 0, 0, 0) self.gridLayout.setObjectName("gridLayout") self.recalculateButton = QtWidgets.QPushButton(self.widget) self.recalculateButton.setEnabled(True) self.recalculateButton.setObjectName("recalculateButton") self.gridLayout.addWidget(self.recalculateButton, 0, 0, 1, 1) spacerItem1 = QtWidgets.QSpacerItem(208, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem1, 0, 1, 1, 1) self.closeButton = QtWidgets.QPushButton(self.widget) self.closeButton.setObjectName("closeButton") self.gridLayout.addWidget(self.closeButton, 0, 2, 1, 1) self.helpButton = QtWidgets.QPushButton(self.widget) self.helpButton.setObjectName("helpButton") self.gridLayout.addWidget(self.helpButton, 0, 3, 1, 1) self.gridLayout_2.addWidget(self.widget, 4, 0, 1, 1) self.retranslateUi(SldPanel) QtCore.QMetaObject.connectSlotsByName(SldPanel) SldPanel.setTabOrder(self.editMolecularFormula, self.editMassDensity) SldPanel.setTabOrder(self.editMassDensity, self.editNeutronWavelength) SldPanel.setTabOrder(self.editNeutronWavelength, self.editNeutronSldReal) SldPanel.setTabOrder(self.editNeutronSldReal, self.editNeutronSldImag) SldPanel.setTabOrder(self.editNeutronSldImag, self.editNeutronIncXs) SldPanel.setTabOrder(self.editNeutronIncXs, self.editNeutronAbsXs) SldPanel.setTabOrder(self.editNeutronAbsXs, self.editNeutronLength)
[docs] def retranslateUi(self, SldPanel): _translate = QtCore.QCoreApplication.translate SldPanel.setWindowTitle(_translate("SldPanel", "SLD Calculator")) self.groupBoxOutput.setTitle(_translate("SldPanel", "Output")) self.label_17.setText(_translate("SldPanel", "Neutron SLD")) self.label_3.setText(_translate("SldPanel", "Neutron 1/e length")) self.label_21.setText(_translate("SldPanel", "Neutron Inc. Xs")) self.label_18.setText(_translate("SldPanel", "-i")) self.label_20.setText(_translate("SldPanel", "-i")) self.label_4.setText(_translate("SldPanel", "cm")) self.label_24.setText(_translate("SldPanel", "1/cm")) self.label_23.setText(_translate("SldPanel", "Neutron Abs. Xs")) self.label_22.setText(_translate("SldPanel", "1/cm")) self.label_6.setText(_translate("SldPanel", "1/Ų")) self.label_19.setText(_translate("SldPanel", "X-Ray SLD")) self.label_5.setText(_translate("SldPanel", "1/Ų")) self.groupBoxInput.setTitle(_translate("SldPanel", "Input")) self.label_8.setText(_translate("SldPanel", "Mass Density")) self.label_16.setText(_translate("SldPanel", "g/cm³")) self.label_10.setText(_translate("SldPanel", "e.g. H2O")) self.label_12.setText(_translate("SldPanel", "Å")) self.label_9.setText(_translate("SldPanel", "Molecular Formula")) self.label_11.setText(_translate("SldPanel", "Neutron Wavelength")) self.label_13.setText(_translate("SldPanel", "X-Ray Wavelength")) self.label.setText(_translate("SldPanel", "Å")) self.recalculateButton.setText(_translate("SldPanel", "Recalculate")) self.closeButton.setText(_translate("SldPanel", "Close")) self.helpButton.setText(_translate("SldPanel", "Help"))