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

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

# Form implementation generated from reading ui file '.\src\sas\qtgui\Plotting\UI\ColorMapUI.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_ColorMapUI(object):
[docs] def setupUi(self, ColorMapUI): ColorMapUI.setObjectName("ColorMapUI") ColorMapUI.resize(450, 329) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/res/ball.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off) ColorMapUI.setWindowIcon(icon) ColorMapUI.setModal(True) self.gridLayout_5 = QtWidgets.QGridLayout(ColorMapUI) self.gridLayout_5.setObjectName("gridLayout_5") spacerItem = QtWidgets.QSpacerItem(20, 62, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout_5.addItem(spacerItem, 1, 1, 1, 1) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem1) self.buttonBox = QtWidgets.QDialogButtonBox(ColorMapUI) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Apply|QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok|QtWidgets.QDialogButtonBox.Reset) self.buttonBox.setObjectName("buttonBox") self.horizontalLayout_2.addWidget(self.buttonBox) self.gridLayout_5.addLayout(self.horizontalLayout_2, 3, 0, 1, 3) self.groupBox = QtWidgets.QGroupBox(ColorMapUI) self.groupBox.setObjectName("groupBox") self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox) self.gridLayout_2.setObjectName("gridLayout_2") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.label = QtWidgets.QLabel(self.groupBox) self.label.setObjectName("label") self.horizontalLayout.addWidget(self.label) self.cbColorMap = QtWidgets.QComboBox(self.groupBox) self.cbColorMap.setObjectName("cbColorMap") self.horizontalLayout.addWidget(self.cbColorMap) self.gridLayout_2.addLayout(self.horizontalLayout, 0, 0, 1, 1) self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.label_2 = QtWidgets.QLabel(self.groupBox) self.label_2.setObjectName("label_2") self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1) self.txtMinAmplitude = QtWidgets.QLineEdit(self.groupBox) self.txtMinAmplitude.setObjectName("txtMinAmplitude") self.gridLayout.addWidget(self.txtMinAmplitude, 0, 1, 1, 1) self.label_3 = QtWidgets.QLabel(self.groupBox) self.label_3.setObjectName("label_3") self.gridLayout.addWidget(self.label_3, 1, 0, 1, 1) self.txtMaxAmplitude = QtWidgets.QLineEdit(self.groupBox) self.txtMaxAmplitude.setObjectName("txtMaxAmplitude") self.gridLayout.addWidget(self.txtMaxAmplitude, 1, 1, 1, 1) self.gridLayout_2.addLayout(self.gridLayout, 1, 0, 1, 1) self.chkReverse = QtWidgets.QCheckBox(self.groupBox) self.chkReverse.setObjectName("chkReverse") self.gridLayout_2.addWidget(self.chkReverse, 2, 0, 1, 1) self.gridLayout_5.addWidget(self.groupBox, 0, 0, 1, 2) self.groupBox_2 = QtWidgets.QGroupBox(ColorMapUI) self.groupBox_2.setObjectName("groupBox_2") self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox_2) self.gridLayout_4.setObjectName("gridLayout_4") self.gridLayout_3 = QtWidgets.QGridLayout() self.gridLayout_3.setObjectName("gridLayout_3") self.label_4 = QtWidgets.QLabel(self.groupBox_2) self.label_4.setObjectName("label_4") self.gridLayout_3.addWidget(self.label_4, 0, 0, 1, 1) self.lblWidth = QtWidgets.QLabel(self.groupBox_2) self.lblWidth.setObjectName("lblWidth") self.gridLayout_3.addWidget(self.lblWidth, 0, 1, 1, 1) self.label_5 = QtWidgets.QLabel(self.groupBox_2) self.label_5.setObjectName("label_5") self.gridLayout_3.addWidget(self.label_5, 1, 0, 1, 1) self.lblHeight = QtWidgets.QLabel(self.groupBox_2) self.lblHeight.setObjectName("lblHeight") self.gridLayout_3.addWidget(self.lblHeight, 1, 1, 1, 1) self.label_6 = QtWidgets.QLabel(self.groupBox_2) self.label_6.setObjectName("label_6") self.gridLayout_3.addWidget(self.label_6, 2, 0, 1, 1) self.lblQmax = QtWidgets.QLabel(self.groupBox_2) self.lblQmax.setObjectName("lblQmax") self.gridLayout_3.addWidget(self.lblQmax, 2, 1, 1, 1) self.label_7 = QtWidgets.QLabel(self.groupBox_2) self.label_7.setObjectName("label_7") self.gridLayout_3.addWidget(self.label_7, 3, 0, 1, 1) self.lblStopRadius = QtWidgets.QLabel(self.groupBox_2) self.lblStopRadius.setObjectName("lblStopRadius") self.gridLayout_3.addWidget(self.lblStopRadius, 3, 1, 1, 1) self.gridLayout_4.addLayout(self.gridLayout_3, 0, 0, 1, 1) self.gridLayout_5.addWidget(self.groupBox_2, 0, 2, 1, 1) self.widget = QtWidgets.QWidget(ColorMapUI) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.widget.sizePolicy().hasHeightForWidth()) self.widget.setSizePolicy(sizePolicy) self.widget.setObjectName("widget") self.gridLayout_5.addWidget(self.widget, 2, 0, 1, 3) self.groupBox.raise_() self.widget.raise_() self.groupBox_2.raise_() self.retranslateUi(ColorMapUI) self.buttonBox.accepted.connect(ColorMapUI.accept) # type: ignore self.buttonBox.rejected.connect(ColorMapUI.reject) # type: ignore QtCore.QMetaObject.connectSlotsByName(ColorMapUI)
[docs] def retranslateUi(self, ColorMapUI): _translate = QtCore.QCoreApplication.translate ColorMapUI.setWindowTitle(_translate("ColorMapUI", "Color Map")) self.groupBox.setTitle(_translate("ColorMapUI", "Color map")) self.label.setText(_translate("ColorMapUI", "Select color map")) self.cbColorMap.setToolTip(_translate("ColorMapUI", "<html><head/><body><p>Select color map from the list.</p></body></html>")) self.label_2.setToolTip(_translate("ColorMapUI", "<html><head/><body><p>Enter value for minimum color map amplitude.</p></body></html>")) self.label_2.setText(_translate("ColorMapUI", "Min amplitude for color map")) self.txtMinAmplitude.setToolTip(_translate("ColorMapUI", "<html><head/><body><p>Enter value for minimum color map amplitude.</p></body></html>")) self.label_3.setToolTip(_translate("ColorMapUI", "<html><head/><body><p>Enter value for maximum color map amplitude.</p></body></html>")) self.label_3.setText(_translate("ColorMapUI", "Max amplitude for color map")) self.txtMaxAmplitude.setToolTip(_translate("ColorMapUI", "<html><head/><body><p>Enter value for maximum color map amplitude.</p></body></html>")) self.chkReverse.setToolTip(_translate("ColorMapUI", "<html><head/><body><p>Use the color-reversed map.</p></body></html>")) self.chkReverse.setText(_translate("ColorMapUI", "Reverse map")) self.groupBox_2.setTitle(_translate("ColorMapUI", "Detector")) self.label_4.setToolTip(_translate("ColorMapUI", "<html><head/><body><p>Detector width.</p></body></html>")) self.label_4.setText(_translate("ColorMapUI", "Width in pixels")) self.lblWidth.setText(_translate("ColorMapUI", "0")) self.label_5.setToolTip(_translate("ColorMapUI", "<html><head/><body><p>Detector height.</p></body></html>")) self.label_5.setText(_translate("ColorMapUI", "Height in pixels")) self.lblHeight.setText(_translate("ColorMapUI", "0")) self.label_6.setToolTip(_translate("ColorMapUI", "<html><head/><body><p>Maximum absolute Q<span style=\" vertical-align:sub;\">x,y</span> value.</p></body></html>")) self.label_6.setText(_translate("ColorMapUI", "<html><head/><body><p>Q<span style=\" vertical-align:sub;\">max</span></p></body></html>")) self.lblQmax.setText(_translate("ColorMapUI", "0")) self.label_7.setToolTip(_translate("ColorMapUI", "<html><head/><body><p>Minimum value of Q<span style=\" vertical-align:sub;\">x</span> in units of Q.</p></body></html>")) self.label_7.setText(_translate("ColorMapUI", "Beam stop radius")) self.lblStopRadius.setText(_translate("ColorMapUI", "TextLabel"))