gEDA-dev: magnetic net mode is so damn cool
Werner Hoch
werner.ho at gmx.de
Sun Feb 17 07:42:09 EST 2008
Hi there,
On Sonntag, 3. Februar 2008, Werner Hoch wrote:
> I've taken the patch [#1824420]
> http://sourceforge.net/tracker/index.php?func=detail&aid=1824420&grou
>p_id=161080&atid=818428 and integrated it into my gaf repo:
> http://repo.or.cz/w/geda-gaf/werner.git?a=shortlog;h=magnetic2
[...]
> I've reworked the patch and the result is in this branch:
> http://repo.or.cz/w/geda-gaf/werner.git?a=shortlog;h=magnetic3
>
> Not yet ready for integration, but damn cool to use ;-)
>
> I need to cut it into smaller commits, add some documentation and do
> some function renamings.
Ok. The code is ready for integration. Anyone like to give it a try?
http://repo.or.cz/w/geda-gaf/werner.git?a=shortlog;h=magneticnet
I've not decided yet which settings should go to the system-gschemrc
file:
Whether the magnetic mode is on/off by default, and all tuning variables
in the top of the o_net.c file
-------
/* magnetic options */
/* half size of the magnetic marker on the screen. */
#define MAGNETIC_HALFSIZE 6
/* define how far the cursor could be to activate magnetic */
#define MAGNETIC_PIN_REACH 50
#define MAGNETIC_NET_REACH 20
#define MAGNETIC_BUS_REACH 30
/* weighting factors to tell that a pin is more important than a net */
#define MAGNETIC_PIN_WEIGHT 5.0
#define MAGNETIC_NET_WEIGHT 2.0
#define MAGNETIC_BUS_WEIGHT 3.0
-----
Which variables should go into the configuration file?
Another minor thing is that if your in the magnetic mode and your close
to a possible connection and you don't want to connect.
You can zoom in to make the distance bigger and the magnetic marker
disappears.
The other possibility is to use a modifier key:
* overwrite the nonorthogonal mode when using magnetic nets and use the
CTRL modifier key
* use the ALT modifier key
Comments are very welcome.
Regards
Werner
More information about the geda-dev
mailing list