Source code for schrodinger.application.job_monitor.top_level_view_ui
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '/scr/buildbot/src/mmshare/python/modules/schrodinger/application/job_monitor/top_level_view.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(426, 300)
self.verticalLayout = QtWidgets.QVBoxLayout(Form)
self.verticalLayout.setSpacing(0)
self.verticalLayout.setObjectName("verticalLayout")
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint)
self.horizontalLayout.setObjectName("horizontalLayout")
self.verticalLayout_2 = QtWidgets.QVBoxLayout()
self.verticalLayout_2.setSpacing(11)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.instruction_lbl = QtWidgets.QLabel(Form)
self.instruction_lbl.setObjectName("instruction_lbl")
self.verticalLayout_2.addWidget(self.instruction_lbl)
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.horizontalLayout_2.setSpacing(0)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.active_jobs_btn = QtWidgets.QPushButton(Form)
self.active_jobs_btn.setObjectName("active_jobs_btn")
self.horizontalLayout_2.addWidget(self.active_jobs_btn)
self.all_jobs_btn = QtWidgets.QPushButton(Form)
self.all_jobs_btn.setObjectName("all_jobs_btn")
self.horizontalLayout_2.addWidget(self.all_jobs_btn)
self.verticalLayout_2.addLayout(self.horizontalLayout_2)
self.horizontalLayout.addLayout(self.verticalLayout_2)
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem)
self.stop_cancel_frame = QtWidgets.QFrame(Form)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.stop_cancel_frame.sizePolicy().hasHeightForWidth())
self.stop_cancel_frame.setSizePolicy(sizePolicy)
self.stop_cancel_frame.setFrameShape(QtWidgets.QFrame.Box)
self.stop_cancel_frame.setFrameShadow(QtWidgets.QFrame.Raised)
self.stop_cancel_frame.setObjectName("stop_cancel_frame")
self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.stop_cancel_frame)
self.horizontalLayout_4.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_4.setSpacing(0)
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
self.stop_btn = FlatButton(self.stop_cancel_frame)
self.stop_btn.setText("")
self.stop_btn.setObjectName("stop_btn")
self.horizontalLayout_4.addWidget(self.stop_btn)
self.cancel_btn = FlatButton(self.stop_cancel_frame)
self.cancel_btn.setText("")
self.cancel_btn.setObjectName("cancel_btn")
self.horizontalLayout_4.addWidget(self.cancel_btn)
self.horizontalLayout.addWidget(self.stop_cancel_frame)
self.verticalLayout.addLayout(self.horizontalLayout)
self.table_layout = QtWidgets.QVBoxLayout()
self.table_layout.setObjectName("table_layout")
self.verticalLayout.addLayout(self.table_layout)
self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
self.horizontalLayout_5.setObjectName("horizontalLayout_5")
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_5.addItem(spacerItem1)
self.project_filter_btn = SimpleLink(Form)
self.project_filter_btn.setObjectName("project_filter_btn")
self.horizontalLayout_5.addWidget(self.project_filter_btn)
self.verticalLayout.addLayout(self.horizontalLayout_5)
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
[docs] def retranslateUi(self, Form):
_translate = QtCore.QCoreApplication.translate
Form.setWindowTitle(_translate("Form", "Form"))
self.instruction_lbl.setText(_translate("Form", "Double-click a job to view its details. Right-click for other actions."))
self.active_jobs_btn.setText(_translate("Form", "Active Jobs"))
self.all_jobs_btn.setText(_translate("Form", "All Jobs"))
self.stop_btn.setToolTip(_translate("Form", "Stop selected jobs and preserve results"))
self.cancel_btn.setToolTip(_translate("Form", "Cancel selected jobs immediately"))
self.project_filter_btn.setText(_translate("Form", "Show All Projects"))
from schrodinger.ui.qt.standard_widgets.flat_button import FlatButton
from schrodinger.ui.qt.standard_widgets.hyperlink import SimpleLink