schrodinger.ui.qt.presets.manage_presets_dialog module¶
- class schrodinger.ui.qt.presets.manage_presets_dialog.PresetRowModel(*args, _param_type=<object object>, **kwargs)¶
- Bases: - schrodinger.models.parameters.CompoundParam- preset_name: str¶
- A parameter of the class. 
 - is_default: bool¶
- A parameter of the class. 
 - is_defaultChanged¶
- A - pyqtSignalemitted by instances of the class.
 - is_defaultReplaced¶
- A - pyqtSignalemitted by instances of the class.
 - preset_nameChanged¶
- A - pyqtSignalemitted by instances of the class.
 - preset_nameReplaced¶
- A - pyqtSignalemitted by instances of the class.
 
- class schrodinger.ui.qt.presets.manage_presets_dialog.ManagePresetsModel(*args, _param_type=<object object>, **kwargs)¶
- Bases: - schrodinger.models.parameters.CompoundParam- preset_names: List[schrodinger.ui.qt.presets.manage_presets_dialog.PresetRowModel]¶
- A parameter of the class. 
 - selected_names: List[schrodinger.ui.qt.presets.manage_presets_dialog.PresetRowModel]¶
- A parameter of the class. 
 - preset_namesChanged¶
- A - pyqtSignalemitted by instances of the class.
 - preset_namesReplaced¶
- A - pyqtSignalemitted by instances of the class.
 - selected_namesChanged¶
- A - pyqtSignalemitted by instances of the class.
 - selected_namesReplaced¶
- A - pyqtSignalemitted by instances of the class.
 
- class schrodinger.ui.qt.presets.manage_presets_dialog.ManagePresetsTableSpec(*args, _param_type=<object object>, **kwargs)¶
- Bases: - schrodinger.ui.qt.mapperwidgets.plptable.TableSpec- preset_name = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>¶
 - is_default = <schrodinger.ui.qt.mapperwidgets.plptable.FieldColumn object>¶
 - displayDefault(is_default)¶
 - columnsChanged¶
- A - pyqtSignalemitted by instances of the class.
 - columnsReplaced¶
- A - pyqtSignalemitted by instances of the class.
 
- class schrodinger.ui.qt.presets.manage_presets_dialog.ManagePresetsDialog(preset_manager, preset_model)¶
- Bases: - schrodinger.models.mappers.MapperMixin,- schrodinger.ui.qt.basewidgets.BaseDialog- ui_module = <module 'schrodinger.ui.qt.presets.manage_presets_dialog_ui' from '/scr/buildbot/builds/core-suite-ci/core-suite-ci/build/internal/lib/python3.11/site-packages/schrodinger/ui/qt/presets/manage_presets_dialog_ui.py'>¶
 - model_class¶
- alias of - schrodinger.ui.qt.presets.manage_presets_dialog.ManagePresetsModel
 - __init__(preset_manager, preset_model)¶
- Parameters
- preset_manager (schrodinger.models.tasks.presets.PresetManager) – The preset manager to use for saving a preset. 
- preset_model (schrodinger.models.parameters.CompoundParam) – The model to use for applying any presets. 
 
 
 - initSetUp()¶
- Creates widget from - uiand stores it- ui_widget.- Suggested subclass use: create and initialize subwidgets, and connect signals. 
 - initLayOut()¶
- @overrides: widgetmixins.InitMixin 
 - initFinalize()¶
- Suggested subclass use: perform any remaining initialization. 
 - defineMappings()¶
- Override this in the subclass to define mappings. Should return a list of tuples [(<target>, <param>)]. Targets can be: - a basic widget, like - QLineEditor- QComboBox
- a custom object that inherits - MapperMixinor- TargetMixin
- a - TargetSpecinstance
- a slot 
 - For common widgets, standard signals and getter/setter methods will be used, as defined in - mappers._get_default_access_names().- For more fine-grained custom control, instantiate a - TargetSpecobject, which allows custom setters, getters, and signals to be specified.- Supplying a slot as the first element of the tuple is equivalent to providing - TargetSpec(slot=my_slot).- Note that all target slots are triggered on - setModel()as well as in response to the specified signal.- The param is an abstract param reference, e.g. MyModel.my_param. - Example: - def defineMappings(self): combo = self.style_combo return [(self.name_le, MyModel.name), (TargetSpec(combo, getter=combo.currentText, setter=combo.setCurrentText), MyModel.style), (self.coord_widget, MyModel.coord), (self._onASLTextChanged, MyModel.asl_text)] 
 - getSignalsAndSlots(model)¶
- Override this method to specify signal and slot pairs that need to be connected/disconnected whenever the model instance is switched using setModel. The model instance is provided as an argument so that instance-specific signals can be used, but any pairs of signals and slots may be returned from this method. - Returns
- a list of 2-tuples where each tuple is a signal, slot pair