On Wed, 27 Jan 1999, Matthias Koester wrote:
> Hi!
>
> Yesterday i've downloaded dia 0.30 and i think it's great and very
> usable, even in the present state.
Thanks.
> But while using it, i thought i would be a nice feature , if the
> diagram-view would "autoscroll" when
> box-selecting. So i took a look at the sourcecode and included this
> feature.
Nice idea! Although i agree with Jeffreys ideas (in another mail) about
when to scroll.
> I've done that by adding a "method"
> gboolean ddisplay_autoscroll(DDisplay* ddisp, const Point* pos, const
> Point* delta)
> to the DDisplay -object. pos is the position of the event (in
> screenspace) and delta the delta (in worldspace) between the actual
> point (in worldspace) and last ("dragged") point (in worldspace).
> This routine must be called for every mouse motion, which will support
> autoscrolling. The function returns TRUE, if autoscrolling has occured,
> FALSE otherwise.
> The autoscrolling can be dis-\ enable via DDisplay->autoscroll_enabled.
> The scrolling behaviour can be changed by changing
> DDisplay->autoscroll_border
> DDisplay->autoscroll_amount
Uhm? I didn't see this in the patch i got!? That was just a patch to
modify_tool.c which does all scrolling etc itself.
> I've attached my patches to the source, you can patch it by entering the
> directory where the dia-0.30 directory is rooted and then invoking
> patch:
> patch < autoscroll.patch
By the way. If you want to work more on Dia, please consider using the
cvs archive. That way i can get patches against my tree and everyone can
test my changes. You don't have to use that version in a production
enviroment, but rather if you're developing. Although i do my very best to
keep even the cvs version very stable.
> Any comments?
Nice work!
/ Alex