Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a NewMode for the EditSubsetMode #1525

Merged
merged 1 commit into from
Feb 16, 2018

Conversation

astrofrog
Copy link
Member

@drdavella - this adds a new mode in the selection toolbar and in EditSubsetMode which controls whether a new selection is create each time (I prefer to have this than a per-mode setting otherwise things will get confusing). In CubeViz we could then set EditSubsetMode.mode = NewMode at the start.

My plan is then (in a follow-up PR) to add a way to say that modes should always change back to the default after each selection, or instead to always 'stick' to what the user selected.

@drdavella
Copy link
Collaborator

Sounds good to me. Just curious but does this preclude the possibilty of a "context-sensitve" toolbar mode? For example, when an ROI is selected, activating an ROI mode would edit the corresponding subset, but when no ROI is selected, the mode would create a new subset.

@astrofrog
Copy link
Member Author

Just curious but does this preclude the possibilty of a "context-sensitve" toolbar mode? For example, when an ROI is selected, activating an ROI mode would edit the corresponding subset, but when no ROI is selected, the mode would create a new subset.

The default ReplaceMode is actually a mode which does exactly that (modify if selected, new if none is selected). To get this to work, I think you just need to make sure that if the user clicks outside all the ROIs, that this deselects any subset in the top left data collection widget.

@drdavella
Copy link
Collaborator

Okay, great. Yes I had planned to do this in another PR (unless you were already working on that). In addition, as a helpful cue to users, I think it would be useful to make the yellow overlay region persist for as long as a region/subset is selected.

Copy link
Collaborator

@drdavella drdavella left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just tried this out. Works great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants