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, ortho)[source]¶
Bases:
fsleyes.controls.controlpanel.ControlToolBar
The
OrthoEditActionToolBar
is a toolbar used by theOrthoPanel
, 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
Copy/paste data between images
- static supportedViews()[source]¶
Overrides
ControlMixin.supportedViews()
. TheOrthoEditActionToolBar
is only intended to be added toOrthoPanel
views.
- static profileCls()[source]¶
The
OrthoEditActionToolBar
is intended to be activated with theOrthoEditProfile
.
- static ignoreControl()[source]¶
The
OrthoEditActionToolBar
is not intended to be explicitly added by the user - it is added viaOrthoPanel.toggleEditMode()
. Overriding this method tells theFSLeyesFrame
that it should not be added to the ortho panel settings menu.
- __init__(parent, overlayList, displayCtx, ortho)[source]¶
Create an
OrthoEditActionToolBar
.- Parameters
parent – The
wx
parent objectoverlayList – The
OverlayList
instance.displayCtx – The
DisplayContext
instance.ortho – The
OrthoPanel
instance.
- destroy()[source]¶
Must be called when this
OrthoEditActionToolBar
is no longer needed. Clears references, and calls the base-classdestroy
method.
- __createTools()¶
Called when the
ViewPanel.profile
property of theOrthoPanel
changes. Shows/hides edit controls accordingly.
- __annotations__ = {}¶
- __module__ = 'fsleyes.controls.orthoeditactiontoolbar'¶