Source code for sas.qtgui.MainWindow.UI.TabbedFileLoadUI

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

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

from PyQt5 import QtCore, QtGui, QtWidgets


[docs]class Ui_DataLoadWidget(object):
[docs] def setupUi(self, DataLoadWidget): DataLoadWidget.setObjectName("DataLoadWidget") DataLoadWidget.resize(481, 620) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/res/ball.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off) DataLoadWidget.setWindowIcon(icon) self.dataTab = QtWidgets.QWidget() self.dataTab.setObjectName("dataTab") self.gridLayout_6 = QtWidgets.QGridLayout(self.dataTab) self.gridLayout_6.setObjectName("gridLayout_6") self.label = QtWidgets.QLabel(self.dataTab) self.label.setObjectName("label") self.gridLayout_6.addWidget(self.label, 0, 0, 1, 1) self.cbSelect = QtWidgets.QComboBox(self.dataTab) self.cbSelect.setObjectName("cbSelect") self.cbSelect.addItem("") self.cbSelect.addItem("") self.cbSelect.addItem("") self.cbSelect.addItem("") self.cbSelect.addItem("") self.cbSelect.addItem("") self.gridLayout_6.addWidget(self.cbSelect, 1, 0, 1, 1) spacerItem = QtWidgets.QSpacerItem(352, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout_6.addItem(spacerItem, 1, 1, 1, 2) self.groupBox = QtWidgets.QGroupBox(self.dataTab) self.groupBox.setObjectName("groupBox") self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox) self.gridLayout_2.setObjectName("gridLayout_2") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.treeView = QtWidgets.QTreeView(self.groupBox) self.treeView.setObjectName("treeView") self.treeView.header().setVisible(False) self.gridLayout.addWidget(self.treeView, 0, 0, 1, 4) self.cmdLoad = QtWidgets.QPushButton(self.groupBox) self.cmdLoad.setObjectName("cmdLoad") self.gridLayout.addWidget(self.cmdLoad, 1, 0, 1, 1) self.cmdFreeze = QtWidgets.QPushButton(self.groupBox) self.cmdFreeze.setObjectName("cmdFreeze") self.gridLayout.addWidget(self.cmdFreeze, 1, 1, 1, 1) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem1, 1, 2, 1, 1) self.cmdDeleteData = QtWidgets.QPushButton(self.groupBox) self.cmdDeleteData.setObjectName("cmdDeleteData") self.gridLayout.addWidget(self.cmdDeleteData, 1, 3, 1, 1) self.gridLayout_2.addLayout(self.gridLayout, 0, 0, 1, 1) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.cmdSendTo = QtWidgets.QPushButton(self.groupBox) self.cmdSendTo.setObjectName("cmdSendTo") self.horizontalLayout.addWidget(self.cmdSendTo) self.cbFitting = QtWidgets.QComboBox(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cbFitting.sizePolicy().hasHeightForWidth()) self.cbFitting.setSizePolicy(sizePolicy) self.cbFitting.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToContents) self.cbFitting.setObjectName("cbFitting") self.cbFitting.addItem("") self.cbFitting.addItem("") self.cbFitting.addItem("") self.horizontalLayout.addWidget(self.cbFitting) self.chkBatch = QtWidgets.QCheckBox(self.groupBox) self.chkBatch.setObjectName("chkBatch") self.horizontalLayout.addWidget(self.chkBatch) spacerItem2 = QtWidgets.QSpacerItem(197, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem2) self.gridLayout_2.addLayout(self.horizontalLayout, 1, 0, 1, 1) self.gridLayout_6.addWidget(self.groupBox, 2, 0, 1, 3) self.groupBox_3 = QtWidgets.QGroupBox(self.dataTab) self.groupBox_3.setObjectName("groupBox_3") self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox_3) self.gridLayout_3.setObjectName("gridLayout_3") self.cmdNew = QtWidgets.QPushButton(self.groupBox_3) self.cmdNew.setObjectName("cmdNew") self.gridLayout_3.addWidget(self.cmdNew, 0, 0, 1, 1) self.cmdAppend = QtWidgets.QPushButton(self.groupBox_3) self.cmdAppend.setObjectName("cmdAppend") self.gridLayout_3.addWidget(self.cmdAppend, 1, 0, 1, 1) self.cbgraph = QtWidgets.QComboBox(self.groupBox_3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cbgraph.sizePolicy().hasHeightForWidth()) self.cbgraph.setSizePolicy(sizePolicy) self.cbgraph.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToContents) self.cbgraph.setObjectName("cbgraph") self.cbgraph.addItem("") self.gridLayout_3.addWidget(self.cbgraph, 1, 1, 1, 1) self.gridLayout_6.addWidget(self.groupBox_3, 3, 0, 1, 2) spacerItem3 = QtWidgets.QSpacerItem(287, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout_6.addItem(spacerItem3, 3, 2, 1, 1) DataLoadWidget.addTab(self.dataTab, "") self.theoryTab = QtWidgets.QWidget() self.theoryTab.setObjectName("theoryTab") self.gridLayout_7 = QtWidgets.QGridLayout(self.theoryTab) self.gridLayout_7.setObjectName("gridLayout_7") self.groupBox_2 = QtWidgets.QGroupBox(self.theoryTab) self.groupBox_2.setObjectName("groupBox_2") self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox_2) self.gridLayout_4.setObjectName("gridLayout_4") self.cmdDeleteTheory = QtWidgets.QPushButton(self.groupBox_2) self.cmdDeleteTheory.setObjectName("cmdDeleteTheory") self.gridLayout_4.addWidget(self.cmdDeleteTheory, 1, 0, 1, 1) spacerItem4 = QtWidgets.QSpacerItem(353, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout_4.addItem(spacerItem4, 1, 1, 1, 1) self.freezeView = QtWidgets.QTreeView(self.groupBox_2) self.freezeView.setObjectName("freezeView") self.freezeView.header().setVisible(False) self.gridLayout_4.addWidget(self.freezeView, 0, 0, 1, 2) self.gridLayout_7.addWidget(self.groupBox_2, 0, 0, 1, 2) self.groupBox_4 = QtWidgets.QGroupBox(self.theoryTab) self.groupBox_4.setObjectName("groupBox_4") self.gridLayout_5 = QtWidgets.QGridLayout(self.groupBox_4) self.gridLayout_5.setObjectName("gridLayout_5") self.cmdNew_2 = QtWidgets.QPushButton(self.groupBox_4) self.cmdNew_2.setObjectName("cmdNew_2") self.gridLayout_5.addWidget(self.cmdNew_2, 0, 0, 1, 1) self.cmdAppend_2 = QtWidgets.QPushButton(self.groupBox_4) self.cmdAppend_2.setObjectName("cmdAppend_2") self.gridLayout_5.addWidget(self.cmdAppend_2, 1, 0, 1, 1) self.cbgraph_2 = QtWidgets.QComboBox(self.groupBox_4) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cbgraph_2.sizePolicy().hasHeightForWidth()) self.cbgraph_2.setSizePolicy(sizePolicy) self.cbgraph_2.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToContents) self.cbgraph_2.setObjectName("cbgraph_2") self.cbgraph_2.addItem("") self.gridLayout_5.addWidget(self.cbgraph_2, 1, 1, 1, 1) self.gridLayout_7.addWidget(self.groupBox_4, 1, 0, 1, 1) spacerItem5 = QtWidgets.QSpacerItem(287, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout_7.addItem(spacerItem5, 1, 1, 1, 1) DataLoadWidget.addTab(self.theoryTab, "") self.retranslateUi(DataLoadWidget) DataLoadWidget.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(DataLoadWidget)
[docs] def retranslateUi(self, DataLoadWidget): _translate = QtCore.QCoreApplication.translate DataLoadWidget.setWindowTitle(_translate("DataLoadWidget", "TabWidget")) self.label.setText(_translate("DataLoadWidget", "Selection Options")) self.cbSelect.setItemText(0, _translate("DataLoadWidget", "Select all")) self.cbSelect.setItemText(1, _translate("DataLoadWidget", "Unselect all")) self.cbSelect.setItemText(2, _translate("DataLoadWidget", "Select all 1D")) self.cbSelect.setItemText(3, _translate("DataLoadWidget", "Unselect all 1D")) self.cbSelect.setItemText(4, _translate("DataLoadWidget", "Select all 2D")) self.cbSelect.setItemText(5, _translate("DataLoadWidget", "Unselect all 2D")) self.groupBox.setTitle(_translate("DataLoadWidget", "Data")) self.cmdLoad.setText(_translate("DataLoadWidget", "Load")) self.cmdFreeze.setText(_translate("DataLoadWidget", "Freeze")) self.cmdDeleteData.setText(_translate("DataLoadWidget", "Delete")) self.cmdSendTo.setText(_translate("DataLoadWidget", "Send to")) self.cbFitting.setItemText(0, _translate("DataLoadWidget", "Fitting")) self.cbFitting.setItemText(1, _translate("DataLoadWidget", "Pr inversion")) self.cbFitting.setItemText(2, _translate("DataLoadWidget", "Invariant")) self.chkBatch.setText(_translate("DataLoadWidget", "Batch mode")) self.groupBox_3.setTitle(_translate("DataLoadWidget", "Plot")) self.cmdNew.setText(_translate("DataLoadWidget", "New")) self.cmdAppend.setText(_translate("DataLoadWidget", "Append to")) self.cbgraph.setItemText(0, _translate("DataLoadWidget", "Graph1")) DataLoadWidget.setTabText(DataLoadWidget.indexOf(self.dataTab), _translate("DataLoadWidget", "Data")) self.groupBox_2.setTitle(_translate("DataLoadWidget", "Theory")) self.cmdDeleteTheory.setText(_translate("DataLoadWidget", "Delete")) self.groupBox_4.setTitle(_translate("DataLoadWidget", "Plot")) self.cmdNew_2.setText(_translate("DataLoadWidget", "New")) self.cmdAppend_2.setText(_translate("DataLoadWidget", "Append to")) self.cbgraph_2.setItemText(0, _translate("DataLoadWidget", "Graph1")) DataLoadWidget.setTabText(DataLoadWidget.indexOf(self.theoryTab), _translate("DataLoadWidget", "Theory"))