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

Improvements to Polyline #1022

Merged
merged 4 commits into from
Aug 29, 2023
Merged

Conversation

nstelter-slac
Copy link
Collaborator

@nstelter-slac nstelter-slac commented Aug 9, 2023

Fixes #962

To try out changse:

-pydm examples/drawing/drawing_demo.ui
-"File", then "Open in Designer"
-click on polyline widget, below label "PyDMDrawingPolyline" (bottom right of qt window)
-go right-side of window in property window, and scroll to bottom to find polyline specific settings
-can toggle on/off the arrow options, and see reflected in qt designer

Fixes #964

To try out changes:

-pydm examples/drawing/drawing_demo.ui
-"File", then "Open in Designer"
-double click on polyline widget, below label "PyDMDrawingPolyline" (bottom right of qt window)
-can edit points by double clicking on a point and typing new value, press "Update" in bottom right of settings
window, and can see polyline widget's points get updated according
-can rearrange points by clicking and dragging one point over the other, and see that they have swapped positions

@nstelter-slac nstelter-slac marked this pull request as draft August 9, 2023 23:41
Add option to add arrows to start, end, mid-points,
and to swap direction of midpoint arrows.

This functionality is similar to what PyDMDrawingLine
already has added.
@nstelter-slac nstelter-slac changed the title Polyline arrows Improvements to Polyline Aug 10, 2023
-Add update button, saves and applies changes to settings
without closing the settings-editor window
-Add ability to swap point ordering in settings-editor
by drag and drop
Also:
-minor change to member variable name to be more consistent.
-minor change to comments
Copy link
Collaborator

@jbellister-slac jbellister-slac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@YektaY YektaY merged commit 827fc7f into slaclab:master Aug 29, 2023
12 of 18 checks passed
@nstelter-slac nstelter-slac deleted the polyline_arrows branch September 1, 2023 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make PyDMDrawingPolyline easier to use Arrows for PyDMDrawingPolyline
3 participants