Re: gEDA-user: New PCB Library window

2008-01-03 Thread Peter Clifton

On Thu, 2008-01-03 at 19:35 -0800, Ben Jackson wrote:
> On Fri, Jan 04, 2008 at 02:52:15AM +, Peter Clifton wrote:
> > 
> > The library window gets a filter for finding footprints (search is by
> > the name listed in the window), and a preview.
> 
> What about something more like the windows explorer view?  View
> 'details' and see columns like name, size, pin count, or view 'thumbnails'
> and see lots of pics...

The problem here, is that PCB's library data-structures aren't populated
with this data. I guess you could load footprints in turn, and retrieve
this information, but this requires a reasonable amount of change in the
way footprint lists are built.

In addition, "thumbnails" might be tricky. The pinout preview is a
reasonable amount hackey in its self... it hijacks the main PCB drawing
state, replaces the target window with its own, and then draws an
element. (It copies the main PCB drawing state back afterwards).

> It would be neat if you could invoke this chooser directly from gschem
> when you need to assign a footprint, too.

I had a proof of concept hack to do that too ;)

It adds a "--library" command line option to PCB, and causes only the
library window to be displayed. Any clicked footprint has its name
printed to stdout / stderr (I can't recall which).

Unfortunately, this isn't a superb IPC mechanism, especially as PCB has
other printf output via stdout / stderr.

I just re-tested the patch (with a bit of manual tweaking), and it still
just about works with the new component library. The preview doesn't
display (some GDK_GC not setup, probably as the main layout window
hasn't been initialised), but I doubt this would be too hard to fix.

-- 
Peter Clifton

Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA

Tel: +44 (0)7729 980173 - (No signal in the lab!)



___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: New PCB Library window

2008-01-03 Thread Ben Jackson
On Fri, Jan 04, 2008 at 02:52:15AM +, Peter Clifton wrote:
> 
> The library window gets a filter for finding footprints (search is by
> the name listed in the window), and a preview.

What about something more like the windows explorer view?  View
'details' and see columns like name, size, pin count, or view 'thumbnails'
and see lots of pics...

It would be neat if you could invoke this chooser directly from gschem
when you need to assign a footprint, too.

-- 
Ben Jackson AD7GD
<[EMAIL PROTECTED]>
http://www.ben.com/


___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: New PCB Library window

2008-01-03 Thread Peter Clifton

On Fri, 2008-01-04 at 02:52 +, Peter Clifton wrote:

> The patch needs some tidying up, and more testing, but if anyone is
> interested to have a play in its current state, let me know and I'll
> post the required diff. (and extra files).

Attaching them here for backup and for anyone who wants to test.

NB.. the new files go in src/hid/gtk/

Best wishes,

-- 
Peter Clifton

Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA

Tel: +44 (0)7729 980173 - (No signal in the lab!)


gui-library-window.h.gz
Description: GNU Zip compressed data


gui-pinout-preview.c.gz
Description: GNU Zip compressed data


gui-pinout-preview.h.gz
Description: GNU Zip compressed data


pcb_library_browser.diff.gz
Description: GNU Zip compressed data


___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


gEDA-user: New PCB Library window

2008-01-03 Thread Peter Clifton
I'm posting this here, attempting to solicit some eedback...

I've just written a patch which revamps PCB's footprint library window.
It borrows code from gschem's component selector, and I've reworked the
pinout preview window code into a preview widget.

The library window gets a filter for finding footprints (search is by
the name listed in the window), and a preview.

http://www2.eng.cam.ac.uk/~pcjc2/geda/screenshots/pcb_library.jpg

Comments?

The patch needs some tidying up, and more testing, but if anyone is
interested to have a play in its current state, let me know and I'll
post the required diff. (and extra files).

Best wishes,

-- 
Peter Clifton

Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA

Tel: +44 (0)7729 980173 - (No signal in the lab!)



___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: PCB bug?

2008-01-03 Thread Dave N6NZ
OK -- great.  I appreciate the explanation.

-dave


Ben Jackson wrote:
> On Thu, Jan 03, 2008 at 09:46:09AM -0800, Dave N6NZ wrote:
>> Can you please describe this bug more completely?  I want to make sure I 
>> didn't send off some bad gerbers. Does it mean that an SMD pad will not 
>> clear a polygon in the exported gerber?
> 
>>From Dec 2, 2007 to Jan 3, 2008 the CVS version of PCB would not clear
> pads from surface polygons on initial load.  If you reloaded (by
> immediately reverting) or moved a part or any of a number of other
> actions, the polygon problem would be corrected.  There is no export
> issue per se:  What you see on the screen is what got exported.  If
> you experienced the bug it was visible on-screen.
> 
> This was caused by a change I made on Dec 2 to fix other bugs (such as
> one in the SF tracker about being unable to convert some collections
> of objects to an element, and the inability to move selected items
> within the board area).  The change made the code consistent with
> 300 other locations but broke loading, which relied on the inconsistency.
> On Jan 3 I modified the board loading code to work around the problem.
> 


___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: PCB bug?

2008-01-03 Thread Peter TB Brett
On Thursday 03 January 2008 18:42:42 Ben Jackson wrote:
> On Thu, Jan 03, 2008 at 07:54:09AM +, Peter TB Brett wrote:
> > On Thursday 03 January 2008 05:06:59 Ben Jackson wrote:
> > > However, the Makefile dependancies are broken.  So cvs update, then rm
> > > parse_y.c so it will be rebuilt from parse_y.y.
> >
> > I just tested this & RTFM. There's nothing wrong with the Makefiles: it's
> > just that you need to configure with --enable-maintainer-mode if you want
> > C files to be updated from yacc files.
>
> Ew...  But parse_y.c is not checked in, so everyone has to build it at
> least once...

If it's not yet there, it'll get created.  If it's there already, it won't get 
updated.  This only affects people who build from CVS -- `make dist' will 
create a tarball containing parse_y.{c,h}.

   Peter

-- 
Peter Brett

Electronic Systems Engineer
Integral Informatics Ltd


signature.asc
Description: This is a digitally signed message part.


___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: PCB bug?

2008-01-03 Thread Ben Jackson
On Thu, Jan 03, 2008 at 09:46:09AM -0800, Dave N6NZ wrote:
> Can you please describe this bug more completely?  I want to make sure I 
> didn't send off some bad gerbers. Does it mean that an SMD pad will not 
> clear a polygon in the exported gerber?

>From Dec 2, 2007 to Jan 3, 2008 the CVS version of PCB would not clear
pads from surface polygons on initial load.  If you reloaded (by
immediately reverting) or moved a part or any of a number of other
actions, the polygon problem would be corrected.  There is no export
issue per se:  What you see on the screen is what got exported.  If
you experienced the bug it was visible on-screen.

This was caused by a change I made on Dec 2 to fix other bugs (such as
one in the SF tracker about being unable to convert some collections
of objects to an element, and the inability to move selected items
within the board area).  The change made the code consistent with
300 other locations but broke loading, which relied on the inconsistency.
On Jan 3 I modified the board loading code to work around the problem.

-- 
Ben Jackson AD7GD
<[EMAIL PROTECTED]>
http://www.ben.com/


___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: PCB bug?

2008-01-03 Thread Ben Jackson
On Thu, Jan 03, 2008 at 07:54:09AM +, Peter TB Brett wrote:
> On Thursday 03 January 2008 05:06:59 Ben Jackson wrote:
> > However, the Makefile dependancies are broken.  So cvs update, then rm
> > parse_y.c so it will be rebuilt from parse_y.y.
> 
> I just tested this & RTFM. There's nothing wrong with the Makefiles: it's 
> just 
> that you need to configure with --enable-maintainer-mode if you want C files 
> to be updated from yacc files.

Ew...  But parse_y.c is not checked in, so everyone has to build it at
least once...

-- 
Ben Jackson AD7GD
<[EMAIL PROTECTED]>
http://www.ben.com/


___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: anyone using PCB .xy files?

2008-01-03 Thread Steven Michalske
i would have to say that the only request made to me once was to put
it into an MS Excel file.

the guys operating the pick and place machines have to do custom
programming anyway, so there is a human filter from those files into
the machine.  lots of fine tuning for the gatling guns that place the
parts :-)


___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: PCB bug?

2008-01-03 Thread Dave N6NZ
Can you please describe this bug more completely?  I want to make sure I 
didn't send off some bad gerbers. Does it mean that an SMD pad will not 
clear a polygon in the exported gerber?

-dave

Ben Jackson wrote:
> On Wed, Dec 19, 2007 at 10:14:17PM +, Levente wrote:
>> I have problem with the recent CVS version of PCB. It seems it doesn't
>> render/export clearence of SMD pads. I use the lesstif version.
> 
> Sorry for the delay in fixing this.  I made a change which did not require
> modifying 300 occurances of 'max_layer' as I'd feared.  However, the
> Makefile dependancies are broken.  So cvs update, then rm parse_y.c so
> it will be rebuilt from parse_y.y.
> 


___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: PCB bug?

2008-01-03 Thread Levente
Ben Jackson <[EMAIL PROTECTED]> wrote:
> On Wed, Dec 19, 2007 at 10:14:17PM +, Levente wrote:
>> I have problem with the recent CVS version of PCB. It seems it doesn't
>> render/export clearence of SMD pads. I use the lesstif version.
> 
> Sorry for the delay in fixing this.  I made a change which did not require
> modifying 300 occurances of 'max_layer' as I'd feared.  However, the
> Makefile dependancies are broken.  So cvs update, then rm parse_y.c so
> it will be rebuilt from parse_y.y.

It is okay, thanks for fixing it. The delay caused no problem, I used the
stable release to export layout.


-- 
Levente
http://web.interware.hu/lekovacs



___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: gEDA/gschem: is guile regex module important?

2008-01-03 Thread Stefan Salewski
Peter TB Brett wrote:

>There is absolutely no reason why your distribution should not provide
>a Guile package linked against a regexp library

OK, I will report this to Gentoo maintainers.

>Please report the output of:
>guile --version

[EMAIL PROTECTED] ~ $ guile --version
Guile 1.8.2

I asked in November about the meaning of gschem report
"Your Guile installation doesn't provide the regex module."
but there was no clear respone.

Thanks

Stefan Salewski





___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: gEDA/gschem: is guile regex module important?

2008-01-03 Thread Peter TB Brett
On Thursday 03 January 2008 11:16:24 Stefan Salewski wrote:
> evan foss wrote (Sun, 18 Nov 2007 17:52:14 -0500)
>
> >Try flipping a pin horizontally with out it. On my box that terminates
> >gschem. I had to recompile guile with it a few days ago.
>
> Yes, gEDA/gschem version 1.2.0.20070902 terminates when I try to place
> a pin on an empty sheet or when I try to rotate a pin of a symbol (during
> creation of a new symbol).
> (Drawing schematics and modifying symbols works fine.)

The regex module is a standard part of Guile 1.6: 

  If your system does not include a POSIX regular expression library,
  and you have not linked Guile with a third-party regexp library such as
  Rx, these functions will not be available.  You can tell whether your
  Guile installation includes regular expression support by checking
  whether `(provided? 'regex)' returns true.

Please report the output of:

  guile --version


There is absolutely no reason why your distribution should not provide a Guile 
package linked against a regexp library, because several other tools provided 
as standard with a Linux distribution require one (Perl being a good 
example).  Please file this issue against your distribution's Guile package.

In the meantime, comment out the following line (843) in your system-gschemrc:

-(load-from-path "auto-place-attribs.scm")
+;(load-from-path "auto-place-attribs.scm")


I will probably fix the gschem configure script to check for the availability 
of the Guile regular expression module, and to error out if it is not 
present.

>
> Is this bug fixed in release 1.2.1 or unstable 1.3?

As far as I can tell, this is not a bug: this is an unsatisfied dependency 
requirement.  It would be bad to "magically" disable the affected feature if 
the regex module was not available.

 Peter


-- 
Peter Brett

Electronic Systems Engineer
Integral Informatics Ltd


signature.asc
Description: This is a digitally signed message part.


___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: gEDA/gschem: is guile regex module important?

2008-01-03 Thread Stefan Salewski
evan foss wrote (Sun, 18 Nov 2007 17:52:14 -0500)

>Try flipping a pin horizontally with out it. On my box that terminates
>gschem. I had to recompile guile with it a few days ago.

Yes, gEDA/gschem version 1.2.0.20070902 terminates when I try to place
a pin on an empty sheet or when I try to rotate a pin of a symbol (during
creation of a new symbol). 
(Drawing schematics and modifying symbols works fine.)

Is this bug fixed in release 1.2.1 or unstable 1.3?

Here is the output of gschem:

[EMAIL PROTECTED] ~ $ gschem
gEDA/gschem version 1.2.0.20070902
gEDA/gschem comes with ABSOLUTELY NO WARRANTY; see COPYING for more details.
This is free software, and you are welcome to redistribute it under certain
conditions; please see the COPYING file for more details.

Your Guile installation doesn't provide the regex module.
Loading schematic [/home/stefan/untitled_1.sch]
ERROR: Unbound variable: string-match




___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user