sec_interp.gui.dialog_input_manager module

Input management module for SecInterp main dialog.

Handles data aggregation and validation for the dialog UI.

class sec_interp.gui.dialog_input_manager.InputManager(pages: Pages, output_widget: Any, translate: Callable[[str], str])

Bases: object

Manages dialog inputs, including data collection and validation.

__init__(pages: Pages, output_widget: Any, translate: Callable[[str], str]) → None

Initialize input manager.

Parameters:
  • pages – The configuration pages to collect data from.

  • output_widget – The output path widget.

  • translate – Translation function (dialog tr).

can_export() → bool

Check if export requirements are met.

can_preview() → bool

Check if basic preview requirements are met.

get_all_values() → dict[str, Any]

Get all UI values as a flat dictionary.

get_crs_plausibility_error() → str

Return a blocking mislabelled-CRS error for the layers, or "".

get_crs_warning() → str

Return a CRS-mismatch warning for the configured layers, or "".

get_section_error(section: str) → str

Get error message for a section.

get_validation_params() → ValidationParams

Collect current UI state into ValidationParams.

is_section_valid(section: str) → bool

Check if a section is valid.

validate_inputs() → tuple[bool, str]

Validate all inputs via core ProjectValidator.

validate_preview_requirements() → tuple[bool, str]

Validate minimum requirements for preview.