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

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

# Form implementation generated from reading ui file '.\src\sas\qtgui\Perspectives\Fitting\UI\FittingWidgetUI.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_FittingWidgetUI(object):
[docs] def setupUi(self, FittingWidgetUI): FittingWidgetUI.setObjectName("FittingWidgetUI") FittingWidgetUI.resize(540, 600) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Ignored) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(FittingWidgetUI.sizePolicy().hasHeightForWidth()) FittingWidgetUI.setSizePolicy(sizePolicy) FittingWidgetUI.setMinimumSize(QtCore.QSize(445, 540)) self.gridLayout_5 = QtWidgets.QGridLayout(FittingWidgetUI) self.gridLayout_5.setObjectName("gridLayout_5") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.label = QtWidgets.QLabel(FittingWidgetUI) self.label.setObjectName("label") self.horizontalLayout.addWidget(self.label) self.gridLayout_3 = QtWidgets.QGridLayout() self.gridLayout_3.setObjectName("gridLayout_3") self.cbFileNames = QtWidgets.QComboBox(FittingWidgetUI) self.cbFileNames.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToContents) self.cbFileNames.setObjectName("cbFileNames") self.gridLayout_3.addWidget(self.cbFileNames, 0, 0, 1, 1) self.lblFilename = QtWidgets.QLabel(FittingWidgetUI) self.lblFilename.setObjectName("lblFilename") self.gridLayout_3.addWidget(self.lblFilename, 0, 1, 1, 1) self.horizontalLayout.addLayout(self.gridLayout_3) spacerItem = QtWidgets.QSpacerItem(459, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.gridLayout_5.addLayout(self.horizontalLayout, 0, 0, 1, 1) self.tabFitting = QtWidgets.QTabWidget(FittingWidgetUI) self.tabFitting.setObjectName("tabFitting") self.tab_3 = QtWidgets.QWidget() self.tab_3.setObjectName("tab_3") self.gridLayout_4 = QtWidgets.QGridLayout(self.tab_3) self.gridLayout_4.setContentsMargins(0, 0, 0, 0) self.gridLayout_4.setObjectName("gridLayout_4") self.groupBox_6 = QtWidgets.QGroupBox(self.tab_3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.groupBox_6.sizePolicy().hasHeightForWidth()) self.groupBox_6.setSizePolicy(sizePolicy) self.groupBox_6.setObjectName("groupBox_6") self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox_6) self.gridLayout_2.setObjectName("gridLayout_2") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.label_2 = QtWidgets.QLabel(self.groupBox_6) self.label_2.setObjectName("label_2") self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1) self.lblModel = QtWidgets.QLabel(self.groupBox_6) self.lblModel.setObjectName("lblModel") self.gridLayout.addWidget(self.lblModel, 0, 1, 1, 1) self.lblStructure = QtWidgets.QLabel(self.groupBox_6) self.lblStructure.setObjectName("lblStructure") self.gridLayout.addWidget(self.lblStructure, 0, 2, 1, 1) self.cbCategory = QtWidgets.QComboBox(self.groupBox_6) self.cbCategory.setObjectName("cbCategory") self.gridLayout.addWidget(self.cbCategory, 1, 0, 1, 1) self.cbModel = QtWidgets.QComboBox(self.groupBox_6) self.cbModel.setObjectName("cbModel") self.gridLayout.addWidget(self.cbModel, 1, 1, 1, 1) self.cbStructureFactor = QtWidgets.QComboBox(self.groupBox_6) self.cbStructureFactor.setObjectName("cbStructureFactor") self.gridLayout.addWidget(self.cbStructureFactor, 1, 2, 1, 1) self.gridLayout_2.addLayout(self.gridLayout, 0, 0, 1, 1) self.lstParams = QtWidgets.QTreeView(self.groupBox_6) self.lstParams.setStyleSheet("") self.lstParams.setEditTriggers(QtWidgets.QAbstractItemView.CurrentChanged|QtWidgets.QAbstractItemView.DoubleClicked|QtWidgets.QAbstractItemView.EditKeyPressed|QtWidgets.QAbstractItemView.SelectedClicked) self.lstParams.setSelectionMode(QtWidgets.QAbstractItemView.ExtendedSelection) self.lstParams.setObjectName("lstParams") self.gridLayout_2.addWidget(self.lstParams, 1, 0, 1, 1) self.gridLayout_4.addWidget(self.groupBox_6, 0, 0, 1, 4) self.groupBox_7 = QtWidgets.QGroupBox(self.tab_3) self.groupBox_7.setObjectName("groupBox_7") self.verticalLayout = QtWidgets.QVBoxLayout(self.groupBox_7) self.verticalLayout.setObjectName("verticalLayout") self.chkPolydispersity = QtWidgets.QCheckBox(self.groupBox_7) self.chkPolydispersity.setEnabled(True) self.chkPolydispersity.setCheckable(True) self.chkPolydispersity.setObjectName("chkPolydispersity") self.verticalLayout.addWidget(self.chkPolydispersity) self.chk2DView = QtWidgets.QCheckBox(self.groupBox_7) self.chk2DView.setEnabled(True) self.chk2DView.setCheckable(True) self.chk2DView.setObjectName("chk2DView") self.verticalLayout.addWidget(self.chk2DView) self.chkMagnetism = QtWidgets.QCheckBox(self.groupBox_7) self.chkMagnetism.setEnabled(True) self.chkMagnetism.setCheckable(True) self.chkMagnetism.setObjectName("chkMagnetism") self.verticalLayout.addWidget(self.chkMagnetism) self.chkChainFit = QtWidgets.QCheckBox(self.groupBox_7) self.chkChainFit.setEnabled(True) self.chkChainFit.setCheckable(True) self.chkChainFit.setObjectName("chkChainFit") self.verticalLayout.addWidget(self.chkChainFit) self.gridLayout_4.addWidget(self.groupBox_7, 1, 0, 1, 1) self.groupBox_8 = QtWidgets.QGroupBox(self.tab_3) self.groupBox_8.setObjectName("groupBox_8") self.gridLayout_17 = QtWidgets.QGridLayout(self.groupBox_8) self.gridLayout_17.setObjectName("gridLayout_17") self.gridLayout_8 = QtWidgets.QGridLayout() self.gridLayout_8.setObjectName("gridLayout_8") self.label_16 = QtWidgets.QLabel(self.groupBox_8) self.label_16.setObjectName("label_16") self.gridLayout_8.addWidget(self.label_16, 0, 0, 1, 1) self.lblMinRangeDef = QtWidgets.QLabel(self.groupBox_8) self.lblMinRangeDef.setObjectName("lblMinRangeDef") self.gridLayout_8.addWidget(self.lblMinRangeDef, 0, 1, 1, 1) self.label_17 = QtWidgets.QLabel(self.groupBox_8) self.label_17.setObjectName("label_17") self.gridLayout_8.addWidget(self.label_17, 0, 2, 1, 1) self.label_18 = QtWidgets.QLabel(self.groupBox_8) self.label_18.setObjectName("label_18") self.gridLayout_8.addWidget(self.label_18, 1, 0, 1, 1) self.lblMaxRangeDef = QtWidgets.QLabel(self.groupBox_8) self.lblMaxRangeDef.setObjectName("lblMaxRangeDef") self.gridLayout_8.addWidget(self.lblMaxRangeDef, 1, 1, 1, 1) self.label_19 = QtWidgets.QLabel(self.groupBox_8) self.label_19.setObjectName("label_19") self.gridLayout_8.addWidget(self.label_19, 1, 2, 1, 1) self.gridLayout_17.addLayout(self.gridLayout_8, 0, 0, 1, 2) self.label_20 = QtWidgets.QLabel(self.groupBox_8) self.label_20.setObjectName("label_20") self.gridLayout_17.addWidget(self.label_20, 1, 0, 1, 1) self.lblCurrentSmearing = QtWidgets.QLabel(self.groupBox_8) self.lblCurrentSmearing.setObjectName("lblCurrentSmearing") self.gridLayout_17.addWidget(self.lblCurrentSmearing, 1, 1, 1, 1) self.gridLayout_4.addWidget(self.groupBox_8, 1, 1, 1, 1) spacerItem1 = QtWidgets.QSpacerItem(207, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout_4.addItem(spacerItem1, 1, 2, 1, 1) self.groupBox_9 = QtWidgets.QGroupBox(self.tab_3) self.groupBox_9.setObjectName("groupBox_9") self.gridLayout_18 = QtWidgets.QGridLayout(self.groupBox_9) self.gridLayout_18.setObjectName("gridLayout_18") self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.label_23 = QtWidgets.QLabel(self.groupBox_9) self.label_23.setObjectName("label_23") self.horizontalLayout_2.addWidget(self.label_23) self.lblChi2Value = QtWidgets.QLabel(self.groupBox_9) self.lblChi2Value.setObjectName("lblChi2Value") self.horizontalLayout_2.addWidget(self.lblChi2Value) self.gridLayout_18.addLayout(self.horizontalLayout_2, 0, 0, 1, 1) self.gridLayout_4.addWidget(self.groupBox_9, 1, 3, 1, 1) self.tabFitting.addTab(self.tab_3, "") self.tabOptions = QtWidgets.QWidget() self.tabOptions.setObjectName("tabOptions") self.tabFitting.addTab(self.tabOptions, "") self.tabResolution = QtWidgets.QWidget() self.tabResolution.setObjectName("tabResolution") self.tabFitting.addTab(self.tabResolution, "") self.tab_4 = QtWidgets.QWidget() self.tab_4.setObjectName("tab_4") self.gridLayout_10 = QtWidgets.QGridLayout(self.tab_4) self.gridLayout_10.setContentsMargins(0, 0, 0, 0) self.gridLayout_10.setObjectName("gridLayout_10") self.groupBox_3 = QtWidgets.QGroupBox(self.tab_4) self.groupBox_3.setObjectName("groupBox_3") self.gridLayout_9 = QtWidgets.QGridLayout(self.groupBox_3) self.gridLayout_9.setObjectName("gridLayout_9") self.lstPoly = QtWidgets.QTableView(self.groupBox_3) self.lstPoly.setEditTriggers(QtWidgets.QAbstractItemView.AllEditTriggers) self.lstPoly.setAlternatingRowColors(True) self.lstPoly.setSelectionMode(QtWidgets.QAbstractItemView.ExtendedSelection) self.lstPoly.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows) self.lstPoly.setObjectName("lstPoly") self.gridLayout_9.addWidget(self.lstPoly, 0, 0, 1, 1) self.gridLayout_10.addWidget(self.groupBox_3, 0, 0, 1, 1) self.tabFitting.addTab(self.tab_4, "") self.tab_6 = QtWidgets.QWidget() self.tab_6.setObjectName("tab_6") self.gridLayout_22 = QtWidgets.QGridLayout(self.tab_6) self.gridLayout_22.setContentsMargins(0, 0, 0, 0) self.gridLayout_22.setObjectName("gridLayout_22") self.groupBox_10 = QtWidgets.QGroupBox(self.tab_6) self.groupBox_10.setObjectName("groupBox_10") self.gridLayout_21 = QtWidgets.QGridLayout(self.groupBox_10) self.gridLayout_21.setObjectName("gridLayout_21") spacerItem2 = QtWidgets.QSpacerItem(498, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout_21.addItem(spacerItem2, 1, 1, 1, 1) self.lstMagnetic = QtWidgets.QTableView(self.groupBox_10) self.lstMagnetic.setObjectName("lstMagnetic") self.gridLayout_21.addWidget(self.lstMagnetic, 0, 0, 1, 3) self.cmdMagneticDisplay = QtWidgets.QPushButton(self.groupBox_10) self.cmdMagneticDisplay.setObjectName("cmdMagneticDisplay") self.gridLayout_21.addWidget(self.cmdMagneticDisplay, 1, 2, 1, 1) self.gridLayout_22.addWidget(self.groupBox_10, 0, 0, 1, 1) self.tabFitting.addTab(self.tab_6, "") self.tabOrder = QtWidgets.QWidget() self.tabOrder.setObjectName("tabOrder") self.tabFitting.addTab(self.tabOrder, "") self.gridLayout_5.addWidget(self.tabFitting, 1, 0, 1, 1) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") spacerItem3 = QtWidgets.QSpacerItem(273, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem3) self.cmdPlot = QtWidgets.QPushButton(FittingWidgetUI) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmdPlot.sizePolicy().hasHeightForWidth()) self.cmdPlot.setSizePolicy(sizePolicy) self.cmdPlot.setMinimumSize(QtCore.QSize(93, 28)) self.cmdPlot.setObjectName("cmdPlot") self.horizontalLayout_3.addWidget(self.cmdPlot) self.cmdFit = QtWidgets.QPushButton(FittingWidgetUI) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmdFit.sizePolicy().hasHeightForWidth()) self.cmdFit.setSizePolicy(sizePolicy) self.cmdFit.setMinimumSize(QtCore.QSize(93, 28)) self.cmdFit.setObjectName("cmdFit") self.horizontalLayout_3.addWidget(self.cmdFit) self.cmdHelp = QtWidgets.QPushButton(FittingWidgetUI) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmdHelp.sizePolicy().hasHeightForWidth()) self.cmdHelp.setSizePolicy(sizePolicy) self.cmdHelp.setMinimumSize(QtCore.QSize(93, 28)) self.cmdHelp.setObjectName("cmdHelp") self.horizontalLayout_3.addWidget(self.cmdHelp) self.gridLayout_5.addLayout(self.horizontalLayout_3, 2, 0, 1, 1) self.retranslateUi(FittingWidgetUI) self.tabFitting.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(FittingWidgetUI)
[docs] def retranslateUi(self, FittingWidgetUI): _translate = QtCore.QCoreApplication.translate FittingWidgetUI.setWindowTitle(_translate("FittingWidgetUI", "FittingWidget")) self.label.setText(_translate("FittingWidgetUI", "File name:")) self.cbFileNames.setToolTip(_translate("FittingWidgetUI", "<html><head/><body><p>Choose a file to set initial fit parameters.</p></body></html>")) self.lblFilename.setText(_translate("FittingWidgetUI", "None")) self.groupBox_6.setTitle(_translate("FittingWidgetUI", "Model ")) self.label_2.setText(_translate("FittingWidgetUI", "Category")) self.lblModel.setText(_translate("FittingWidgetUI", "Model name")) self.lblStructure.setText(_translate("FittingWidgetUI", "Structure factor")) self.cbCategory.setToolTip(_translate("FittingWidgetUI", "Select a category")) self.cbModel.setToolTip(_translate("FittingWidgetUI", "Select a model")) self.cbStructureFactor.setToolTip(_translate("FittingWidgetUI", "Select a structure factor")) self.groupBox_7.setTitle(_translate("FittingWidgetUI", "Options ")) self.chkPolydispersity.setToolTip(_translate("FittingWidgetUI", "<html><head/><body><p>Switch on orientational polydispersity.</p></body></html>")) self.chkPolydispersity.setText(_translate("FittingWidgetUI", "Polydispersity")) self.chk2DView.setToolTip(_translate("FittingWidgetUI", "<html><head/><body><p>Switch on 2D view of the model.</p></body></html>")) self.chk2DView.setText(_translate("FittingWidgetUI", "2D view")) self.chkMagnetism.setToolTip(_translate("FittingWidgetUI", "<html><head/><body><p>Switch on magnetic scattering parameters.</p><p>This option is available only for 2D models.</p></body></html>")) self.chkMagnetism.setText(_translate("FittingWidgetUI", "Magnetism")) self.chkChainFit.setToolTip(_translate("FittingWidgetUI", "<html><head/><body><p>Switch on Chain Fitting (parameter reuse) for batch datasets.</p></body></html>")) self.chkChainFit.setText(_translate("FittingWidgetUI", "Chain fit")) self.groupBox_8.setTitle(_translate("FittingWidgetUI", "Fitting details ")) self.label_16.setText(_translate("FittingWidgetUI", "Min range")) self.lblMinRangeDef.setText(_translate("FittingWidgetUI", "0.005")) self.label_17.setText(_translate("FittingWidgetUI", "<html><head/><body><p>Å<span style=\" vertical-align:super;\">-1</span></p></body></html>")) self.label_18.setText(_translate("FittingWidgetUI", "Max range")) self.lblMaxRangeDef.setText(_translate("FittingWidgetUI", "0.1")) self.label_19.setText(_translate("FittingWidgetUI", "<html><head/><body><p>Å<span style=\" vertical-align:super;\">-1</span></p></body></html>")) self.label_20.setText(_translate("FittingWidgetUI", "Smearing:")) self.lblCurrentSmearing.setText(_translate("FittingWidgetUI", "None")) self.groupBox_9.setToolTip(_translate("FittingWidgetUI", "<html><head/><body><p>χ<span style=\" vertical-align:super;\">2</span>/DOF (DOF=N<span style=\" vertical-align:sub;\">pts</span>-N<span style=\" vertical-align:sub;\">par</span> fitted)</p></body></html>")) self.groupBox_9.setTitle(_translate("FittingWidgetUI", "Fitting error")) self.label_23.setText(_translate("FittingWidgetUI", "<html><head/><body><p><span style=\" font-weight:600;\">χ</span><span style=\" font-weight:600; vertical-align:super;\">2</span></p></body></html>")) self.lblChi2Value.setText(_translate("FittingWidgetUI", "<html><head/><body><p><span style=\" font-weight:600;\">0.01625</span></p></body></html>")) self.tabFitting.setTabText(self.tabFitting.indexOf(self.tab_3), _translate("FittingWidgetUI", "Model")) self.tabFitting.setTabText(self.tabFitting.indexOf(self.tabOptions), _translate("FittingWidgetUI", "Fit Options")) self.tabFitting.setTabText(self.tabFitting.indexOf(self.tabResolution), _translate("FittingWidgetUI", "Resolution")) self.groupBox_3.setTitle(_translate("FittingWidgetUI", "Polydispersity and Orientational Distribution")) self.tabFitting.setTabText(self.tabFitting.indexOf(self.tab_4), _translate("FittingWidgetUI", "Polydispersity")) self.groupBox_10.setTitle(_translate("FittingWidgetUI", "Polarisation/Magnetic Scattering ")) self.cmdMagneticDisplay.setText(_translate("FittingWidgetUI", "Display\n" "magnetic\n" "angles")) self.tabFitting.setTabText(self.tabFitting.indexOf(self.tab_6), _translate("FittingWidgetUI", "Magnetism")) self.tabFitting.setTabText(self.tabFitting.indexOf(self.tabOrder), _translate("FittingWidgetUI", "Order")) self.cmdPlot.setText(_translate("FittingWidgetUI", "Show Plot")) self.cmdFit.setText(_translate("FittingWidgetUI", "Fit")) self.cmdHelp.setText(_translate("FittingWidgetUI", "Help"))