Review Request 120505: Adding a activation-toggle and preview to assistants.
Wolthera van Hövell
griffinvalley at gmail.com
Thu Oct 16 21:32:50 BST 2014
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/120505/
-----------------------------------------------------------
(Updated Oct. 16, 2014, 8:32 p.m.)
Status
------
This change has been marked as submitted.
Review request for Calligra, Dmitry Kazakov and Boudewijn Rempt.
Repository: calligra
Description
-------
This patch adds a little eye icon underneath the deletion icon which can be used to activate/deactivate snapping and in the case of the perspective assistant, add a preview for where the snapping will happen/head to.
This last bit of code may be refactored a little more, if I want to allow to option to see this preview without having the basic assistant visible. This would allow these previews to make sense on normal assistants as well.
(Right now, the 'hide assistants' button in view just makes the whole widget invisible).[done]
Preview will be important if we're gonna have parallel rulers and the like.
I also fixed a minor bug where the canvas wasn't passed to the drawAssistant function in the painting assistant by the PaintingAssistantDecorations class, because whoever wrote the caching system had added a boolean for it in the arguments in a rather random place. Both caching and me accessing the canvas for cursor conversion work now.
Update: Added a whole framework so that the previews and main assistant can be toggled seperately. I also implemented preview for Ellipse, Ruler and Spline based on intersection with the bounding box. This won't help much when there's only one ruler on the canvas, but with multiple insersecting rulers this gives tremendous feedback.
I replaced the 'show painting assistants' action internally with the option to toggle the assistants themselves, instead of turning of visiblity for the whole widget.
I also added a new action 'Show Assistant previews'. This allows the user to disable all previews globally. Because I added this action, the kritarc file is set to version 53 from 52.
Diffs
-----
krita/ui/kis_painting_assistant.cc 81c6069
krita/ui/kis_painting_assistants_decoration.h a2c1263
krita/ui/kis_painting_assistants_decoration.cpp dd65ec0
krita/krita.rc 50faa31
krita/plugins/assistants/RulerAssistant/EllipseAssistant.h e36bd9d
krita/plugins/assistants/RulerAssistant/EllipseAssistant.cc ec6ee06
krita/plugins/assistants/RulerAssistant/PerspectiveAssistant.h c4fd3b2
krita/plugins/assistants/RulerAssistant/PerspectiveAssistant.cc e3ec525
krita/plugins/assistants/RulerAssistant/RulerAssistant.h 388b18a
krita/plugins/assistants/RulerAssistant/RulerAssistant.cc dd173c0
krita/plugins/assistants/RulerAssistant/SplineAssistant.h 92ccb49
krita/plugins/assistants/RulerAssistant/SplineAssistant.cc 8391f65
krita/plugins/assistants/RulerAssistant/kis_ruler_assistant_tool.h 11e92f3
krita/plugins/assistants/RulerAssistant/kis_ruler_assistant_tool.cc bbfe5cd
krita/ui/canvas/kis_canvas_decoration.cc 9179d3f
krita/ui/canvas/kis_canvas_widget_base.cpp 02f0ab5
krita/ui/kis_painting_assistant.h 6f315e8
Diff: https://git.reviewboard.kde.org/r/120505/diff/
Testing
-------
Lots, I can't find any crashes or bugs here.
Thanks,
Wolthera van Hövell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/calligra-devel/attachments/20141016/4df329dd/attachment.htm>
More information about the calligra-devel
mailing list