-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[ui] AttributeEditor: Feature/attribute navigation buttons #2716
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
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
ef57737
[ui] AttributeEditor: Add navigation buttons for linked attributes
nicolas-lambert-tc a26870c
[ui] AttributeEditor: Add missing singal connections to allow attribu…
nicolas-lambert-tc 3a9565f
[ui] AttributeEditor: The attribute nav buttons are now aligned with …
nicolas-lambert-tc 97196d9
[ui] Attribute: Add tests to check retrieving the linked input/output…
nicolas-lambert-tc 2f39d41
[ui] Attribute: Refacto the test to avoid the coverage complaining ab…
nicolas-lambert-tc ea1adcd
[ui] AttributeEditor: Remove console.log
nicolas-lambert-tc a3056c8
[ui] AttributeEditor: Factorize the visibility conditions in nav buttons
nicolas-lambert-tc 96a09fe
[ui,core] Attribute: Refacto the linked attributes method's name for …
nicolas-lambert-tc 1de3834
[ui] AttributeDelegate: Use correct alignment strategy to avoid warnings
nicolas-lambert-tc 1943474
[ui] AttributeEditor: Now, middle click on nav button fit the view to…
nicolas-lambert-tc cc4e1a2
[ui, core] AttributeEditor: Fix the ListAttribute navigation buttons …
nicolas-lambert-tc 3de4471
[ui] AttributeItemDelegate: Add navButton ids for clarity and future …
nicolas-lambert-tc 812cc65
[ui] NodeEditor: add the listing of connected attributes for rightCli…
nicolas-lambert-tc cc2d485
[ui] NodeEditor: Factorize attributeNavButton click behavior
nicolas-lambert-tc 81f6924
[core] attributes: Add tests for coverage
nicolas-lambert-tc 03c745a
[ui] AttributeEditor: Fix navButton left click behavior. (Wasn't sele…
nicolas-lambert-tc 3da2918
[ui] AttributeEditor: navButton context show truncated text if the la…
nicolas-lambert-tc 5d2c85b
[core] Attribute: Fix ListAttributes input / output connections retri…
nicolas-lambert-tc d1b434d
[ui] Attribute: Use bool type for shouldBeVisible property
nicolas-lambert-tc 7881fa1
[ui] Attribute: Align non linked attributes label (in/out) with the l…
nicolas-lambert-tc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,39 @@ | ||
| from meshroom.core.graph import Graph | ||
|
|
||
|
|
||
| def test_attribute_retrieve_linked_input_and_output_attributes(): | ||
| """ | ||
| Check that an attribute can retrieve the linked input and output attributes | ||
| """ | ||
|
|
||
| # n0 -- n1 -- n2 | ||
| # \ \ | ||
| # ---------- n3 | ||
|
|
||
| g = Graph('') | ||
| n0 = g.addNewNode('Ls', input='') | ||
| n1 = g.addNewNode('Ls', input=n0.output) | ||
| n2 = g.addNewNode('Ls', input=n1.output) | ||
| n3 = g.addNewNode('AppendFiles', input=n1.output, input2=n2.output) | ||
|
|
||
| # check that the attribute can retrieve its linked input attributes | ||
|
|
||
| assert n0.output.hasOutputConnections | ||
| assert not n3.output.hasOutputConnections | ||
|
|
||
| assert len(n0.input.getLinkedInAttributes()) == 0 | ||
| assert len(n1.input.getLinkedInAttributes()) == 1 | ||
| assert n1.input.getLinkedInAttributes()[0] == n0.output | ||
|
|
||
| assert len(n1.output.getLinkedOutAttributes()) == 2 | ||
|
|
||
| assert n1.output.getLinkedOutAttributes()[0] == n2.input | ||
| assert n1.output.getLinkedOutAttributes()[1] == n3.input | ||
|
|
||
| n0.graph = None | ||
|
|
||
| # Bounding cases | ||
| assert not n0.output.hasOutputConnections | ||
| assert len(n0.input.getLinkedInAttributes()) == 0 | ||
| assert len(n0.output.getLinkedOutAttributes()) == 0 | ||
|
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.