Skip to content

Improves Graphs widget/panel (related to #267) - #982

Closed
rodolforg wants to merge 74 commits into
synfig:masterfrom
rodolforg:fix_627-improve-graph-widget_rebased
Closed

rodolforg wants to merge 74 commits into
synfig:masterfrom
rodolforg:fix_627-improve-graph-widget_rebased

Conversation

@rodolforg

@rodolforg rodolforg commented Oct 22, 2019 •

Copy link
Copy Markdown
Contributor

Improves Graph widget features.

Partially implements #267 requests.

Current status:

  • draw waypoints in curves
  • allow single waypoint selection
  • allow multiple waypoint selection
    • via shift (adding to selection) and control (toggling selection state) keys
    • via mouse dragging rectangle
    • cancelable while mouse-dragging with right-click
  • allow waypoint value change by dragging orarrow keys
    • shift key constraints dragging
    • cancelable while dragging with right-click or Esc
  • allow multiple waypoint value change by dragging
  • allow to move (multiple) waypoint time by dragging or arrow keys
  • select all visible nodes with Ctrl+A
  • select all nodes of single channel with Ctrl+Shift+A?
  • show control points for TCB
  • double click in waypoint shows edit dialog
  • create Bézier waypoint type
  • add control points for Bézier waypoints
  • zoom to pointer/mouse position
  • pan with middle-button click and drag
  • show tooltip for hovered point
  • Del removes selected waypoints
  • Double-click in a curve creates a new waypoint

Items striked-through will be implemented in another PR.

@rodolforg

Copy link
Copy Markdown
Contributor Author

@morevnaproject Could you please check if is the building error my fault?
And test if curve points selection works how it should? (as well as @ebarranco )

@ice0

ice0 commented Oct 23, 2019

Copy link
Copy Markdown
Collaborator

@rodolforg Hi, Rodolfo!
The build is failed because travis-ci is updated they OSX image. I will fix it.

@rodolforg
rodolforg force-pushed the fix_627-improve-graph-widget_rebased branch from 7779527 to c0815ab Compare October 27, 2019 18:22
@morevnaproject

Copy link
Copy Markdown
Member

@rodolforg This is absolutely epic! I have tested your latest changes and confirming that selection works perfectly! ^__^

screenshot_001

@rodolforg
rodolforg force-pushed the fix_627-improve-graph-widget_rebased branch from 6190471 to 2805920 Compare November 23, 2019 13:36
@morevnaproject

Copy link
Copy Markdown
Member

could you tell me what do you think about this tooltip implementation?

I think it is awesome! ^__^

https://www.youtube.com/watch?v=2Bi--fpBhsM

@rodolforg

Copy link
Copy Markdown
Contributor Author

Ok. Only the "value" in tooltip that bothers me now because its values are not user friendly: no measurement unit shown neither converted to those used in GUI (degrees instead of radians, pixels instead of units, etc.)

But now I'll focus in TCB handles and possible bug fixes you point me.

@rodolforg

Copy link
Copy Markdown
Contributor Author

@morevnaproject should I show the handles of all TCB waypoints or just of those selected ones?

@morevnaproject

Copy link
Copy Markdown
Member

@rodolforg It makes sense to display handles only for selected waypoints.

@rodolforg

Copy link
Copy Markdown
Contributor Author

Hey @morevnaproject Do :)

  1. Do you think I should finish this PR right before " first draft of TCB handles for Graph panel" (1cd7ce8) ?
    This PR affects synfig-studio/src/gui/widgets/widget_canvastimeslider.cppand synfig-studio/src/gui/widgets/widget_timeslider.cpp besides dock_ and widget_curves.cpp obviously. So it might be good people review/try this huge PR to fix any possible regression.

  2. Did you try and play with this last commit? ;)

@morevnaproject

Copy link
Copy Markdown
Member
  1. I think this is a very good idea. For my taste it is already a very cool feature (even without TCB handles), and it works very good for me. If we will merge it, then it will be shipped with 1.4.0, which is also very cool. @blackwarthog @ice0 opinions?

  2. Yes, I tested it. As I understood, this is a very early WIP of TCB handles, so I withheld any feedback. ^__^

@ice0

ice0 commented Dec 9, 2019

Copy link
Copy Markdown
Collaborator

I think it would be nice to include this feature in 1.4

@rodolforg

Copy link
Copy Markdown
Contributor Author
2. Yes, I tested it. As I understood, this is a very early WIP of TCB handles, so I withheld any feedback. ^__^

It is indeed. However, I was analyzing how TCB interpolation works in Synfig when an animation mix TCB with other interpolators and then I found out that, in some cases, TCB has no influence in the curve.
What should I do regarding TCB handle in these cases?
And that's why I put it aside for a while. lol

@rodolforg
rodolforg force-pushed the fix_627-improve-graph-widget_rebased branch from 1cd7ce8 to 7cf20ac Compare December 10, 2019 02:02
@rodolforg rodolforg changed the title Fixes #267 improve graph widget Improves Graphs widget/panel (related to #267) Dec 10, 2019
@rodolforg

Copy link
Copy Markdown
Contributor Author

Done.

@rodolforg
rodolforg marked this pull request as ready for review December 10, 2019 02:06
@morevnaproject morevnaproject added this to the v1.4.0 milestone Dec 10, 2019
@morevnaproject

Copy link
Copy Markdown
Member

What should I do regarding TCB handle in these cases?

If they has no influence, then it's okay to hide them, I think.

@blackwarthog

blackwarthog commented Dec 10, 2019 via email

Copy link
Copy Markdown
Collaborator

@morevnaproject

Copy link
Copy Markdown
Member

Merged via a415edb

Thank you s much for your contributions! ^__^

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.

5 participants