Source code for sas.qtgui.Calculators.UI.DataOperationUtilityUI

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

# Form implementation generated from reading ui file '.\src\sas\qtgui\Calculators\UI\DataOperationUtilityUI.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_DataOperationUtility(object):
[docs] def setupUi(self, DataOperationUtility): DataOperationUtility.setObjectName("DataOperationUtility") DataOperationUtility.resize(951, 425) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(DataOperationUtility.sizePolicy().hasHeightForWidth()) DataOperationUtility.setSizePolicy(sizePolicy) DataOperationUtility.setMinimumSize(QtCore.QSize(951, 425)) DataOperationUtility.setMaximumSize(QtCore.QSize(951, 425)) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/res/ball.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off) DataOperationUtility.setWindowIcon(icon) self.gridLayout_3 = QtWidgets.QGridLayout(DataOperationUtility) self.gridLayout_3.setObjectName("gridLayout_3") self.groupBox = QtWidgets.QGroupBox(DataOperationUtility) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth()) self.groupBox.setSizePolicy(sizePolicy) self.groupBox.setMinimumSize(QtCore.QSize(870, 361)) self.groupBox.setMaximumSize(QtCore.QSize(950, 400)) 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.lblOutputDataName = QtWidgets.QLabel(self.groupBox) self.lblOutputDataName.setObjectName("lblOutputDataName") self.gridLayout.addWidget(self.lblOutputDataName, 0, 0, 1, 1) self.lblData2OrNumber = QtWidgets.QLabel(self.groupBox) self.lblData2OrNumber.setObjectName("lblData2OrNumber") self.gridLayout.addWidget(self.lblData2OrNumber, 0, 8, 1, 1) self.lblBigEqual = QtWidgets.QLabel(self.groupBox) self.lblBigEqual.setMinimumSize(QtCore.QSize(21, 21)) self.lblBigEqual.setAlignment(QtCore.Qt.AlignCenter) self.lblBigEqual.setObjectName("lblBigEqual") self.gridLayout.addWidget(self.lblBigEqual, 3, 2, 1, 1) spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem, 3, 7, 1, 1) self.graphOutput = QtWidgets.QGraphicsView(self.groupBox) self.graphOutput.setMinimumSize(QtCore.QSize(260, 260)) self.graphOutput.setMaximumSize(QtCore.QSize(300, 300)) self.graphOutput.setObjectName("graphOutput") self.gridLayout.addWidget(self.graphOutput, 3, 0, 1, 1) self.cbData1 = QtWidgets.QComboBox(self.groupBox) self.cbData1.setMinimumSize(QtCore.QSize(170, 26)) self.cbData1.setMaximumSize(QtCore.QSize(200, 30)) self.cbData1.setBaseSize(QtCore.QSize(0, 26)) self.cbData1.setEditable(False) self.cbData1.setObjectName("cbData1") self.cbData1.addItem("") self.gridLayout.addWidget(self.cbData1, 1, 4, 1, 1) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem1, 3, 5, 1, 1) spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem2, 3, 3, 1, 1) self.lblData1 = QtWidgets.QLabel(self.groupBox) self.lblData1.setObjectName("lblData1") self.gridLayout.addWidget(self.lblData1, 0, 4, 1, 1) self.txtOutputData = QtWidgets.QLineEdit(self.groupBox) self.txtOutputData.setMinimumSize(QtCore.QSize(260, 21)) self.txtOutputData.setMaximumSize(QtCore.QSize(300, 30)) self.txtOutputData.setObjectName("txtOutputData") self.gridLayout.addWidget(self.txtOutputData, 1, 0, 1, 1) self.graphData1 = QtWidgets.QGraphicsView(self.groupBox) self.graphData1.setMinimumSize(QtCore.QSize(260, 260)) self.graphData1.setMaximumSize(QtCore.QSize(300, 300)) self.graphData1.setObjectName("graphData1") self.gridLayout.addWidget(self.graphData1, 3, 4, 1, 1) spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem3, 3, 1, 1, 1) self.lblEqual = QtWidgets.QLabel(self.groupBox) self.lblEqual.setMinimumSize(QtCore.QSize(21, 21)) self.lblEqual.setAlignment(QtCore.Qt.AlignCenter) self.lblEqual.setObjectName("lblEqual") self.gridLayout.addWidget(self.lblEqual, 1, 2, 1, 1) self.txtNumber = QtWidgets.QLineEdit(self.groupBox) self.txtNumber.setEnabled(False) self.txtNumber.setMinimumSize(QtCore.QSize(50, 21)) self.txtNumber.setMaximumSize(QtCore.QSize(150, 30)) self.txtNumber.setObjectName("txtNumber") self.gridLayout.addWidget(self.txtNumber, 1, 9, 1, 1) self.lblOperatorApplied = QtWidgets.QLabel(self.groupBox) self.lblOperatorApplied.setMinimumSize(QtCore.QSize(21, 21)) self.lblOperatorApplied.setAlignment(QtCore.Qt.AlignCenter) self.lblOperatorApplied.setTextInteractionFlags(QtCore.Qt.LinksAccessibleByMouse|QtCore.Qt.TextEditable) self.lblOperatorApplied.setObjectName("lblOperatorApplied") self.gridLayout.addWidget(self.lblOperatorApplied, 3, 6, 1, 1) self.cbData2 = QtWidgets.QComboBox(self.groupBox) self.cbData2.setMinimumSize(QtCore.QSize(170, 26)) self.cbData2.setMaximumSize(QtCore.QSize(200, 30)) self.cbData2.setEditable(False) self.cbData2.setObjectName("cbData2") self.cbData2.addItem("") self.gridLayout.addWidget(self.cbData2, 1, 8, 1, 1) self.cbOperator = QtWidgets.QComboBox(self.groupBox) self.cbOperator.setMinimumSize(QtCore.QSize(51, 26)) self.cbOperator.setMaximumSize(QtCore.QSize(60, 30)) self.cbOperator.setObjectName("cbOperator") self.cbOperator.addItem("") self.cbOperator.addItem("") self.cbOperator.addItem("") self.cbOperator.addItem("") self.cbOperator.addItem("") self.gridLayout.addWidget(self.cbOperator, 1, 6, 1, 1) self.graphData2 = QtWidgets.QGraphicsView(self.groupBox) self.graphData2.setMinimumSize(QtCore.QSize(260, 260)) self.graphData2.setMaximumSize(QtCore.QSize(300, 300)) self.graphData2.setObjectName("graphData2") self.gridLayout.addWidget(self.graphData2, 3, 8, 1, 2) self.gridLayout_2.addLayout(self.gridLayout, 0, 0, 1, 1) self.gridLayout_3.addWidget(self.groupBox, 0, 0, 1, 1) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem4) self.cmdReset = QtWidgets.QPushButton(DataOperationUtility) self.cmdReset.setMinimumSize(QtCore.QSize(75, 25)) self.cmdReset.setAutoDefault(False) self.cmdReset.setObjectName("cmdReset") self.horizontalLayout.addWidget(self.cmdReset) self.cmdCompute = QtWidgets.QPushButton(DataOperationUtility) self.cmdCompute.setMinimumSize(QtCore.QSize(75, 25)) self.cmdCompute.setAutoDefault(False) self.cmdCompute.setObjectName("cmdCompute") self.horizontalLayout.addWidget(self.cmdCompute) self.cmdClose = QtWidgets.QPushButton(DataOperationUtility) self.cmdClose.setMinimumSize(QtCore.QSize(75, 25)) self.cmdClose.setAutoDefault(False) self.cmdClose.setObjectName("cmdClose") self.horizontalLayout.addWidget(self.cmdClose) self.cmdHelp = QtWidgets.QPushButton(DataOperationUtility) self.cmdHelp.setMinimumSize(QtCore.QSize(75, 25)) self.cmdHelp.setAutoDefault(False) self.cmdHelp.setObjectName("cmdHelp") self.horizontalLayout.addWidget(self.cmdHelp) self.gridLayout_3.addLayout(self.horizontalLayout, 1, 0, 1, 1) self.retranslateUi(DataOperationUtility) QtCore.QMetaObject.connectSlotsByName(DataOperationUtility)
[docs] def retranslateUi(self, DataOperationUtility): _translate = QtCore.QCoreApplication.translate DataOperationUtility.setWindowTitle(_translate("DataOperationUtility", "Data Operation")) self.groupBox.setTitle(_translate("DataOperationUtility", "Data Operation [ + (add); - (subtract); * (multiply); / (divide); | (append)]")) self.lblOutputDataName.setText(_translate("DataOperationUtility", "Output Data Name")) self.lblData2OrNumber.setText(_translate("DataOperationUtility", "Data2 (or Number)")) self.lblBigEqual.setText(_translate("DataOperationUtility", "=")) self.cbData1.setItemText(0, _translate("DataOperationUtility", "No Data Available")) self.lblData1.setText(_translate("DataOperationUtility", "Data1")) self.txtOutputData.setText(_translate("DataOperationUtility", "MyNewDataName")) self.lblEqual.setText(_translate("DataOperationUtility", "=")) self.txtNumber.setToolTip(_translate("DataOperationUtility", "If no Data2 loaded, enter a number to be applied to Data1 using the operator")) self.txtNumber.setText(_translate("DataOperationUtility", "1.0")) self.lblOperatorApplied.setText(_translate("DataOperationUtility", "+")) self.cbData2.setItemText(0, _translate("DataOperationUtility", "No Data Available")) self.cbOperator.setToolTip(_translate("DataOperationUtility", "Add: +\n" "Subtract: - \n" "Multiply: *\n" "Divide: /\n" "Append(Combine): |")) self.cbOperator.setItemText(0, _translate("DataOperationUtility", "+")) self.cbOperator.setItemText(1, _translate("DataOperationUtility", "-")) self.cbOperator.setItemText(2, _translate("DataOperationUtility", "*")) self.cbOperator.setItemText(3, _translate("DataOperationUtility", "/")) self.cbOperator.setItemText(4, _translate("DataOperationUtility", "|")) self.cmdReset.setText(_translate("DataOperationUtility", "Reset")) self.cmdCompute.setToolTip(_translate("DataOperationUtility", "Generate the Data and send to Data Explorer.")) self.cmdCompute.setText(_translate("DataOperationUtility", "Compute")) self.cmdClose.setToolTip(_translate("DataOperationUtility", "Close this panel.")) self.cmdClose.setText(_translate("DataOperationUtility", "Close")) self.cmdHelp.setToolTip(_translate("DataOperationUtility", "Get help on Data Operations.")) self.cmdHelp.setText(_translate("DataOperationUtility", "Help"))