Source code for schrodinger.trajectory.trajectory_gui_dir.snapshot_panel_ui

# Form implementation generated from reading ui file '/Users/eltanawy/builds/2022-4/source/mmshare/python/modules/schrodinger/trajectory/trajectory_gui_dir/snapshot_panel.ui'
#
# Created by: PyQt6 UI code generator 6.3.1
#
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
# run again.  Do not edit this file unless you know what you are doing.


from PyQt6 import QtCore, QtGui, QtWidgets


[docs]class Ui_snapshot_panel(object):
[docs] def setupUi(self, snapshot_panel): snapshot_panel.setObjectName("snapshot_panel") snapshot_panel.resize(388, 706) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(snapshot_panel.sizePolicy().hasHeightForWidth()) snapshot_panel.setSizePolicy(sizePolicy) snapshot_panel.setWindowTitle("") self.verticalLayout_6 = QtWidgets.QVBoxLayout(snapshot_panel) self.verticalLayout_6.setContentsMargins(-1, 4, -1, 4) self.verticalLayout_6.setObjectName("verticalLayout_6") self.horizontalLayout_18 = QtWidgets.QHBoxLayout() self.horizontalLayout_18.setContentsMargins(-1, 3, -1, 3) self.horizontalLayout_18.setSpacing(0) self.horizontalLayout_18.setObjectName("horizontalLayout_18") self.add_frames_label = QtWidgets.QLabel(snapshot_panel) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.add_frames_label.sizePolicy().hasHeightForWidth()) self.add_frames_label.setSizePolicy(sizePolicy) self.add_frames_label.setObjectName("add_frames_label") self.horizontalLayout_18.addWidget(self.add_frames_label) spacerItem = QtWidgets.QSpacerItem(40, 10, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) self.horizontalLayout_18.addItem(spacerItem) self.verticalLayout_6.addLayout(self.horizontalLayout_18) self.verticalLayout_5 = QtWidgets.QVBoxLayout() self.verticalLayout_5.setContentsMargins(-1, 2, -1, 2) self.verticalLayout_5.setObjectName("verticalLayout_5") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout_7 = QtWidgets.QHBoxLayout() self.horizontalLayout_7.setObjectName("horizontalLayout_7") self.current_workspace_frame_radiob = QtWidgets.QRadioButton(snapshot_panel) self.current_workspace_frame_radiob.setObjectName("current_workspace_frame_radiob") self.frame_buttongroup = QtWidgets.QButtonGroup(snapshot_panel) self.frame_buttongroup.setObjectName("frame_buttongroup") self.frame_buttongroup.addButton(self.current_workspace_frame_radiob) self.horizontalLayout_7.addWidget(self.current_workspace_frame_radiob) self.current_frame_label = QtWidgets.QLabel(snapshot_panel) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.current_frame_label.sizePolicy().hasHeightForWidth()) self.current_frame_label.setSizePolicy(sizePolicy) self.current_frame_label.setObjectName("current_frame_label") self.horizontalLayout_7.addWidget(self.current_frame_label) self.verticalLayout.addLayout(self.horizontalLayout_7) self.horizontalLayout_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_6.setSpacing(0) self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.stepwise_radio_button = QtWidgets.QRadioButton(snapshot_panel) self.stepwise_radio_button.setObjectName("stepwise_radio_button") self.frame_buttongroup.addButton(self.stepwise_radio_button) self.horizontalLayout_6.addWidget(self.stepwise_radio_button) self.step_number_line_edit = QtWidgets.QLineEdit(snapshot_panel) self.step_number_line_edit.setObjectName("step_number_line_edit") self.horizontalLayout_6.addWidget(self.step_number_line_edit) self.verticalLayout.addLayout(self.horizontalLayout_6) self.horizontalLayout_8 = QtWidgets.QHBoxLayout() self.horizontalLayout_8.setObjectName("horizontalLayout_8") self.specific_frame_numbers_radiob = QtWidgets.QRadioButton(snapshot_panel) self.specific_frame_numbers_radiob.setObjectName("specific_frame_numbers_radiob") self.frame_buttongroup.addButton(self.specific_frame_numbers_radiob) self.horizontalLayout_8.addWidget(self.specific_frame_numbers_radiob) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) self.horizontalLayout_8.addItem(spacerItem1) self.verticalLayout.addLayout(self.horizontalLayout_8) self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setContentsMargins(0, -1, -1, -1) self.horizontalLayout_5.setSpacing(0) self.horizontalLayout_5.setObjectName("horizontalLayout_5") spacerItem2 = QtWidgets.QSpacerItem(30, 20, QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Minimum) self.horizontalLayout_5.addItem(spacerItem2) self.frame_number_line_edit = QtWidgets.QLineEdit(snapshot_panel) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.frame_number_line_edit.sizePolicy().hasHeightForWidth()) self.frame_number_line_edit.setSizePolicy(sizePolicy) self.frame_number_line_edit.setMaximumSize(QtCore.QSize(335, 16777215)) self.frame_number_line_edit.setAcceptDrops(False) self.frame_number_line_edit.setAlignment(QtCore.Qt.AlignmentFlag.AlignLeading|QtCore.Qt.AlignmentFlag.AlignLeft|QtCore.Qt.AlignmentFlag.AlignVCenter) self.frame_number_line_edit.setClearButtonEnabled(True) self.frame_number_line_edit.setObjectName("frame_number_line_edit") self.horizontalLayout_5.addWidget(self.frame_number_line_edit) self.verticalLayout.addLayout(self.horizontalLayout_5) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setContentsMargins(-1, 6, -1, 6) self.horizontalLayout_4.setObjectName("horizontalLayout_4") spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) self.horizontalLayout_4.addItem(spacerItem3) self.add_snapshots_pushb = QtWidgets.QPushButton(snapshot_panel) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.add_snapshots_pushb.sizePolicy().hasHeightForWidth()) self.add_snapshots_pushb.setSizePolicy(sizePolicy) self.add_snapshots_pushb.setObjectName("add_snapshots_pushb") self.horizontalLayout_4.addWidget(self.add_snapshots_pushb) self.verticalLayout.addLayout(self.horizontalLayout_4) self.verticalLayout_5.addLayout(self.verticalLayout) self.vline1 = QtWidgets.QFrame(snapshot_panel) self.vline1.setFrameShape(QtWidgets.QFrame.Shape.HLine) self.vline1.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken) self.vline1.setObjectName("vline1") self.verticalLayout_5.addWidget(self.vline1) self.verticalLayout_3 = QtWidgets.QVBoxLayout() self.verticalLayout_3.setObjectName("verticalLayout_3") self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.select_frame_label = QtWidgets.QLabel(snapshot_panel) self.select_frame_label.setObjectName("select_frame_label") self.horizontalLayout_3.addWidget(self.select_frame_label) self.verticalLayout_3.addLayout(self.horizontalLayout_3) self.frame_listw = QtWidgets.QListWidget(snapshot_panel) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.frame_listw.sizePolicy().hasHeightForWidth()) self.frame_listw.setSizePolicy(sizePolicy) self.frame_listw.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.ExtendedSelection) self.frame_listw.setObjectName("frame_listw") self.verticalLayout_3.addWidget(self.frame_listw) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setContentsMargins(5, 2, -1, 2) self.horizontalLayout_2.setSpacing(10) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.delete_selected_pushb = QtWidgets.QPushButton(snapshot_panel) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.delete_selected_pushb.sizePolicy().hasHeightForWidth()) self.delete_selected_pushb.setSizePolicy(sizePolicy) self.delete_selected_pushb.setObjectName("delete_selected_pushb") self.horizontalLayout_2.addWidget(self.delete_selected_pushb) self.delete_all_pushb = QtWidgets.QPushButton(snapshot_panel) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.delete_all_pushb.sizePolicy().hasHeightForWidth()) self.delete_all_pushb.setSizePolicy(sizePolicy) self.delete_all_pushb.setObjectName("delete_all_pushb") self.horizontalLayout_2.addWidget(self.delete_all_pushb) self.export_button = QtWidgets.QPushButton(snapshot_panel) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.export_button.sizePolicy().hasHeightForWidth()) self.export_button.setSizePolicy(sizePolicy) self.export_button.setObjectName("export_button") self.horizontalLayout_2.addWidget(self.export_button) self.verticalLayout_3.addLayout(self.horizontalLayout_2) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setContentsMargins(-1, 6, -1, 6) self.horizontalLayout.setObjectName("horizontalLayout") spacerItem4 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Minimum) self.horizontalLayout.addItem(spacerItem4) self.display_snapshots_toolbutton = QtWidgets.QToolButton(snapshot_panel) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.display_snapshots_toolbutton.sizePolicy().hasHeightForWidth()) self.display_snapshots_toolbutton.setSizePolicy(sizePolicy) self.display_snapshots_toolbutton.setMinimumSize(QtCore.QSize(250, 0)) self.display_snapshots_toolbutton.setCheckable(True) self.display_snapshots_toolbutton.setObjectName("display_snapshots_toolbutton") self.horizontalLayout.addWidget(self.display_snapshots_toolbutton) spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Minimum) self.horizontalLayout.addItem(spacerItem5) self.verticalLayout_3.addLayout(self.horizontalLayout) self.verticalLayout_5.addLayout(self.verticalLayout_3) self.vline1_2 = QtWidgets.QFrame(snapshot_panel) self.vline1_2.setFrameShape(QtWidgets.QFrame.Shape.HLine) self.vline1_2.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken) self.vline1_2.setObjectName("vline1_2") self.verticalLayout_5.addWidget(self.vline1_2) self.verticalLayout_4 = QtWidgets.QVBoxLayout() self.verticalLayout_4.setObjectName("verticalLayout_4") self.horizontalLayout_9 = QtWidgets.QHBoxLayout() self.horizontalLayout_9.setObjectName("horizontalLayout_9") self.options_label = QtWidgets.QLabel(snapshot_panel) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.options_label.sizePolicy().hasHeightForWidth()) self.options_label.setSizePolicy(sizePolicy) self.options_label.setObjectName("options_label") self.horizontalLayout_9.addWidget(self.options_label) spacerItem6 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) self.horizontalLayout_9.addItem(spacerItem6) self.info_button = QtWidgets.QToolButton(snapshot_panel) self.info_button.setText("") self.info_button.setObjectName("info_button") self.horizontalLayout_9.addWidget(self.info_button) self.verticalLayout_4.addLayout(self.horizontalLayout_9) self.horizontalLayout_10 = QtWidgets.QHBoxLayout() self.horizontalLayout_10.setContentsMargins(10, -1, -1, -1) self.horizontalLayout_10.setObjectName("horizontalLayout_10") self.apply_time_based_gradient_checkb = QtWidgets.QCheckBox(snapshot_panel) self.apply_time_based_gradient_checkb.setObjectName("apply_time_based_gradient_checkb") self.horizontalLayout_10.addWidget(self.apply_time_based_gradient_checkb) spacerItem7 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) self.horizontalLayout_10.addItem(spacerItem7) self.verticalLayout_4.addLayout(self.horizontalLayout_10) self.horizontalLayout_17 = QtWidgets.QHBoxLayout() self.horizontalLayout_17.setContentsMargins(30, -1, -1, -1) self.horizontalLayout_17.setObjectName("horizontalLayout_17") self.verticalLayout_4.addLayout(self.horizontalLayout_17) self.horizontalLayout_11 = QtWidgets.QHBoxLayout() self.horizontalLayout_11.setContentsMargins(10, -1, -1, -1) self.horizontalLayout_11.setObjectName("horizontalLayout_11") self.show_hide_atoms_checkb = QtWidgets.QCheckBox(snapshot_panel) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.show_hide_atoms_checkb.sizePolicy().hasHeightForWidth()) self.show_hide_atoms_checkb.setSizePolicy(sizePolicy) self.show_hide_atoms_checkb.setObjectName("show_hide_atoms_checkb") self.horizontalLayout_11.addWidget(self.show_hide_atoms_checkb) spacerItem8 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) self.horizontalLayout_11.addItem(spacerItem8) self.verticalLayout_4.addLayout(self.horizontalLayout_11) self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.horizontalLayout_12 = QtWidgets.QHBoxLayout() self.horizontalLayout_12.setContentsMargins(30, -1, -1, -1) self.horizontalLayout_12.setObjectName("horizontalLayout_12") self.trajectory_player_settings_radiob = QtWidgets.QRadioButton(snapshot_panel) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.trajectory_player_settings_radiob.sizePolicy().hasHeightForWidth()) self.trajectory_player_settings_radiob.setSizePolicy(sizePolicy) self.trajectory_player_settings_radiob.setObjectName("trajectory_player_settings_radiob") self.settings_buttongroup = QtWidgets.QButtonGroup(snapshot_panel) self.settings_buttongroup.setObjectName("settings_buttongroup") self.settings_buttongroup.addButton(self.trajectory_player_settings_radiob) self.horizontalLayout_12.addWidget(self.trajectory_player_settings_radiob) spacerItem9 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) self.horizontalLayout_12.addItem(spacerItem9) self.verticalLayout_2.addLayout(self.horizontalLayout_12) self.horizontalLayout_13 = QtWidgets.QHBoxLayout() self.horizontalLayout_13.setContentsMargins(30, -1, -1, -1) self.horizontalLayout_13.setObjectName("horizontalLayout_13") self.custom_settings_radiob = QtWidgets.QRadioButton(snapshot_panel) self.custom_settings_radiob.setObjectName("custom_settings_radiob") self.settings_buttongroup.addButton(self.custom_settings_radiob) self.horizontalLayout_13.addWidget(self.custom_settings_radiob) self.change_settings_link = QtWidgets.QPushButton(snapshot_panel) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.change_settings_link.sizePolicy().hasHeightForWidth()) self.change_settings_link.setSizePolicy(sizePolicy) self.change_settings_link.setObjectName("change_settings_link") self.horizontalLayout_13.addWidget(self.change_settings_link) spacerItem10 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) self.horizontalLayout_13.addItem(spacerItem10) self.verticalLayout_2.addLayout(self.horizontalLayout_13) self.verticalLayout_4.addLayout(self.verticalLayout_2) self.verticalLayout_5.addLayout(self.verticalLayout_4) self.line = QtWidgets.QFrame(snapshot_panel) self.line.setLineWidth(2) self.line.setFrameShape(QtWidgets.QFrame.Shape.HLine) self.line.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken) self.line.setObjectName("line") self.verticalLayout_5.addWidget(self.line) self.verticalLayout_6.addLayout(self.verticalLayout_5) self.retranslateUi(snapshot_panel) QtCore.QMetaObject.connectSlotsByName(snapshot_panel)
[docs] def retranslateUi(self, snapshot_panel): _translate = QtCore.QCoreApplication.translate self.add_frames_label.setText(_translate("snapshot_panel", "Add frames to superimpose:")) self.current_workspace_frame_radiob.setText(_translate("snapshot_panel", "Current Workspace frame")) self.current_frame_label.setText(_translate("snapshot_panel", "(Frame X)")) self.stepwise_radio_button.setText(_translate("snapshot_panel", "Stepwise - every nth frame:")) self.specific_frame_numbers_radiob.setText(_translate("snapshot_panel", "Specific frame numbers:")) self.frame_number_line_edit.setPlaceholderText(_translate("snapshot_panel", "range or list, example: 55-59, 62, 75")) self.add_snapshots_pushb.setText(_translate("snapshot_panel", "Add Snapshot")) self.select_frame_label.setText(_translate("snapshot_panel", "Check and uncheck frames to change display:")) self.frame_listw.setSortingEnabled(True) self.delete_selected_pushb.setText(_translate("snapshot_panel", "Delete")) self.delete_all_pushb.setText(_translate("snapshot_panel", "Delete All")) self.export_button.setText(_translate("snapshot_panel", "Export...")) self.display_snapshots_toolbutton.setText(_translate("snapshot_panel", "Display Snapshots")) self.options_label.setText(_translate("snapshot_panel", "Options")) self.apply_time_based_gradient_checkb.setText(_translate("snapshot_panel", "Apply time-based color gradient")) self.show_hide_atoms_checkb.setText(_translate("snapshot_panel", "Show/Hide atoms using:")) self.trajectory_player_settings_radiob.setText(_translate("snapshot_panel", "Trajectory Player settings")) self.custom_settings_radiob.setText(_translate("snapshot_panel", "Custom settings")) self.change_settings_link.setText(_translate("snapshot_panel", "Change"))