sec_interp.gui.main_dialog module
- class sec_interp.gui.main_dialog.SecInterpDialog(*args: Any, **kwargs: Any)[source]
Bases:
SecInterpMainWindowDialog for the SecInterp QGIS plugin.
This dialog provides the user interface and helper methods to populate combo boxes with layers from the current QGIS project (raster and vector layers filtered by geometry type). It also exposes the interface and plugin instance for interaction with the host application.
- iface
The QGIS interface instance.
- Type:
QgsInterface
- messagebar
The message bar widget for notifications.
- Type:
QgsMessageBar
- get_preview_options()[source]
Return the state of preview layer checkboxes.
- Returns:
Keys ‘show_topo’, ‘show_geol’, ‘show_struct’ with boolean values.
- Return type:
dict
- get_selected_values()[source]
Get the selected values from the dialog.
- Returns:
Dictionary with all dialog values in legacy flat format
- handle_error(error: Exception, title: str = 'Error')[source]
Centralized error handling for the dialog.
- Parameters:
error – The exception to handle.
title – Title for the error message box.
- property interpretations
Proxy to interpretations in the manager for backward compatibility.
- on_interpretation_finished(interpretation: InterpretationPolygon) None[source]
Handle finalized interpretation polygon.
- preview_profile_handler()[source]
Generate a quick preview with topographic, geological, and structural data.
This method delegates to PreviewManager for preview generation.
- toggle_interpretation_tool(checked: bool) None[source]
Toggle interpretation tool via tool_manager.
- update_measurement_display(metrics: dict[str, Any]) None[source]
Display measurement results from multi-point tool via tool_manager.
- update_preview_from_checkboxes()[source]
Update preview when checkboxes change.
This method delegates to PreviewManager for preview updates.