sec_interp.gui.ui_status_manager module

UI Status and indication manager for SecInterp main dialog.

class sec_interp.gui.ui_status_manager.UIStatusManager(dialog: SecInterpDialog)

Bases: object

Manages visual status (indicators, icons, button enablement) of the dialog.

__init__(dialog: SecInterpDialog) → None

Initialize UI status manager.

setup_indicators() → None

Paint the initial required-field indicators.

update_all() → None

Update all visual status components.

update_button_state() → None

Enable or disable buttons (S0/S1/S2 gating).

S0 (DEM/Section incomplete): everything disabled. S1 (inputs valid, no current preview): only Preview and OK. S2 (preview generated for the current inputs): Export/Measure/Interpret join in.

update_page_states() → None

Enable dependent pages only when DEM and Section are valid.

Geology/Structural/Drillholes stay disabled until the two mandatory inputs are filled; if the visible page becomes disabled, fall back to the DEM page.

update_preview_checkbox_states() → None

Enable or disable preview checkboxes based on input validity.

update_raster_status() → None

Update raster layer status icon (red on mislabel, amber on mismatch).

update_section_status() → None

Update section line status icon.