[#56] Guide tools

Date:
2006-03-07 15:40
Priority:
3
State:
Open
Submitted by:
Valentin Ungureanu (vung)
Assigned to:
Nobody (None)
Category:
none
Version:
none
Summary:
Guide tools

Detailed description

Create guides by dragging them from the rulers; based on this one:
http://lists.gnu.org/archive/html/sketch-devel/2003-01/msg00005.html
with some additions:
1. delete guide (or cancel creation) if the mouse is released outside the canvas (like in skencil 0.6)
2. hide the guide when it is dragged outside the drawing area and change the status bar to explain what will happen (like in gimp).

Detecting if the mouse is inside the canvas is done with a new SketchCanvas method; not particularly clean. As an alternative, I tried connecting the canvas to enter/leave_notify and propagating this to the editor and tools. This information could be used to automatically pan the view when dragging an object, for example.

However (besides the bigger change) if the mouse button is pressed over a ruler and then moved over the canvas there is no enter_notify signal from the canvas. I'm not sure if this is how it's supposed to be, but it wasn't helpful so I stuck with a new canvas method.






No comments have been posted

No related tasks

Attachments:
Size Name Date By Download
18 KiBrulerguides.diff2006-03-07 15:40Valentin Ungureanurulerguides.diff
Field Old Value Date By
File Added5: rulerguides.diff2006-03-07 15:40Valentin Ungureanu