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

N2 window code consolidation #1871

Merged
merged 33 commits into from Feb 5, 2021
Merged

N2 window code consolidation #1871

merged 33 commits into from Feb 5, 2021

Conversation

tadkollar
Copy link
Member

@tadkollar tadkollar commented Feb 3, 2021

Summary

The N2 diagram had implemented four different types of windowing systems (help, legend, node info, and value info) with redundant code in several areas. This update merges the redundant functionality into N2Window, N2WindowDraggable, and N2WindowResizable classes and derives the previous functionality from each.

  • The N2Window base class provides most of the functionality
  • N2WindowDraggable adds the ability to move the window around by grabbing and dragging the titlebar
  • N2WindowResizable derives from N2WindowDraggable and allows resizing by dragging any of the edges or corners

There were also updates to the GUI tests to prevent deprecation warnings, and new tests for the updated windowing system were added.

Related Issues

Backwards incompatibilities

None

New Dependencies

None

…tooltip z-index, fixed value window min size
…ed tests for new N2Window code, reduced N2 toolbar testing
@project-bot project-bot bot added this to In progress in OpenMDAO Dev [Read only] Feb 3, 2021
@project-bot project-bot bot moved this from In progress to Under review in OpenMDAO Dev [Read only] Feb 3, 2021
OpenMDAO Dev [Read only] automation moved this from Under review to Reviewer approved Feb 5, 2021
@swryan swryan merged commit 08dd956 into OpenMDAO:master Feb 5, 2021
OpenMDAO Dev [Read only] automation moved this from Reviewer approved to Done Feb 5, 2021
@tadkollar tadkollar deleted the win1751 branch February 8, 2021 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Unify the various N2 windowing systems
3 participants