use of com.helospark.tactview.core.timeline.marker.markers.InpointMarker in project tactview by helospark.
the class DefaultEditMenuItemConfiguration method addInpointMenuItem.
@Bean
@Order(1940)
public SelectableMenuContribution addInpointMenuItem(AlertDialogFactory dialogFactory, TimelineState timelineState, MarkerRepository markerRepository) {
KeyCodeCombination combination = hotKeyRepository.registerOrGetHotKey("addInpoint", new KeyCodeCombination(KeyCode.I, KeyCodeCombination.CONTROL_DOWN, KeyCombination.SHIFT_DOWN), "Add inpoint").getCombination();
return new DefaultMenuContribution(List.of(EDIT_ROOT, MARKER, "Add inpoint"), event -> {
TimelinePosition position = timelineState.getPlaybackPosition();
markerRepository.addMarker(position, new InpointMarker());
}, combination);
}
use of com.helospark.tactview.core.timeline.marker.markers.InpointMarker in project tactview by helospark.
the class TimelineCanvasTimelineHeaderClickHandler method populateInpointMenuItem.
private void populateInpointMenuItem(Menu convertMarker, TimelinePosition position) {
MenuItem menuItem = new MenuItem("Inpoint");
menuItem.setOnAction(e -> {
markerRepository.addMarker(position, new InpointMarker());
});
convertMarker.getItems().add(menuItem);
}
Aggregations