schrodinger.trajectory.trajectory_gui_dir.advanced_settings module¶
- class schrodinger.trajectory.trajectory_gui_dir.advanced_settings.MessageType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)¶
Bases:
enum.Enum
Holds enums for error, warning, no issue cases
- NONE = 'none'¶
- ERROR = 'error'¶
- WARNING = 'warning'¶
- class schrodinger.trajectory.trajectory_gui_dir.advanced_settings.AdvancedSettings(hide_hideatoms_related_settings, parent=None)¶
Bases:
PyQt6.QtWidgets.QDialog
Advanced settings class for trajectory viewer
- Variables
advancedSettingsDismissed() – A signal emitted after dismissing AdvancedSettings dialog.
advancedSettingsChanged() – A signal emitted when advanced settings are changed.
- advancedSettingsDismissed¶
pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- advancedSettingsChanged¶
pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- __init__(hide_hideatoms_related_settings, parent=None)¶
- Parameters
hide_hideatoms_related_settings (bool) – A flag indicating whether to hide/show hide atoms related settings.
parent (QWidget) – The Qt parent
- setPlaybackSettingsData(settings_data, has_pbsettings_data, fsys_atom_total=0)¶
Set the playback settings data to the current entry trajectory. If the entry trajectory has saved placback settings, the same will be used to show in UI. Otherwise, populate the latest values from UI and override the values in settings_data
- Parameters
settings_data (PlaybackSettingsData Object) – Playback settings data stored in PlaybackSettings object
has_pbsetetings_data – True if the current entry trajectory has saved playback setings data
fsys_atom_total (int) – Total number of atoms in the system
- showDlg()¶
Update the dialog and post it.
- setReplicateErrorWarningIcon(message_type: schrodinger.trajectory.trajectory_gui_dir.advanced_settings.MessageType)¶
Set the icon and the text for warning and error scenarios
- updateStatusLabel(title: str, message_type: schrodinger.trajectory.trajectory_gui_dir.advanced_settings.MessageType, tooltip: str)¶
Update status label associated with replication components.
- updateReplicatedAtomTotalStatus()¶
Check the current atom total based on the replication settings
- enableOK()¶
Enable ‘OK’ button
- isDisplayOnlyCurrentDisplayedAtoms()¶
Whether to display only currently displayed atoms
- updateBidningSiteRadius()¶
Set enable state of ‘Define binding site radius as:’.
- updateAtomSelectorWidget()¶
Set enable state of atom selector widget
- updateDlg()¶
Update dialog according to data
- cancelClicked()¶
Reject and emit advancedSettingsDismissed() signal when clicked on ‘Cancel’ button
- isValidASL(asl)¶
Return True if asl in the text box is valid.
- okClicked()¶
Update data according to dialog
- help()¶
Shows ‘Advanced Playback Settings’ dialog help