[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-dev: [PATCH] GAF: Change snap-to-grid behaviour



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@xxxxxxxxx>

        * 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@xxxxxxxxx>

        * 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.

Attachment: snap-with-origin.diff.bz2
Description: BZip2 compressed data


_______________________________________________
geda-dev mailing list
geda-dev@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev