Source code for sas.qtgui.Perspectives.Fitting.UI.OptionsWidgetUI

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

# Form implementation generated from reading ui file './src/sas/qtgui/Perspectives/Fitting/UI/OptionsWidgetUI.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_tabOptions(object):
[docs] def setupUi(self, tabOptions): tabOptions.setObjectName("tabOptions") tabOptions.resize(522, 455) self.gridLayout_23 = QtWidgets.QGridLayout(tabOptions) self.gridLayout_23.setObjectName("gridLayout_23") self.groupBox_4 = QtWidgets.QGroupBox(tabOptions) self.groupBox_4.setObjectName("groupBox_4") self.gridLayout_11 = QtWidgets.QGridLayout(self.groupBox_4) self.gridLayout_11.setObjectName("gridLayout_11") self.gridLayout_13 = QtWidgets.QGridLayout() self.gridLayout_13.setObjectName("gridLayout_13") self.label_9 = QtWidgets.QLabel(self.groupBox_4) self.label_9.setObjectName("label_9") self.gridLayout_13.addWidget(self.label_9, 0, 0, 1, 1) self.txtMinRange = QtWidgets.QLineEdit(self.groupBox_4) self.txtMinRange.setMinimumSize(QtCore.QSize(80, 0)) self.txtMinRange.setObjectName("txtMinRange") self.gridLayout_13.addWidget(self.txtMinRange, 0, 1, 1, 1) self.label_13 = QtWidgets.QLabel(self.groupBox_4) self.label_13.setObjectName("label_13") self.gridLayout_13.addWidget(self.label_13, 0, 2, 1, 1) self.label_14 = QtWidgets.QLabel(self.groupBox_4) self.label_14.setObjectName("label_14") self.gridLayout_13.addWidget(self.label_14, 1, 0, 1, 1) self.txtMaxRange = QtWidgets.QLineEdit(self.groupBox_4) self.txtMaxRange.setMinimumSize(QtCore.QSize(80, 0)) self.txtMaxRange.setObjectName("txtMaxRange") self.gridLayout_13.addWidget(self.txtMaxRange, 1, 1, 1, 1) self.label_15 = QtWidgets.QLabel(self.groupBox_4) self.label_15.setObjectName("label_15") self.gridLayout_13.addWidget(self.label_15, 1, 2, 1, 1) self.gridLayout_11.addLayout(self.gridLayout_13, 0, 0, 2, 1) spacerItem = QtWidgets.QSpacerItem(217, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout_11.addItem(spacerItem, 0, 1, 2, 1) self.cmdReset = QtWidgets.QPushButton(self.groupBox_4) self.cmdReset.setObjectName("cmdReset") self.gridLayout_11.addWidget(self.cmdReset, 0, 2, 1, 1) self.cmdMaskEdit = QtWidgets.QPushButton(self.groupBox_4) self.cmdMaskEdit.setObjectName("cmdMaskEdit") self.gridLayout_11.addWidget(self.cmdMaskEdit, 1, 2, 1, 1) self.gridLayout_23.addWidget(self.groupBox_4, 0, 0, 1, 1) self.groupBox_5 = QtWidgets.QGroupBox(tabOptions) self.groupBox_5.setObjectName("groupBox_5") self.gridLayout_14 = QtWidgets.QGridLayout(self.groupBox_5) self.gridLayout_14.setObjectName("gridLayout_14") self.gridLayout_15 = QtWidgets.QGridLayout() self.gridLayout_15.setObjectName("gridLayout_15") spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout_15.addItem(spacerItem1, 1, 2, 1, 1) self.txtNpts = QtWidgets.QLineEdit(self.groupBox_5) self.txtNpts.setObjectName("txtNpts") self.gridLayout_15.addWidget(self.txtNpts, 0, 1, 1, 1) self.label_22 = QtWidgets.QLabel(self.groupBox_5) self.label_22.setObjectName("label_22") self.gridLayout_15.addWidget(self.label_22, 1, 0, 1, 1) self.txtNptsFit = QtWidgets.QLineEdit(self.groupBox_5) self.txtNptsFit.setReadOnly(True) self.txtNptsFit.setObjectName("txtNptsFit") self.gridLayout_15.addWidget(self.txtNptsFit, 1, 1, 1, 1) self.chkLogData = QtWidgets.QCheckBox(self.groupBox_5) self.chkLogData.setObjectName("chkLogData") self.gridLayout_15.addWidget(self.chkLogData, 0, 2, 1, 1) self.label_21 = QtWidgets.QLabel(self.groupBox_5) self.label_21.setObjectName("label_21") self.gridLayout_15.addWidget(self.label_21, 0, 0, 1, 1) self.gridLayout_14.addLayout(self.gridLayout_15, 0, 0, 1, 1) self.gridLayout_23.addWidget(self.groupBox_5, 1, 0, 1, 1) self.boxWeighting = QtWidgets.QGroupBox(tabOptions) self.boxWeighting.setObjectName("boxWeighting") self.gridLayout_20 = QtWidgets.QGridLayout(self.boxWeighting) self.gridLayout_20.setObjectName("gridLayout_20") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.rbWeighting1 = QtWidgets.QRadioButton(self.boxWeighting) self.rbWeighting1.setChecked(True) self.rbWeighting1.setObjectName("rbWeighting1") self.verticalLayout.addWidget(self.rbWeighting1) self.rbWeighting2 = QtWidgets.QRadioButton(self.boxWeighting) self.rbWeighting2.setObjectName("rbWeighting2") self.verticalLayout.addWidget(self.rbWeighting2) self.rbWeighting3 = QtWidgets.QRadioButton(self.boxWeighting) self.rbWeighting3.setObjectName("rbWeighting3") self.verticalLayout.addWidget(self.rbWeighting3) self.rbWeighting4 = QtWidgets.QRadioButton(self.boxWeighting) self.rbWeighting4.setObjectName("rbWeighting4") self.verticalLayout.addWidget(self.rbWeighting4) self.gridLayout_20.addLayout(self.verticalLayout, 0, 0, 1, 1) self.gridLayout_23.addWidget(self.boxWeighting, 2, 0, 1, 1) spacerItem2 = QtWidgets.QSpacerItem(20, 312, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout_23.addItem(spacerItem2, 3, 0, 1, 1) self.retranslateUi(tabOptions) QtCore.QMetaObject.connectSlotsByName(tabOptions)
[docs] def retranslateUi(self, tabOptions): _translate = QtCore.QCoreApplication.translate tabOptions.setWindowTitle(_translate("tabOptions", "Fit Options")) self.groupBox_4.setTitle(_translate("tabOptions", "Fitting range")) self.label_9.setText(_translate("tabOptions", "Min range")) self.txtMinRange.setToolTip(_translate("tabOptions", "<html><head/><body><p>Minimum value of Q.</p></body></html>")) self.label_13.setText(_translate("tabOptions", "<html><head/><body><p>Å<span style=\" vertical-align:super;\">-1</span></p></body></html>")) self.label_14.setText(_translate("tabOptions", "Max range")) self.txtMaxRange.setToolTip(_translate("tabOptions", "<html><head/><body><p>Maximum value of Q.</p></body></html>")) self.label_15.setText(_translate("tabOptions", "<html><head/><body><p>Å<span style=\" vertical-align:super;\">-1</span></p></body></html>")) self.cmdReset.setToolTip(_translate("tabOptions", "<html><head/><body><p>Reset the Q range to the default.</p></body></html>")) self.cmdReset.setText(_translate("tabOptions", "Reset")) self.cmdMaskEdit.setText(_translate("tabOptions", "Mask Editor")) self.groupBox_5.setTitle(_translate("tabOptions", "Data points")) self.txtNpts.setToolTip(_translate("tabOptions", "<html><head/><body><p>Total number of data points.</p></body></html>")) self.label_22.setText(_translate("tabOptions", "Npts(Fit)")) self.txtNptsFit.setToolTip(_translate("tabOptions", "<html><head/><body><p>Number of points selected for fitting.</p></body></html>")) self.chkLogData.setToolTip(_translate("tabOptions", "<html><head/><body><p>Check to use log spaced points.</p></body></html>")) self.chkLogData.setText(_translate("tabOptions", "Log spaced points")) self.label_21.setText(_translate("tabOptions", "Npts")) self.boxWeighting.setTitle(_translate("tabOptions", "Weighting")) self.rbWeighting1.setText(_translate("tabOptions", "None")) self.rbWeighting2.setText(_translate("tabOptions", "Use dI Data")) self.rbWeighting3.setText(_translate("tabOptions", "Use |sqrt(I Data)|")) self.rbWeighting4.setText(_translate("tabOptions", "Use |I Data|"))