[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: Re: Request for comment: snapping in kivio / flake
From: Jan Hambrecht <jaham () gmx ! net>
Date: 2009-09-17 8:53:46
Message-ID: 4AB1F91A.80009 () gmx ! net
[Download RAW message or body]
Andrew Dorrell wrote:
> On Thursday 17 September 2009 5:34:59 am jaham@gmx.net wrote:
>>> User controls:
>>> ------------------
>>> My first hack at the controls I would expect to see on the docker for
>>> snapping are:
>>> "snapping mode" check boxes: object; grid; ruler
>> That would make the selection of the kind of snapping more coarse as it is
>> right now. Some of the snapping strategies are hard to use when activated
>> together, so i think we should keep the individual selection of snapiing
>> stratgies.
>>
>>> "snapping strength" slider
>> There is a spinbox for the snapping distance, not sure if a slider is
>> better or not. A slider will certainly need more screen space and is not
>> as accurate as a direct input.
>>
>>> "snap only to visible objects"
>> Do you mean visible as in they are in sight (e.g. in the current viewport)
>> or visisble when they have the visible flag set?
>
> In the current view port.
>
>>> "Prevent snapping to this object" toggle.
>> You would need to have a property on a shape for that, which does not exist
>> at the moment. You probably could use KoShape::setAdditionalAttribute for
>> that.
>
> Would it be possible to set that dynamically whenever an object is drawn (so
> that we could implement the previous point)?
>
I am not sure there is a reliable way. You can get access to the canvas
widget, but you would need the current zoom and also the state of the
scrollbars to know if a shape is outside the view or not. Then a view
might not use the complete area of the canvas widget for painting the
document, etc.
>
> Thanks for your patience with all my replies :-/
No problems, seems easier to respond to particular points.
Ciao Jan
_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic