[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA: PCB creeping feature addition suggestion
On Wed, Aug 25, 2004 at 07:16:36AM -0400, Dan McMahill wrote:
> On Wed, Aug 25, 2004 at 08:04:19AM +0000, Karel Kulhav? wrote:
> > On Tue, Aug 24, 2004 at 10:05:06PM -0400, Dan McMahill wrote:
> > > On Fri, Aug 20, 2004 at 11:43:23AM +0000, Karel Kulhav? wrote:
> > > > Hello
> > > >
> > > > It's obviously a hard problem to determine footprint= attribute for
> > > > a part arbitrarily chosen from PCB library.
> > > >
> > > > I suggest (in the spirit of creeping-featurism ;-) ) a feature addition into
> > > > PCB: that the pcb-bin-library window would have a third column that would
> > > > display the necessary footprint= attribute for the given part. Macro aatributes
> > > > in the style "DIL 16 300" would have a description in the style of "DIL <number
> > > > of pins> <distance between rows in mils>"
> > > >
> > >
> > > something like:
> > >
> > >
>
> I'll try again but sending the patch as an attachment. I think there was some
> space/tab mangling before. The patch is against the latest CVS sources although
> you can probably make it apply (perhaps manually) to anything recent.
>
> -Dan
>
one more time with the attachment...
-Dan
--
Index: file.c
===================================================================
RCS file: /cvsroot/pcb/pcb/src/file.c,v
retrieving revision 1.17
diff -u -2 -r1.17 file.c
--- file.c 25 Aug 2004 02:27:20 -0000 1.17
+++ file.c 25 Aug 2004 11:13:54 -0000
@@ -943,10 +943,12 @@
/* create the list entry */
len = strlen (EMPTY (entry->Value)) +
- strlen (EMPTY (entry->Description)) + 3;
+ strlen (EMPTY (entry->Description)) +
+ strlen (EMPTY (entry->Package)) + 6;
entry->ListEntry = MyCalloc (len, sizeof (char),
"ReadLibraryDescription()");
sprintf (entry->ListEntry,
- "%s, %s", EMPTY (entry->Value),
- EMPTY (entry->Description));
+ "%s, %s [%s]", EMPTY (entry->Value),
+ EMPTY (entry->Description),
+ EMPTY (entry->Package));
}
}