Hi, This week I mainly squashed some bugs. The current code [0] still requires -std=c++11 in the CXXFLAGS. Connector creation is working properly now, without stray points left over afterwards. Points can be selected in groups which can be transformed (scale, shear, rotate, translate etc.). Simple orthogonal routing and straight routing work. Libavoid routing works as far as there are no objects to be avoided (I did not yet test it with objects to be avoided). Multiple connectors can be connected to the same endpoint.
Remaining problems are: * When moving a connector in selection mode ([F1]), sometimes a stray point appears somewhere inside the bounding box of the original connector (strange one!). * Connector aborting does not work yet. I deactivated these 10 lines for now. * There are some open UI questions: - How to disconnect connectors? - How to re-connect connectors to different endpoints? - How to edit SPPoints as parts of groups? How to move them into groups? - Probably some more which I forgot * Libavoid routing is still untested. * Sporadically, I manage to get the UI into some infinite recursion.
I am looking into these issues.
Best regards, Sebastian
[0] https://code.launchpad.net/~h-e-6/inkscape/connector-wip
On Sat, 2013-08-17 at 00:13 +0200, Sebastian Götte wrote:
Hi, This week I mainly squashed some bugs. The current code [0] still requires -std=c++11 in the CXXFLAGS. Connector creation is working properly now, without stray points left over afterwards. Points can be selected in groups which can be transformed (scale, shear, rotate, translate etc.). Simple orthogonal routing and straight routing work. Libavoid routing works as far as there are no objects to be avoided (I did not yet test it with objects to be avoided). Multiple connectors can be connected to the same endpoint.
Works much better now!
Remaining problems are:
- When moving a connector in selection mode ([F1]), sometimes a stray point appears somewhere inside the bounding box of the original connector (strange one!).
- Connector aborting does not work yet. I deactivated these 10 lines for now.
- There are some open UI questions:
- How to disconnect connectors?
Drag with shift?
- How to re-connect connectors to different endpoints?
This should be automatic, dragging an end should snap to nearby points.
- How to edit SPPoints as parts of groups? How to move them into groups?
- Probably some more which I forgot
* Points are useful on their own. One should be able to create and delete points independent of connectors. However, this may not be the role of the connector tool.
* If a connector is deleted, the points are not. This may be desired behavior in some cases. One can select a point using the XML dialog. Attempting to delete a point leads to a crash.
* If a point is deleted, what happens to a connector attached to it?
* The connector tool is not using it's own cursor.
- Libavoid routing is still untested.
- Sporadically, I manage to get the UI into some infinite recursion.
I am looking into these issues.
Tav
On 08/17/2013 10:23 AM, Tavmjong Bah wrote:
- How to re-connect connectors to different endpoints?
This should be automatic, dragging an end should snap to nearby points.
Implementing snapping is easy, it's only a few lines of code. See for example
http://bazaar.launchpad.net/~doctormo/inkscape/seltrans-refactor/revision/12...
If you need any help then just let me know!
Diederik
participants (3)
-
Diederik van Lierop
-
Sebastian Götte
-
Tavmjong Bah