-
Notifications
You must be signed in to change notification settings - Fork 206
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
SpreadsheetUI : Support drop of values/plugs on to cells #4045
SpreadsheetUI : Support drop of values/plugs on to cells #4045
Conversation
a0c702d
to
75cc4a8
Compare
3df33fc
to
e71feac
Compare
We noticed the disparity in GafferHQ#4045 where dragMove would have a different origin to mouseMove.
We noticed the disparity in GafferHQ#4045 where dragMove would have a different origin to mouseMove.
We noticed the disparity in GafferHQ#4045 where dragMove would have a different origin to mouseMove.
We noticed the disparity in GafferHQ#4045 where dragMove would have a different origin to mouseMove.
e71feac
to
405623b
Compare
405623b
to
d5baad0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Tom, another fine addition!
Thanks for the 🦅 👁️ as ever John, hopefully those are all addressed. Going to go give it a poke. |
Hold till #4063 is merged |
Thanks Tom, LGTM. Could you do the rejig now that #4063 is merged, and squash the fixups down too? |
83149ee
to
ef01225
Compare
Thanks @johnhaddon, quashed and rebased. |
There was some debate as to how drag/drop should interact with the sheet's selection. This option simply replaces the selection as appropriate target cells are hovered. This mimics the existing `setHighlighted` behaviours of other UI elements. An alternative suggestion was to only apply the drop to the current selection. This would simplify setting the input to multiple cells at once, but make the case of setting a single cell harder as it would need to be selected first. We can always revisit this over time as it is used more in practice.
Make use of the existing paste mechanism. Long term this should probably be better aligned with `PlugValueWidget.__drop`.
Allows strings to be pasted into vector data plugs, and single element vectors to be pasteed into string plugs.
ef01225
to
4448746
Compare
There was some debate as to how drag/drop should interact with the sheet's selection. This option simply replaces the selection as appropriate target cells are hovered. This mimics the existing
setHighlighted
behaviours of other UI elements.An alternative suggestion was to only apply the drop to the current selection. This would simplify setting the input to multiple cells at once, but make the case of setting a single cell harder as it would need to be selected first.
We can always revisit this over time as
it is used more in practice.