Source code for schrodinger.ui.qt.atom_weights_table_ui
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '/scr/buildbot/src/mmshare/python/modules/schrodinger/ui/qt/atom_weights_table.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# 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_Form(object):
[docs]    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(828, 631)
        self.verticalLayout = QtWidgets.QVBoxLayout(Form)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.frame = QtWidgets.QFrame(Form)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.frame.sizePolicy().hasHeightForWidth())
        self.frame.setSizePolicy(sizePolicy)
        self.frame.setObjectName("frame")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.frame)
        self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_2.setSpacing(0)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setContentsMargins(-1, 12, -1, 12)
        self.horizontalLayout_5.setSpacing(0)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.line = QtWidgets.QFrame(self.frame)
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.horizontalLayout_5.addWidget(self.line)
        self.verticalLayout_2.addLayout(self.horizontalLayout_5)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setSpacing(0)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.customize_weights_cb = QtWidgets.QCheckBox(self.frame)
        self.customize_weights_cb.setObjectName("customize_weights_cb")
        self.horizontalLayout_2.addWidget(self.customize_weights_cb)
        spacerItem = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem)
        self.info_btn = InfoButton(self.frame)
        self.info_btn.setText("")
        self.info_btn.setObjectName("info_btn")
        self.horizontalLayout_2.addWidget(self.info_btn)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem1)
        self.verticalLayout_2.addLayout(self.horizontalLayout_2)
        self.custom_weights_box = QtWidgets.QGroupBox(self.frame)
        self.custom_weights_box.setTitle("")
        self.custom_weights_box.setObjectName("custom_weights_box")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.custom_weights_box)
        self.verticalLayout_3.setContentsMargins(-1, 0, -1, -1)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.default_weight_layout = QtWidgets.QHBoxLayout()
        self.default_weight_layout.setObjectName("default_weight_layout")
        self.label_11 = QtWidgets.QLabel(self.custom_weights_box)
        self.label_11.setObjectName("label_11")
        self.default_weight_layout.addWidget(self.label_11)
        self.apply_default_weight_btn = QtWidgets.QPushButton(self.custom_weights_box)
        self.apply_default_weight_btn.setToolTip("")
        self.apply_default_weight_btn.setObjectName("apply_default_weight_btn")
        self.default_weight_layout.addWidget(self.apply_default_weight_btn)
        spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.default_weight_layout.addItem(spacerItem2)
        self.verticalLayout_3.addLayout(self.default_weight_layout)
        self.horizontalLayout_17 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_17.setSpacing(3)
        self.horizontalLayout_17.setObjectName("horizontalLayout_17")
        self.label_17 = QtWidgets.QLabel(self.custom_weights_box)
        self.label_17.setObjectName("label_17")
        self.horizontalLayout_17.addWidget(self.label_17)
        self.get_ws_selection_btn = QtWidgets.QPushButton(self.custom_weights_box)
        self.get_ws_selection_btn.setObjectName("get_ws_selection_btn")
        self.horizontalLayout_17.addWidget(self.get_ws_selection_btn)
        spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_17.addItem(spacerItem3)
        self.label_16 = QtWidgets.QLabel(self.custom_weights_box)
        self.label_16.setObjectName("label_16")
        self.horizontalLayout_17.addWidget(self.label_16)
        self.custom_weight_combo = MappableComboBox(self.custom_weights_box)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.custom_weight_combo.sizePolicy().hasHeightForWidth())
        self.custom_weight_combo.setSizePolicy(sizePolicy)
        self.custom_weight_combo.setMinimumSize(QtCore.QSize(100, 0))
        self.custom_weight_combo.setObjectName("custom_weight_combo")
        self.horizontalLayout_17.addWidget(self.custom_weight_combo)
        self.apply_custom_weight_btn = QtWidgets.QPushButton(self.custom_weights_box)
        self.apply_custom_weight_btn.setObjectName("apply_custom_weight_btn")
        self.horizontalLayout_17.addWidget(self.apply_custom_weight_btn)
        spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_17.addItem(spacerItem4)
        self.verticalLayout_3.addLayout(self.horizontalLayout_17)
        self.weights_table_layout = QtWidgets.QVBoxLayout()
        self.weights_table_layout.setObjectName("weights_table_layout")
        self.verticalLayout_3.addLayout(self.weights_table_layout)
        self.verticalLayout_2.addWidget(self.custom_weights_box)
        self.verticalLayout.addWidget(self.frame)
        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)
[docs]    def retranslateUi(self, Form):
        _translate = QtCore.QCoreApplication.translate
        Form.setWindowTitle(_translate("Form", "Form"))
        self.customize_weights_cb.setText(_translate("Form", "Customize atom weights"))
        self.label_11.setText(_translate("Form", "Default atom weight:"))
        self.apply_default_weight_btn.setText(_translate("Form", "Apply"))
        self.label_17.setText(_translate("Form", "Select atoms in table: "))
        self.get_ws_selection_btn.setText(_translate("Form", "Get Workspace Selection"))
        self.label_16.setText(_translate("Form", "Custom weight: "))
        self.apply_custom_weight_btn.setText(_translate("Form", "Apply"))
from schrodinger.ui.qt.mapperwidgets import MappableComboBox
from schrodinger.ui.qt.swidgets import InfoButton