schrodinger.ui.qt.forcefield.ffcustomoplssettingwidget module

class schrodinger.ui.qt.forcefield.ffcustomoplssettingwidget.FFCustomOPLSSettingMixin(*args, **kwargs)

Bases: schrodinger.ui.qt.widgetmixins.basicmixins.BaseMixinCollection

Abstract class for creating custom OPLS settings widgets.

Enforces consistent widget appearance and behavior.

Must be inherited by a widget class that defines a .ui file that contains a checkbox called use_customized_version_cb and a FFSettingsButton called ff_settings_btn.

Emits a custom signal with a bool defining ‘use custom force field’ checkbox check state.

Variables

useCustomParameterStateChanged (QtCore.pyqtSignal) – signal indication that use custom forcefield checkbox state is changed.

useCustomParameterStateChanged

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.

initSetUp()

Creates widget from ui and stores it ui_widget.

Suggested subclass use: create and initialize subwidgets, and connect signals.

event(e)

Handle the window activation.

Parameters

e – the event object

Return type

QTCore.QEvent

isUseCustomizedVersionChecked()

Returns True if use customized option is checked, False otherwise. :rtype: bool :return: use customized version checked state.

setUseCustomizedVersionCBState(cb_state)

Sets ‘use customized version’ checkbox state to on/off. :param cb_state: check state of checkbox. :type cb_state: bool

class schrodinger.ui.qt.forcefield.ffcustomoplssettingwidget.FFCustomOPLSSettingWidget(*args, **kwargs)

Bases: schrodinger.ui.qt.forcefield.ffcustomoplssettingwidget.FFCustomOPLSSettingMixin, PyQt6.QtWidgets.QWidget

Standard widget for customizing OPLS settings.

ui_module = <module 'schrodinger.ui.qt.forcefield.ffcustomoplssettingwidget_ui' from '/scr/buildbot/savedbuilds/2024-2/NB/build-134/internal/lib/python3.11/site-packages/schrodinger/ui/qt/forcefield/ffcustomoplssettingwidget_ui.py'>