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

JDAT-1222: Blinking/tabbing between images #520

Closed
2 tasks done
pllim opened this issue Apr 13, 2021 · 7 comments · Fixed by #611
Closed
2 tasks done

JDAT-1222: Blinking/tabbing between images #520

pllim opened this issue Apr 13, 2021 · 7 comments · Fixed by #611
Assignees
Milestone

Comments

@pllim
Copy link
Contributor

pllim commented Apr 13, 2021

Blink one or more images in the same viewer.

https://jira.stsci.edu/browse/JDAT-1222

Follow-up of #429

@astrofrog
Copy link
Collaborator

astrofrog commented May 11, 2021

For now, I suggest the following approach - add a new 'blinking' CheckableTool which once enabled will enable the 'b' keyboard shortcut and also show a tooltip that tells the user they can press b to blink. The main difficulty is going to be to pick an icon!

An alternative is to implement a Tool (non-checkable) that when clicked will blink the images once, and again could have a tooltip that tells the user they can also press b to blink (anytime, not just when the tool is checked).

In the first case the only way to blink is to press b (when the tool is enabled) and in the second case the user can either click the tool or press b.

I don't have a strong preference - both are relatively easy to implement.

@pllim
Copy link
Contributor Author

pllim commented May 11, 2021

UI/UX part of this ticket has been superseded by #604 . The scope of this issue is now strictly to document b.

@pllim
Copy link
Contributor Author

pllim commented May 11, 2021

What is the difference between "checkable" and "non-checkable" tools?

How about this? Click to continuously blink all active images every N seconds (we can hardcode N for now) and click again to stop. Mouseover to tell people that "b" does manual blinking too.

@astrofrog
Copy link
Collaborator

astrofrog commented May 12, 2021

A checkable tool is like pan and zoom or the selection tools - once enable you can do something with e.g. the cursor or keyboard. A non-checkable tool is like the home icon - it does an action as you press it and then returns to not being selected. Does this make sense? (how to write these is documented here)

As I mentioned yesterday, continuously blinking the images requires some kind of threading because we need to blink while also checking for click events to make sure you can stop the tool (hence my alternative suggestions above).

@pllim
Copy link
Contributor Author

pllim commented May 12, 2021

some kind of threading

I thought we were told not to worry about threading but I guess blocking click event to stop blinking is a deal breaker. 😆

@pllim
Copy link
Contributor Author

pllim commented May 12, 2021

An alternative is to implement a Tool (non-checkable) that when clicked will blink the images once, and again could have a tooltip that tells the user they can also press b to blink (anytime, not just when the tool is checked).

I slightly prefer this one. I'll give that a stab today.

@astrofrog
Copy link
Collaborator

Sounds good! Let me know if you have any questions!

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

Successfully merging a pull request may close this issue.

2 participants