Skip to content

inspector_controller

Controller for the inspector dock — shows details for instruments and transactions.

Classes:

  • InspectorController

    Controls the inspector dock, showing details for instruments and transactions.

InspectorController

InspectorController(inspector_widget: BRMSInspectorWidget)

Bases: BRMSController

Controls the inspector dock, showing details for instruments and transactions.

Methods:

bind_services

bind_services(bank: Bank, journal: Journal) -> None

Bind core services needed for transaction inspection.

connect_signals

connect_signals() -> None

Connect context menu for copy actions on the inspector tree.

copy_details

copy_details() -> None

Copy the current inspector details to clipboard as tab-separated text.

show_instrument_details

show_instrument_details(
    instrument: Instrument,
    positions: list[Position] | None = None,
) -> None

Show the details of the given instrument in the inspector view.

When positions is provided, the view renders nested Instrument and Position (or Positions for multiple) sections, mirroring the layout used by transaction details.

show_transaction_details

show_transaction_details(transaction: Transaction) -> None

Show comprehensive transaction details in the inspector view.