Hi, I just pushed some changes to launchpad that fix the GObject instantiation problem I had [0]. I am now explicitely initializing the members to 0. Next comes some cleanup integrating the feedback I received.
The current code allows one to place SPPoints and SPConnectors in the document, the three major problems left are state handling in the ConnectorContext (dragging does not work yet), live preview (the "red curve" is not displayed/updated yet) and a missing/superfluous display->doc transform.
I just finished moving into a new flat so I did not spend a lot of the last few days at my computer.
Best regards, Sebastian
[0] https://bazaar.launchpad.net/~h-e-6/inkscape/connector-wip/files/
On Mon, 2013-08-05 at 12:10 +0200, Sebastian Götte wrote:
Hi, I just pushed some changes to launchpad that fix the GObject instantiation problem I had [0]. I am now explicitely initializing the members to 0. Next comes some cleanup integrating the feedback I received.
The current code allows one to place SPPoints and SPConnectors in the document, the three major problems left are state handling in the ConnectorContext (dragging does not work yet), live preview (the "red curve" is not displayed/updated yet) and a missing/superfluous display->doc transform.
Great! I can confirm it no longer crashes. Eagerly awaiting the ability to edit points.
One thing to think about while you are mucking around, we agreed at an SVG working group meeting that SVG points could be defined inside shapes (but I can't seem to find it minuted anywhere):
<rect x="100"....> <point x="50%" y="0%"/> </rect>
The percentage values on point are defined relative to the un-transformed bounding box of the shape, so in this case the point would be at the center top of the rectangle regardless of how the rectangle is transformed.
Tav
2013/8/5 Sebastian Götte <jaseg@...2974...>:
Hi, I just pushed some changes to launchpad that fix the GObject instantiation problem I had [0]. I am now explicitely initializing the members to 0. Next comes some cleanup integrating the feedback I received.
The current code allows one to place SPPoints and SPConnectors in the document, the three major problems left are state handling in the ConnectorContext (dragging does not work yet), live preview (the "red curve" is not displayed/updated yet) and a missing/superfluous display->doc transform.
You might want to check out the control point classes in src/ui/tool/, which unlike SPKnot have built-in drag support.
Regards, Krzysztof
participants (3)
-
Krzysztof Kosiński
-
Sebastian Götte
-
Tavmjong Bah