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

SpreadsheetUI : Support drop of values/plugs on to cells #4045

Merged

Conversation

themissingcow
Copy link
Contributor

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.

@themissingcow themissingcow self-assigned this Dec 1, 2020
@themissingcow themissingcow changed the title SpreadsheetUI : Support drop of plugs on to cells to set input SpreadsheetUI : Support drop of values/plugs on to cells Dec 2, 2020
@themissingcow themissingcow added the pr-hold PRs that should not be merged because they are incomplete, outdated, or paused by the author label Dec 3, 2020
themissingcow pushed a commit to themissingcow/gaffer that referenced this pull request Dec 7, 2020
We noticed the disparity in GafferHQ#4045 where dragMove would have a different
origin to mouseMove.
themissingcow pushed a commit to themissingcow/gaffer that referenced this pull request Dec 7, 2020
We noticed the disparity in GafferHQ#4045 where dragMove would have a different
origin to mouseMove.
themissingcow pushed a commit to themissingcow/gaffer that referenced this pull request Dec 7, 2020
We noticed the disparity in GafferHQ#4045 where dragMove would have a different
origin to mouseMove.
themissingcow pushed a commit to themissingcow/gaffer that referenced this pull request Dec 9, 2020
We noticed the disparity in GafferHQ#4045 where dragMove would have a different
origin to mouseMove.
@themissingcow themissingcow changed the base branch from 0.58_maintenance to 0.59_maintenance December 10, 2020 10:10
@themissingcow themissingcow removed the pr-hold PRs that should not be merged because they are incomplete, outdated, or paused by the author label Dec 10, 2020
Copy link
Member

@johnhaddon johnhaddon left a 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!

python/GafferUI/SpreadsheetUI/_PlugTableView.py Outdated Show resolved Hide resolved
python/GafferUI/SpreadsheetUI/_PlugTableView.py Outdated Show resolved Hide resolved
python/GafferUI/SpreadsheetUI/_PlugTableView.py Outdated Show resolved Hide resolved
python/GafferUI/SpreadsheetUI/_PlugTableView.py Outdated Show resolved Hide resolved
python/GafferUI/SpreadsheetUI/_PlugTableView.py Outdated Show resolved Hide resolved
python/GafferUI/SpreadsheetUI/_ClipboardAlgo.py Outdated Show resolved Hide resolved
@themissingcow
Copy link
Contributor Author

Thanks for the 🦅 👁️ as ever John, hopefully those are all addressed. Going to go give it a poke.

@themissingcow themissingcow added the pr-hold PRs that should not be merged because they are incomplete, outdated, or paused by the author label Dec 11, 2020
@themissingcow
Copy link
Contributor Author

Hold till #4063 is merged

@johnhaddon
Copy link
Member

Thanks Tom, LGTM. Could you do the rejig now that #4063 is merged, and squash the fixups down too?

@johnhaddon johnhaddon removed the pr-hold PRs that should not be merged because they are incomplete, outdated, or paused by the author label Dec 15, 2020
@themissingcow
Copy link
Contributor Author

Thanks Tom, LGTM. Could you do the rejig now that #4063 is merged, and squash the fixups down too?

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.
@johnhaddon johnhaddon merged commit 2d4c405 into GafferHQ:0.59_maintenance Dec 16, 2020
@themissingcow themissingcow deleted the spreadsheetPlugDragDrop branch December 17, 2020 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants