fsleyes.controls.orthoeditactiontoolbar

This module provides the OrthoEditActionToolbar, a toolbar used by the OrthoPanel in edit mode, which contains various buttons allowing the user to run various edit-related actions.

class fsleyes.controls.orthoeditactiontoolbar.OrthoEditActionToolBar(parent, overlayList, displayCtx, frame, ortho)

Bases: fsleyes.controls.controlpanel.ControlToolBar

The OrthoEditActionToolBar is a toolbar used by the OrthoPanel, which contains buttons allowing the user to:

  • Open the OrthoEditSettingsPanel

  • Create a new Image

  • Undo/redo the last change

  • Clear/fill/erase the current selection

__init__(parent, overlayList, displayCtx, frame, ortho)

Create an OrthoEditActionToolBar.

Parameters
  • parent – The wx parent object

  • overlayList – The OverlayList instance.

  • displayCtx – The DisplayContext instance.

  • frame – The FSLeyesFrame instance.

  • ortho – The OrthoPanel instance.

destroy()

Must be called when this OrthoEditAction is no longer needed. Removes property listeners, and calls the ControlToolBar.destroy() method.

static supportedViews()

Overrides ControlMixin.supportedViews(). The OrthoEditActionToolBar is only intended to be added to OrthoPanel views.

_OrthoEditActionToolBar__profileChanged(*a)

Called when the ViewPanel.profile property of the OrthoPanel changes. Shows/hides edit controls accordingly.

__module__ = 'fsleyes.controls.orthoeditactiontoolbar'