bec_widgets.widgets.containers.dock_area.settings.dialogs#
Classes#
Resizable preview pane that scales its pixmap with aspect ratio preserved. |
|
Confirmation dialog that previews the current profile screenshot against the default baseline. |
|
Dialog for saving workspace profiles with quick select option. |
Module Contents#
- class PreviewPanel(title: str, pixmap: qtpy.QtGui.QPixmap | None, parent: qtpy.QtWidgets.QWidget | None = None)#
Bases:
qtpy.QtWidgets.QGroupBoxResizable preview pane that scales its pixmap with aspect ratio preserved.
- _update_scaled_pixmap()#
- resizeEvent(event)#
- setPixmap(pixmap: qtpy.QtGui.QPixmap | None)#
Set the pixmap to display in the preview panel.
- Parameters:
pixmap (QPixmap | None) – The pixmap to display. If None or null, clears the preview.
- image_label#
- class RestoreProfileDialog(parent: qtpy.QtWidgets.QWidget | None, current_pixmap: qtpy.QtGui.QPixmap | None, default_pixmap: qtpy.QtGui.QPixmap | None)#
Bases:
qtpy.QtWidgets.QDialogConfirmation dialog that previews the current profile screenshot against the default baseline.
- static confirm(parent: qtpy.QtWidgets.QWidget | None, current_pixmap: qtpy.QtGui.QPixmap | None, default_pixmap: qtpy.QtGui.QPixmap | None) bool#
- class SaveProfileDialog(parent: qtpy.QtWidgets.QWidget | None = None, current_name: str = '', current_profile_name: str = '', *, name_exists: Callable[[str], bool] | None = None, profile_origin: Callable[[str], Literal['module', 'plugin', 'settings', 'unknown']] | None = None, origin_label: Callable[[str], str | None] | None = None, quick_select_checked: bool = False)#
Bases:
qtpy.QtWidgets.QDialogDialog for saving workspace profiles with quick select option.
- _generate_unique_name(base: str) str#
- _on_name_changed(_: str)#
- _on_overwrite_toggled(checked: bool)#
- _update_save_button()#
Enable save button only when name is not empty.
- accept()#
- get_profile_name() str#
Return the entered profile name.
- is_quick_select() bool#
Return whether the profile should appear in quick select.
- name_edit#
- overwrite_checkbox#
- overwrite_existing = False#
- quick_select_checkbox#
- save_btn#