sec_interp.gui.dialog_signal_manager module

Signal management module for SecInterp main dialog.

This module handles all signal connections for the dialog, separating signal setup from the main dialog class.

class sec_interp.gui.dialog_signal_manager.SignalManager(dialog: SecInterpDialog, preview_manager: Any, export_manager: Any, tool_manager: Any, state_manager: Any)

Bases: object

Manages all signal connections for SecInterpDialog.

This class organizes signal connections into logical groups, making the dialog initialization cleaner and more maintainable. It wires widgets directly to the injected managers (event-bus style), using the dialog only for the widgets themselves and orchestration handlers.

__init__(dialog: SecInterpDialog, preview_manager: Any, export_manager: Any, tool_manager: Any, state_manager: Any) → None

Initialize signal manager.

Parameters:
  • dialog – The dialog providing widgets and orchestration handlers.

  • preview_manager – Handles preview generation/rendering.

  • export_manager – Handles export operations.

  • tool_manager – Handles map tools.

  • state_manager – Handles UI state and settings.

connect_all() → None

Connect all signals in organized groups.

This method is idempotent: it disconnects first to avoid double connections.

disconnect_all() → None

Disconnect all signals to prevent memory leaks.