Arcadie M. Cracan wrote:
I don't really understand what I am doing wrong. I have a button on the toolbar of the connector tool (InkAction) that, when gets pressed, basically creates a new knot that follows the mouse pointer.
At this point (after the button is pressed) SPEventContext (for the connector tool) stops receiving any button1 press/release events. Other buttons press/release, pointer motion events are received.
That's because those events are processed by the knot. It would be impossible to write anything if you also received those events on the context. Instead of button 1 events on the context, you get emissions of the "clicked", "grabbed", "request" and "ungrabbed" signals on the knot. If that's not what you want, use the canvas item used for knots directly (but keep in mind that users will expect it to behave like other knots).
Too bad you already wrote some code using the old SPKnot class, because as part of my GSoC work I wrote a C++ class for a control point that has more features and is easier to use (for example, it uses libsigc++ signals).
Regards, Krzysztof