-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moving and deleting multiple trees in skeletontracing (#3457)
* added todo-comments * adding group selecting * implemented selecting and auto (de)selecting a whole group of trees * and here are the changes * moved selective tree/groups handling one level up in the hierarchy * enabled dragging multiple trees * added cursor property to deselecting icon * added selection guard to groups and trees * fixed selecting tree groups bug; added moving multiple trees * fixed selecting a group bug * added check for parent group selected * fixed moving and visual bugs * removed logging * refectoring + added deleting selected trees, but not tested * fixed deleting all selected trees and a typo * enabled deleting groups onClick * heavily refactoring and added comments for understanding * Update CHANGELOG.md * change selection keys to ctrl + left mouse * moved selecting message to trees tab view, change coloring and fix bug occuring when moving * added keyboard shortcut info * added feature to documentation * removed unused sticky mouse tool tip * applied pr feedback; removing group selection still missing * removed multiple group selection, deletion and moving * applied pr feedback; no active tree while multi selection * added modal to confirm group selection when there are active trees * added proper corner cases handling for tree selection, resolved deleting group error * fix scrollbars caused by wrong class * applied feedback and changed group deletion to be recursive * remove missing groups from trees when updating tree groups
- Loading branch information
1 parent
c623b7a
commit 5b83ca0
Showing
11 changed files
with
450 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
app/assets/javascripts/oxalis/view/right-menu/delete_group_modal_view.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// @flow | ||
import * as React from "react"; | ||
import { Modal, Button } from "antd"; | ||
import messages from "messages"; | ||
|
||
type Props = { | ||
onJustDeleteGroup: () => void, | ||
onDeleteGroupAndTrees: () => void, | ||
onCancel: () => void, | ||
}; | ||
|
||
export default function DeleteGroupModalView({ | ||
onJustDeleteGroup, | ||
onDeleteGroupAndTrees, | ||
onCancel, | ||
}: Props) { | ||
return ( | ||
<Modal | ||
visible | ||
title={messages["tracing.group_deletion_message"]} | ||
onOk={onJustDeleteGroup} | ||
onCancel={onCancel} | ||
footer={[ | ||
<Button key="back" onClick={onCancel}> | ||
Cancel | ||
</Button>, | ||
<Button key="submit-all" onClick={onDeleteGroupAndTrees}> | ||
Remove group recursively | ||
</Button>, | ||
<Button key="submit-groups-only" type="primary" onClick={onJustDeleteGroup}> | ||
Remove group only | ||
</Button>, | ||
]} | ||
> | ||
Do you really want to remove the selected group? If you want to remove the group with all its | ||
trees and subgroups recursively, select "Remove group recursively". If you want to | ||
remove just the group and keep the subtrees and subgroups select "Remove group | ||
only". | ||
</Modal> | ||
); | ||
} |
Oops, something went wrong.