# sec_interp.gui.dialog_state_manager module

State management module for SecInterp main dialog.

Handles both visual status (indicators, button enablement) and persistence (saving/loading settings) by delegating to specialized managers.

class sec_interp.gui.dialog_state_manager.StateManager(dialog: SecInterpDialog)

  Bases: `object`

  Manages the state of the dialog via delegation.

  This class acts as a central orchestrator connecting specialized managers for persistence and visual status.

  __init__(dialog: SecInterpDialog) → None

    Initialize state manager and its components.

  connect_checked(widget: Any, signal: Any, slot: Any) → None

    Connect a signal and track it for later disconnection.

  disconnect_signals() → None

    Disconnect all UI signals to prevent memory leaks.

  load_settings() → None

    Load user settings from previous session.

  reset_to_defaults() → None

    Reset all dialog inputs to their default values.

  save_settings() → None

    Save user settings for next session.

  setup_indicators() → None

    Set up required field indicators with warning icons.

  update_all() → None

    Update all UI status components.

  update_button_state() → None

    Enable or disable buttons based on input validity.

  update_preview_checkbox_states() → None

    Enable or disable preview checkboxes.

  update_raster_status() → None

    Update raster layer status icon.

  update_section_status() → None

    Update section line status icon.