Skip to content

Context Actions

app.domain.detection.context_actions

View source code

Right-click context menu actions for detection editing (add, copy, delete, select, reset).

See Also

Layer: Domain. Context: Defines application concepts independently of UI and infrastructure implementations.

AnnotationContextActions

Bases: str, Enum

Right-click context menu and keyboard actions for detection editing.

Note

Includes single-detection actions such as add, edit, and delete; multi-detection actions such as copy, directional delete, and delete-all; selection actions such as select all, none, and inverse; and reset actions for reverting Layer B or Layer D view_state. Clipboard operations are also included. AnnotationHandler routes each action to the appropriate service method.

Layer: Domain. Context: Represents application concepts without UI or infrastructure dependencies.

ADD_BBOX_HERE = 'add_bbox_here' class-attribute instance-attribute

COPY = 'copy' class-attribute instance-attribute

COPY_CURRENT = 'copy_current' class-attribute instance-attribute

COPY_NEXT = 'copy_next' class-attribute instance-attribute

COPY_PREV = 'copy_prev' class-attribute instance-attribute

DELETE = 'delete' class-attribute instance-attribute

DELETE_ALL_BBOXES = 'delete_all_bboxes' class-attribute instance-attribute

DELETE_NEXT = 'delete_next' class-attribute instance-attribute

DELETE_PREV = 'delete_prev' class-attribute instance-attribute

EDIT = 'edit' class-attribute instance-attribute

NO_OP = 'noop' class-attribute instance-attribute

PASTE = 'paste' class-attribute instance-attribute

RELABEL = 'relabel' class-attribute instance-attribute

RESET_ALL = 'reset_all_frames' class-attribute instance-attribute

RESET_ALL_TRACKERS = 'reset_all_trackers' class-attribute instance-attribute

RESET_FRAME = 'reset_current_frame' class-attribute instance-attribute

RESET_TRACKER_FRAME = 'reset_tracker_frame' class-attribute instance-attribute

SELECT_ALL = 'select_all' class-attribute instance-attribute

SELECT_INVERSE = 'select_inverse' class-attribute instance-attribute

SELECT_NONE = 'select_none' class-attribute instance-attribute