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

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

# Form implementation generated from reading ui file '.\src\sas\qtgui\Plotting\UI\SlicerParametersUI.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_SlicerParametersUI(object):
[docs] def setupUi(self, SlicerParametersUI): SlicerParametersUI.setObjectName("SlicerParametersUI") SlicerParametersUI.resize(362, 427) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(SlicerParametersUI.sizePolicy().hasHeightForWidth()) SlicerParametersUI.setSizePolicy(sizePolicy) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/res/ball.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off) SlicerParametersUI.setWindowIcon(icon) self.gridLayout_5 = QtWidgets.QGridLayout(SlicerParametersUI) self.gridLayout_5.setObjectName("gridLayout_5") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.cmdApply = QtWidgets.QPushButton(SlicerParametersUI) self.cmdApply.setObjectName("cmdApply") self.horizontalLayout.addWidget(self.cmdApply) spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.cmdClose = QtWidgets.QPushButton(SlicerParametersUI) self.cmdClose.setObjectName("cmdClose") self.horizontalLayout.addWidget(self.cmdClose) self.cmdHelp = QtWidgets.QPushButton(SlicerParametersUI) self.cmdHelp.setObjectName("cmdHelp") self.horizontalLayout.addWidget(self.cmdHelp) self.gridLayout_5.addLayout(self.horizontalLayout, 1, 0, 1, 1) self.tabWidget = QtWidgets.QTabWidget(SlicerParametersUI) self.tabWidget.setObjectName("tabWidget") self.tab = QtWidgets.QWidget() self.tab.setObjectName("tab") self.gridLayout_2 = QtWidgets.QGridLayout(self.tab) self.gridLayout_2.setObjectName("gridLayout_2") self.groupBox = QtWidgets.QGroupBox(self.tab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, 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 = QtWidgets.QGridLayout(self.groupBox) self.gridLayout.setObjectName("gridLayout") self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.label = QtWidgets.QLabel(self.groupBox) self.label.setObjectName("label") self.horizontalLayout_2.addWidget(self.label) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem1) self.cbSlicer = QtWidgets.QComboBox(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cbSlicer.sizePolicy().hasHeightForWidth()) self.cbSlicer.setSizePolicy(sizePolicy) self.cbSlicer.setObjectName("cbSlicer") self.cbSlicer.addItem("") self.cbSlicer.addItem("") self.cbSlicer.addItem("") self.cbSlicer.addItem("") self.cbSlicer.addItem("") self.horizontalLayout_2.addWidget(self.cbSlicer) self.gridLayout.addLayout(self.horizontalLayout_2, 1, 0, 1, 1) self.lstParams = QtWidgets.QTableView(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lstParams.sizePolicy().hasHeightForWidth()) self.lstParams.setSizePolicy(sizePolicy) self.lstParams.setObjectName("lstParams") self.gridLayout.addWidget(self.lstParams, 0, 0, 1, 1) self.gridLayout_2.addWidget(self.groupBox, 0, 0, 1, 1) self.tabWidget.addTab(self.tab, "") self.tab_2 = QtWidgets.QWidget() self.tab_2.setObjectName("tab_2") self.gridLayout_4 = QtWidgets.QGridLayout(self.tab_2) self.gridLayout_4.setObjectName("gridLayout_4") self.groupBox_2 = QtWidgets.QGroupBox(self.tab_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, 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_6 = QtWidgets.QGridLayout(self.groupBox_2) self.gridLayout_6.setObjectName("gridLayout_6") self.lstPlots = QtWidgets.QListWidget(self.groupBox_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lstPlots.sizePolicy().hasHeightForWidth()) self.lstPlots.setSizePolicy(sizePolicy) self.lstPlots.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers) self.lstPlots.setSelectionMode(QtWidgets.QAbstractItemView.ExtendedSelection) self.lstPlots.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows) self.lstPlots.setObjectName("lstPlots") self.gridLayout_6.addWidget(self.lstPlots, 0, 0, 1, 1) self.cbSave1DPlots = QtWidgets.QCheckBox(self.groupBox_2) self.cbSave1DPlots.setObjectName("cbSave1DPlots") self.gridLayout_6.addWidget(self.cbSave1DPlots, 1, 0, 1, 1) self.gridLayout_3 = QtWidgets.QGridLayout() self.gridLayout_3.setObjectName("gridLayout_3") self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.label_2 = QtWidgets.QLabel(self.groupBox_2) self.label_2.setObjectName("label_2") self.horizontalLayout_3.addWidget(self.label_2) self.txtLocation = QtWidgets.QLineEdit(self.groupBox_2) self.txtLocation.setObjectName("txtLocation") self.horizontalLayout_3.addWidget(self.txtLocation) self.cmdFiles = QtWidgets.QPushButton(self.groupBox_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cmdFiles.sizePolicy().hasHeightForWidth()) self.cmdFiles.setSizePolicy(sizePolicy) self.cmdFiles.setMaximumSize(QtCore.QSize(20, 21)) self.cmdFiles.setObjectName("cmdFiles") self.horizontalLayout_3.addWidget(self.cmdFiles) self.label_4 = QtWidgets.QLabel(self.groupBox_2) self.label_4.setObjectName("label_4") self.horizontalLayout_3.addWidget(self.label_4) self.cbSaveExt = QtWidgets.QComboBox(self.groupBox_2) self.cbSaveExt.setObjectName("cbSaveExt") self.cbSaveExt.addItem("") self.cbSaveExt.addItem("") self.cbSaveExt.addItem("") self.horizontalLayout_3.addWidget(self.cbSaveExt) self.gridLayout_3.addLayout(self.horizontalLayout_3, 0, 0, 1, 1) self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.lblExtension = QtWidgets.QLabel(self.groupBox_2) self.lblExtension.setObjectName("lblExtension") self.horizontalLayout_5.addWidget(self.lblExtension) self.txtExtension = QtWidgets.QLineEdit(self.groupBox_2) self.txtExtension.setObjectName("txtExtension") self.horizontalLayout_5.addWidget(self.txtExtension) self.gridLayout_3.addLayout(self.horizontalLayout_5, 1, 0, 1, 1) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.label_3 = QtWidgets.QLabel(self.groupBox_2) self.label_3.setObjectName("label_3") self.horizontalLayout_4.addWidget(self.label_3) self.cbFitOptions = QtWidgets.QComboBox(self.groupBox_2) self.cbFitOptions.setObjectName("cbFitOptions") self.cbFitOptions.addItem("") self.cbFitOptions.addItem("") self.cbFitOptions.addItem("") self.horizontalLayout_4.addWidget(self.cbFitOptions) self.gridLayout_3.addLayout(self.horizontalLayout_4, 2, 0, 1, 1) self.gridLayout_6.addLayout(self.gridLayout_3, 2, 0, 1, 1) self.gridLayout_4.addWidget(self.groupBox_2, 0, 0, 1, 1) self.tabWidget.addTab(self.tab_2, "") self.gridLayout_5.addWidget(self.tabWidget, 0, 0, 1, 1) self.retranslateUi(SlicerParametersUI) self.tabWidget.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(SlicerParametersUI)
[docs] def retranslateUi(self, SlicerParametersUI): _translate = QtCore.QCoreApplication.translate SlicerParametersUI.setWindowTitle(_translate("SlicerParametersUI", "Slicer Parameters")) self.cmdApply.setToolTip(_translate("SlicerParametersUI", "Apply Slicer to Selected Plots")) self.cmdApply.setText(_translate("SlicerParametersUI", "Apply")) self.cmdClose.setToolTip(_translate("SlicerParametersUI", "Close the dialog")) self.cmdClose.setText(_translate("SlicerParametersUI", "Close")) self.cmdHelp.setText(_translate("SlicerParametersUI", "Help")) self.groupBox.setTitle(_translate("SlicerParametersUI", "Slicer Parameters ")) self.label.setText(_translate("SlicerParametersUI", "Slicer type:")) self.cbSlicer.setItemText(0, _translate("SlicerParametersUI", "None")) self.cbSlicer.setItemText(1, _translate("SlicerParametersUI", "Sector Interactor")) self.cbSlicer.setItemText(2, _translate("SlicerParametersUI", "Annulus Interactor")) self.cbSlicer.setItemText(3, _translate("SlicerParametersUI", "Box Interactor X")) self.cbSlicer.setItemText(4, _translate("SlicerParametersUI", "Box Interactor Y")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("SlicerParametersUI", "Slicer")) self.groupBox_2.setTitle(_translate("SlicerParametersUI", "Batch Slicing Options ")) self.cbSave1DPlots.setText(_translate("SlicerParametersUI", "Auto save generated 1D plots")) self.label_2.setText(_translate("SlicerParametersUI", "Files saved in:")) self.txtLocation.setToolTip(_translate("SlicerParametersUI", "<html><head/><body><p><br/></p></body></html>")) self.cmdFiles.setText(_translate("SlicerParametersUI", "...")) self.label_4.setText(_translate("SlicerParametersUI", "as ")) self.cbSaveExt.setItemText(0, _translate("SlicerParametersUI", ".txt")) self.cbSaveExt.setItemText(1, _translate("SlicerParametersUI", ".xml")) self.cbSaveExt.setItemText(2, _translate("SlicerParametersUI", ".h5")) self.lblExtension.setText(_translate("SlicerParametersUI", "Append text:")) self.txtExtension.setToolTip(_translate("SlicerParametersUI", "<html><head/><body><p>Files will be saved as &lt;SlicerType&gt;&lt;FileName&gt;&lt;AppendText&gt;.txt</p></body></html>")) self.label_3.setText(_translate("SlicerParametersUI", "Fitting Options:")) self.cbFitOptions.setItemText(0, _translate("SlicerParametersUI", "No fitting")) self.cbFitOptions.setItemText(1, _translate("SlicerParametersUI", "Fitting")) self.cbFitOptions.setItemText(2, _translate("SlicerParametersUI", "Batch fitting")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("SlicerParametersUI", "Batch Slicing"))