Hi all,
I've had an idea that I'd like to try to implement in Inkscape and I'm hoping someone better acquainted with the code base can suggest ways it can be done and where to start.
The idea: allow the view of the canvas to be rotated (around the current mouse cursor position) using keystrokes. I see three keystrokes being required: rotate anti-clockwise, rotate clockwise, and reset to normal.
Only the view of the canvas is rotated, and I see it mainly being used when freehand drawing with the calligraphy or pencil tools using a tablet. My particular reason for wanting it is that I find it much easier to draw steady freehand curves with my wrist as a pivot, so when I am drawing on paper I often rotate the page to suit.
My questions: 1. Is the architecture of the Inkscape canvas suited to implementing this, or would is require major changes?
2. I have tried to work my way through the source relating to canvas drawing but I'm still not sure what layer I should be looking at. Any hints on what object(s) I should focus on?
3. Any comments as to how to approach it? Should I focus on trying to rotate the view of the canvas, or should I look at applying a (temporary) rotation to the entire SVG file?
Any thoughts appreciated!
Cheers Derek