-
Notifications
You must be signed in to change notification settings - Fork 22
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
Gestures #159
Conversation
Now we can do "pinch-to-zoom".
It's outdated. Have a look at Gaphor for an example of how this can be done.
This term is more consistent with Gtk.
Rename `InMotion` aspect to `Move`.
Make it work autonimous.
One tool to deal with everything item related
Can not remove HandleTool yet, since PlacementTool depends on it.
It's not suitable to use in combination with gestures
Make GuidePainter an ordinary painter.
It can not grab the event sequence, hence all events are propagated to the other event controllers and it ends up at the rubberband tool.
It can be obtained from the controller.
There is a difficulty, since event controllers are tied to a widget as long as they live.
The Gtk+ version provided by Ubunutu 18.04 is to old. It does not support event controllers.
Make methods used on Line public methods
No longer used. Just create separate painters instead.
Amend HandleMove for lines with a merge-segment functionality.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is so awesome to upgrade Gaphas to use Gtk Gestures, really nice job @amolenaar! 🎉
Processing Dan's comments.
This keeps the Model/Canvas interface small.
Sourcery Code Quality Report✅ Merging this PR will increase code quality in the affected files by 0.16%.
Here are some functions in these files that still need a tune-up:
Legend and ExplanationThe emojis denote the absolute quality of the code:
The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request. Please see our documentation here for details on how these metrics are calculated. We are actively working on this report - lots more documentation and extra metrics to come! Let us know what you think of it by mentioning @sourcery-ai in a comment. |
PR Type
What kind of change does this PR introduce?
What is the current behavior?
A Gaphas view has it's own handling of events, through tools.
Issue Number: #72
What is the new behavior?
Tools are a lot like Gtk's EventControllers. Those will be used instead.
Does this PR introduce a breaking change?
Other information
EventControllers
are created with a widget reference.I edited a bit of documentation. It will probably require something of a rewrite though. documentation updates I want to do in a later PR.