sec_interp.gui.dialog_preview_manager module

Preview management module for SecInterp main dialog.

This module handles preview generation, rendering, and updates, separating preview logic from the main dialog class.

class sec_interp.gui.dialog_preview_manager.PreviewManager(dialog: Any, preview_service: IPreviewService | None = None)

Bases: object

Manages preview generation and rendering for the dialog.

This class encapsulates all preview-related logic, including data generation, rendering, and updates based on user interactions.

__init__(dialog: Any, preview_service: IPreviewService | None = None) None

Initialize preview manager with specialized components.

cleanup() None

Clean up resources and stop background tasks.

generate_preview() tuple[bool, str]

Generate complete preview with all available data layers.

update_from_checkboxes() None

Update preview when checkboxes change.

This method re-renders the preview using cached data and current checkbox states without regenerating data.