gEDA-dev: [PATCH] GAF: Change snap-to-grid behaviour
Bernd Jendrissek
bernd.jendrissek at gmail.com
Mon Aug 13 08:38:20 EDT 2007
I got distracted this weekend and changed the snap behaviour. This
adds (snap-with-origin "enabled|disabled") When "enabled", moving an
object forces its origin onto a snap grid point. The old behaviour is
to just move the object by exactly an integral number of snap grid
units. This made it difficult to get text to align nicely with the
grid if it was initially off-grid.
There may be some conflict with Peter's s/TOPLEVEL/GSCHEM_TOPLEVEL/ work.
libgeda/
2007-08-12 Bernd Jendrissek <bernd.jendrissek at gmail.com>
* include/prototype.h, src/o_basic.c: o_get_origin(): New function to
get origin of any type of OBJECT.
* src/toplevel.c, include/struct.h: New TOPLEVEL member:
snap_with_origin.
gschem/
2007-08-12 Bernd Jendrissek <bernd.jendrissek at gmail.com>
* src/x_autonumber.c: Include "support.h" for lookup_widget()
prototype.
* src/i_vars.c, src/g_register.c, src/g_rc.c, include/i_vars.h:
Implement (snap-with-origin "...") to choose snap behaviour.
* lib/system-gschemrc.in: Default (snap-with-origin "enabled").
* src/x_event.c, src/o_move.c: o_move_continue(): New function.
o_move_start(), o_move_end(), x_event_motion(): Choose snap
behaviour according to TOPLEVEL::snap_with_origin.
* include/prototype.h: Prototypes for new functions.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: snap-with-origin.diff.bz2
Type: application/x-bzip2
Size: 3456 bytes
Desc: not available
Url : http://www.seul.org/pipermail/geda-dev/attachments/20070813/327646c6/attachment.bin
More information about the geda-dev
mailing list