sec_interp.gui.main_dialog_tools module

Map tool management module for SecInterp main dialog.

This module handles the initialization and orchestration of map tools (pan, measure) used in the preview canvas.

class sec_interp.gui.main_dialog_tools.DialogToolManager(dialog: SecInterpDialog)

Bases: object

Manages map tools and related event handling for the preview canvas.

Initialize tool manager with reference to parent dialog.

Parameters:

dialog – The sec_interp.gui.main_dialog.SecInterpDialog instance

__init__(dialog: SecInterpDialog)

Initialize tool manager with reference to parent dialog.

Parameters:

dialog – The sec_interp.gui.main_dialog.SecInterpDialog instance

initialize_tools() None

Create and configure map tools.

toggle_measure_tool(checked: bool) None

Toggle between measurement and pan tools.

Parameters:

checked – True to activate measure tool, False for pan tool.

handle_wheel_event(event: Any) bool

Handle mouse wheel for zooming in preview canvas.

Parameters:

event – The mouse wheel event.

Returns:

True if event was handled, False otherwise.

Return type:

bool

update_measurement_display(metrics: dict[str, Any]) None

Display measurement results from multi-point tool.

Parameters:

metrics – Dictionary containing measurement data.