Source code for sas.qtgui.MainWindow.UI.DataExplorerUI
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file './src/sas/qtgui/MainWindow/UI/DataExplorerUI.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_DataLoadWidget(object):
[docs] def setupUi(self, DataLoadWidget):
DataLoadWidget.setObjectName("DataLoadWidget")
DataLoadWidget.resize(501, 630)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(5)
sizePolicy.setHeightForWidth(DataLoadWidget.sizePolicy().hasHeightForWidth())
DataLoadWidget.setSizePolicy(sizePolicy)
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_11 = QtWidgets.QGridLayout(self.dataTab)
self.gridLayout_11.setContentsMargins(0, 0, 0, 0)
self.gridLayout_11.setObjectName("gridLayout_11")
self.groupBox = QtWidgets.QGroupBox(self.dataTab)
self.groupBox.setObjectName("groupBox")
self.gridLayout_9 = QtWidgets.QGridLayout(self.groupBox)
self.gridLayout_9.setObjectName("gridLayout_9")
self.gridLayout = QtWidgets.QGridLayout()
self.gridLayout.setObjectName("gridLayout")
self.cmdLoad = QtWidgets.QPushButton(self.groupBox)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(5)
sizePolicy.setHeightForWidth(self.cmdLoad.sizePolicy().hasHeightForWidth())
self.cmdLoad.setSizePolicy(sizePolicy)
self.cmdLoad.setMinimumSize(QtCore.QSize(120, 40))
self.cmdLoad.setBaseSize(QtCore.QSize(100, 50))
self.cmdLoad.setStyleSheet("font: 11pt \"MS Shell Dlg 2\";")
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap(":/res/down-grey.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.cmdLoad.setIcon(icon1)
self.cmdLoad.setIconSize(QtCore.QSize(32, 32))
self.cmdLoad.setObjectName("cmdLoad")
self.gridLayout.addWidget(self.cmdLoad, 0, 0, 2, 1)
self.cmdDeleteData = QtWidgets.QPushButton(self.groupBox)
self.cmdDeleteData.setObjectName("cmdDeleteData")
self.gridLayout.addWidget(self.cmdDeleteData, 0, 1, 1, 1)
self.cbSelect = QtWidgets.QComboBox(self.groupBox)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.cbSelect.sizePolicy().hasHeightForWidth())
self.cbSelect.setSizePolicy(sizePolicy)
self.cbSelect.setObjectName("cbSelect")
self.cbSelect.addItem("")
self.cbSelect.addItem("")
self.cbSelect.addItem("")
self.cbSelect.addItem("")
self.cbSelect.addItem("")
self.cbSelect.addItem("")
self.gridLayout.addWidget(self.cbSelect, 1, 1, 1, 1)
self.gridLayout_9.addLayout(self.gridLayout, 0, 0, 1, 1)
spacerItem = QtWidgets.QSpacerItem(92, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_9.addItem(spacerItem, 0, 1, 1, 2)
self.treeView = QtWidgets.QTreeView(self.groupBox)
self.treeView.setContextMenuPolicy(QtCore.Qt.NoContextMenu)
self.treeView.setAcceptDrops(True)
self.treeView.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
self.treeView.setDragEnabled(True)
self.treeView.setDragDropOverwriteMode(True)
self.treeView.setDragDropMode(QtWidgets.QAbstractItemView.DropOnly)
self.treeView.setDefaultDropAction(QtCore.Qt.CopyAction)
self.treeView.setSelectionMode(QtWidgets.QAbstractItemView.ExtendedSelection)
self.treeView.setObjectName("treeView")
self.treeView.header().setVisible(False)
self.gridLayout_9.addWidget(self.treeView, 1, 0, 1, 3)
self.gridLayout_2 = QtWidgets.QGridLayout()
self.gridLayout_2.setObjectName("gridLayout_2")
self.cmdSendTo = QtWidgets.QPushButton(self.groupBox)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(5)
sizePolicy.setHeightForWidth(self.cmdSendTo.sizePolicy().hasHeightForWidth())
self.cmdSendTo.setSizePolicy(sizePolicy)
self.cmdSendTo.setMinimumSize(QtCore.QSize(145, 40))
self.cmdSendTo.setBaseSize(QtCore.QSize(100, 50))
font = QtGui.QFont()
font.setFamily("MS Shell Dlg 2")
font.setPointSize(11)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.cmdSendTo.setFont(font)
self.cmdSendTo.setStyleSheet("font: 11pt \"MS Shell Dlg 2\";")
icon2 = QtGui.QIcon()
icon2.addPixmap(QtGui.QPixmap(":/res/right-grey.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.cmdSendTo.setIcon(icon2)
self.cmdSendTo.setIconSize(QtCore.QSize(32, 32))
self.cmdSendTo.setObjectName("cmdSendTo")
self.gridLayout_2.addWidget(self.cmdSendTo, 0, 0, 2, 1)
self.cbFitting = QtWidgets.QComboBox(self.groupBox)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.cbFitting.sizePolicy().hasHeightForWidth())
self.cbFitting.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(11)
self.cbFitting.setFont(font)
self.cbFitting.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToContents)
self.cbFitting.setObjectName("cbFitting")
self.cbFitting.addItem("")
self.cbFitting.addItem("")
self.cbFitting.addItem("")
self.gridLayout_2.addWidget(self.cbFitting, 0, 1, 1, 1)
self.chkBatch = QtWidgets.QCheckBox(self.groupBox)
self.chkBatch.setObjectName("chkBatch")
self.gridLayout_2.addWidget(self.chkBatch, 1, 1, 1, 1)
self.chkSwap = QtWidgets.QCheckBox(self.groupBox)
self.chkSwap.setObjectName("chkSwap")
self.gridLayout_2.addWidget(self.chkSwap, 2, 1, 1, 1)
self.gridLayout_9.addLayout(self.gridLayout_2, 2, 0, 1, 2)
spacerItem1 = QtWidgets.QSpacerItem(160, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_9.addItem(spacerItem1, 2, 2, 1, 1)
self.gridLayout_11.addWidget(self.groupBox, 0, 0, 1, 1)
self.gridLayout_10 = QtWidgets.QGridLayout()
self.gridLayout_10.setObjectName("gridLayout_10")
self.gridLayout_6 = QtWidgets.QGridLayout()
self.gridLayout_6.setObjectName("gridLayout_6")
self.groupBox_3 = QtWidgets.QGroupBox(self.dataTab)
self.groupBox_3.setFlat(False)
self.groupBox_3.setCheckable(False)
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.Minimum, 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.gridLayout_3.addWidget(self.cbgraph, 1, 1, 1, 1)
self.gridLayout_6.addWidget(self.groupBox_3, 0, 0, 1, 1)
spacerItem2 = QtWidgets.QSpacerItem(103, 48, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_6.addItem(spacerItem2, 0, 1, 1, 1)
self.gridLayout_10.addLayout(self.gridLayout_6, 0, 0, 2, 1)
self.cmdHelp = QtWidgets.QPushButton(self.dataTab)
self.cmdHelp.setObjectName("cmdHelp")
self.gridLayout_10.addWidget(self.cmdHelp, 1, 1, 1, 1)
self.gridLayout_11.addLayout(self.gridLayout_10, 1, 0, 1, 1)
DataLoadWidget.addTab(self.dataTab, "")
self.theoryTab = QtWidgets.QWidget()
self.theoryTab.setObjectName("theoryTab")
self.gridLayout_8 = QtWidgets.QGridLayout(self.theoryTab)
self.gridLayout_8.setContentsMargins(0, 0, 0, 0)
self.gridLayout_8.setObjectName("gridLayout_8")
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.horizontalLayout_3 = QtWidgets.QHBoxLayout()
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.cmdFreeze = QtWidgets.QPushButton(self.groupBox_2)
self.cmdFreeze.setObjectName("cmdFreeze")
self.horizontalLayout_3.addWidget(self.cmdFreeze)
spacerItem3 = QtWidgets.QSpacerItem(218, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_3.addItem(spacerItem3)
self.cmdDeleteTheory = QtWidgets.QPushButton(self.groupBox_2)
self.cmdDeleteTheory.setObjectName("cmdDeleteTheory")
self.horizontalLayout_3.addWidget(self.cmdDeleteTheory)
self.gridLayout_4.addLayout(self.horizontalLayout_3, 0, 0, 1, 1)
self.freezeView = QtWidgets.QTreeView(self.groupBox_2)
self.freezeView.setObjectName("freezeView")
self.freezeView.header().setVisible(False)
self.gridLayout_4.addWidget(self.freezeView, 1, 0, 1, 1)
self.gridLayout_8.addWidget(self.groupBox_2, 0, 0, 1, 1)
self.gridLayout_5 = QtWidgets.QGridLayout()
self.gridLayout_5.setObjectName("gridLayout_5")
self.groupBox_4 = QtWidgets.QGroupBox(self.theoryTab)
self.groupBox_4.setObjectName("groupBox_4")
self.gridLayout_7 = QtWidgets.QGridLayout(self.groupBox_4)
self.gridLayout_7.setObjectName("gridLayout_7")
self.cmdNew_2 = QtWidgets.QPushButton(self.groupBox_4)
self.cmdNew_2.setObjectName("cmdNew_2")
self.gridLayout_7.addWidget(self.cmdNew_2, 0, 0, 1, 1)
self.cmdAppend_2 = QtWidgets.QPushButton(self.groupBox_4)
self.cmdAppend_2.setObjectName("cmdAppend_2")
self.gridLayout_7.addWidget(self.cmdAppend_2, 1, 0, 1, 1)
self.cbgraph_2 = QtWidgets.QComboBox(self.groupBox_4)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, 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_7.addWidget(self.cbgraph_2, 1, 1, 1, 1)
self.gridLayout_5.addWidget(self.groupBox_4, 0, 0, 1, 1)
spacerItem4 = QtWidgets.QSpacerItem(108, 111, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout_5.addItem(spacerItem4, 0, 1, 1, 1)
self.cmdHelp_2 = QtWidgets.QPushButton(self.theoryTab)
self.cmdHelp_2.setObjectName("cmdHelp_2")
self.gridLayout_5.addWidget(self.cmdHelp_2, 0, 2, 1, 1, QtCore.Qt.AlignBottom)
self.gridLayout_8.addLayout(self.gridLayout_5, 1, 0, 1, 1)
DataLoadWidget.addTab(self.theoryTab, "")
self.actionDataInfo = QtWidgets.QAction(DataLoadWidget)
self.actionDataInfo.setObjectName("actionDataInfo")
self.actionSaveAs = QtWidgets.QAction(DataLoadWidget)
self.actionSaveAs.setObjectName("actionSaveAs")
self.actionQuickPlot = QtWidgets.QAction(DataLoadWidget)
self.actionQuickPlot.setObjectName("actionQuickPlot")
self.actionQuick3DPlot = QtWidgets.QAction(DataLoadWidget)
self.actionQuick3DPlot.setObjectName("actionQuick3DPlot")
self.actionEditMask = QtWidgets.QAction(DataLoadWidget)
self.actionEditMask.setObjectName("actionEditMask")
self.actionDelete = QtWidgets.QAction(DataLoadWidget)
self.actionDelete.setObjectName("actionDelete")
self.actionFreezeResults = QtWidgets.QAction(DataLoadWidget)
self.actionFreezeResults.setObjectName("actionFreezeResults")
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.groupBox.setTitle(_translate("DataLoadWidget", "Data"))
self.cmdLoad.setToolTip(_translate("DataLoadWidget", "<html><head/><body><p><span style=\" font-size:8pt;\">Load a file with data</span></p></body></html>"))
self.cmdLoad.setText(_translate("DataLoadWidget", "Load data"))
self.cmdLoad.setShortcut(_translate("DataLoadWidget", "Ctrl+R"))
self.cmdDeleteData.setText(_translate("DataLoadWidget", "Delete Data"))
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.cmdSendTo.setToolTip(_translate("DataLoadWidget", "<html><head/><body><p><span style=\" font-size:8pt;\">Send data to perspective</span></p></body></html>"))
self.cmdSendTo.setText(_translate("DataLoadWidget", "Send data 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.chkSwap.setText(_translate("DataLoadWidget", "Swap data"))
self.groupBox_3.setTitle(_translate("DataLoadWidget", "Plot"))
self.cmdNew.setText(_translate("DataLoadWidget", "Create New"))
self.cmdAppend.setText(_translate("DataLoadWidget", "Append to"))
self.cmdHelp.setText(_translate("DataLoadWidget", "Help"))
DataLoadWidget.setTabText(DataLoadWidget.indexOf(self.dataTab), _translate("DataLoadWidget", "Data"))
self.groupBox_2.setTitle(_translate("DataLoadWidget", "Theory"))
self.cmdFreeze.setText(_translate("DataLoadWidget", "Freeze Theory"))
self.cmdDeleteTheory.setText(_translate("DataLoadWidget", "Delete"))
self.groupBox_4.setTitle(_translate("DataLoadWidget", "Plot"))
self.cmdNew_2.setText(_translate("DataLoadWidget", "Create New"))
self.cmdAppend_2.setText(_translate("DataLoadWidget", "Append to"))
self.cbgraph_2.setItemText(0, _translate("DataLoadWidget", "Graph1"))
self.cmdHelp_2.setText(_translate("DataLoadWidget", "Help"))
DataLoadWidget.setTabText(DataLoadWidget.indexOf(self.theoryTab), _translate("DataLoadWidget", "Theory"))
self.actionDataInfo.setText(_translate("DataLoadWidget", "Data Info"))
self.actionSaveAs.setText(_translate("DataLoadWidget", "Save As"))
self.actionQuickPlot.setText(_translate("DataLoadWidget", "Quick Plot"))
self.actionQuick3DPlot.setText(_translate("DataLoadWidget", "Quick 3DPlot (slow)"))
self.actionEditMask.setText(_translate("DataLoadWidget", "Edit Mask"))
self.actionDelete.setText(_translate("DataLoadWidget", "Delete"))
self.actionFreezeResults.setText(_translate("DataLoadWidget", "Freeze Results"))