Automation Editor point fine tuning with wheel scroll #5291
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.
Related to issue #5225
And replaces old PR #5232
Allows user to place cursor over an automation point in the Automation Editor, and use scroll wheel to adjust the y level for that point. It also improves mouse cursor interaction with the point, and shows the point's Y level when mouse cursor is over a point.
https://cdn.discordapp.com/attachments/332258319228207114/629248936099708928/AutomationEditor2-2019-10-03_04.21.20.mp4 (example, not current)
This PR involves the creation of a variable, and the use of
mouseMoveEvent
,drawCross
, andwheelEvent
.m_pointYLevel
is created and used to hold a point's Y level position.m_pointYLevel
is set when the mouse moves over a point.m_pointYLevel
changes when the mouse wheel is scrolled, and over a point.m_pointYLevel
returns to0
.m_pointYLevel
is0
, the tool tip indrawCross
displays the Y level position of the mouse.m_pointYLevel
is greater than0
, the tool tip indrawCross
displays the point's Y level position.