Mail Archives: geda-help/2013/01/13/17:48:24
--bcaec552438097ce9304d33351ed
Content-Type: text/plain; charset=ISO-8859-1
Thanks Peter! I'll try that out.
On Sat, Jan 12, 2013 at 9:21 PM, Peter Clifton <pcjc2 AT cam DOT ac DOT uk> wrote:
> On Sat, 2013-01-12 at 01:15 +0200, Duncan Drennan wrote:
> > > The easiest (only?) way is to hack the sources. Look in src/draw.c
> > > starting with DrawEverything()
> >
> > I see that DrawElementName checks the HIDENAMESFLAG, but
> > DrawEverything() uses the DrawLayer() function to draw the top and
> > bottom silk layers for exporting.
> >
> > I guess one way would be to check the layer name and the HIDENAMESFLAG
> > and then skip this step in DrawLayer()
>
> You could hide the name on every element on the board (I think the
> keyboard short-cut is "h"), or: apply something like the following
> patch. It may not apply cleanly, as it is from a personal stack of
> commits on the top of my OpenGL branches.
>
> I have needed this before myself, as typically - on boards where I'm not
> going to have a silk-screen produced, I won't go to the effort of moving
> every silk annotation into the correct place.
>
>
> commit 9db0771b89bf5bc854dd0ecada544502e4e88517
> Author: Peter Clifton <pcjc2 AT cam DOT ac DOT uk>
> Date: Thu Nov 15 01:46:48 2012 +0000
>
> Comment out check for GUI HID when considering hidenames
>
> Yes - I want to hide them for a print!
>
> diff --git a/src/draw.c b/src/draw.c
> index 96e2473..8f91ba6 100644
> --- a/src/draw.c
> +++ b/src/draw.c
> @@ -184,7 +184,7 @@ void ghid_set_lock_effects (hidGC gc, AnyObjectType
> *object);
> static void
> draw_element_name (ElementType *element)
> {
> - if ((TEST_FLAG (HIDENAMESFLAG, PCB) && gui->gui) ||
> + if ((TEST_FLAG (HIDENAMESFLAG, PCB) /*&& gui->gui*/) ||
> TEST_FLAG (HIDENAMEFLAG, element))
> return;
> ghid_set_lock_effects (Output.fgGC, (AnyObjectType *)element);
>
>
>
>
> > /* draw the layer text on screen */
> > r_search (Layer->text_tree, screen, NULL, text_callback, Layer);
> >
> > but that doesn't seem very elegant....too much of a special case in a
> > generic function.
>
> --
> Peter Clifton <peter DOT clifton AT clifton-electronics DOT co DOT uk>
>
> Clifton Electronics
>
>
--
Turn ideas into products - http://www.engineersimplicity.com
The Art of Engineering - http://blog.engineersimplicity.com
--bcaec552438097ce9304d33351ed
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">Thanks Peter! I'll try that out.</div><div class=3D"gm=
ail_extra"><br><br><div class=3D"gmail_quote">On Sat, Jan 12, 2013 at 9:21 =
PM, Peter Clifton <span dir=3D"ltr"><<a href=3D"mailto:pcjc2 AT cam DOT ac DOT uk" =
target=3D"_blank">pcjc2 AT cam DOT ac DOT uk</a>></span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div class=3D"im">On Sat, 2013-01-12 at 01:1=
5 +0200, Duncan Drennan wrote:<br>
> > The easiest (only?) way is to hack the sources. =A0Look in src/dr=
aw.c<br>
> > starting with DrawEverything()<br>
><br>
> I see that DrawElementName checks the HIDENAMESFLAG, but<br>
> DrawEverything() uses the DrawLayer() function to draw the top and<br>
> bottom silk layers for exporting.<br>
><br>
> I guess one way would be to check the layer name and the HIDENAMESFLAG=
<br>
> and then skip this step in DrawLayer()<br>
<br>
</div>You could hide the name on every element on the board (I think the<br=
>
keyboard short-cut is "h"), or: apply something like the followin=
g<br>
patch. It may not apply cleanly, as it is from a personal stack of<br>
commits on the top of my OpenGL branches.<br>
<br>
I have needed this before myself, as typically - on boards where I'm no=
t<br>
going to have a silk-screen produced, I won't go to the effort of movin=
g<br>
every silk annotation into the correct place.<br>
<br>
<br>
commit 9db0771b89bf5bc854dd0ecada544502e4e88517<br>
Author: Peter Clifton <<a href=3D"mailto:pcjc2 AT cam DOT ac DOT uk">pcjc2 AT cam DOT ac DOT u=
k</a>><br>
Date: =A0 Thu Nov 15 01:46:48 2012 +0000<br>
<br>
=A0 =A0 Comment out check for GUI HID when considering hidenames<br>
<br>
=A0 =A0 Yes - I want to hide them for a print!<br>
<br>
diff --git a/src/draw.c b/src/draw.c<br>
index 96e2473..8f91ba6 100644<br>
--- a/src/draw.c<br>
+++ b/src/draw.c<br>
@@ -184,7 +184,7 @@ void ghid_set_lock_effects (hidGC gc, AnyObjectType *ob=
ject);<br>
=A0static void<br>
=A0draw_element_name (ElementType *element)<br>
=A0{<br>
- =A0if ((TEST_FLAG (HIDENAMESFLAG, PCB) && gui->gui) ||<br>
+ =A0if ((TEST_FLAG (HIDENAMESFLAG, PCB) /*&& gui->gui*/) ||<br>
=A0 =A0 =A0 =A0TEST_FLAG (HIDENAMEFLAG, element))<br>
=A0 =A0 =A0return;<br>
=A0 =A0ghid_set_lock_effects (Output.fgGC, (AnyObjectType *)element);<br>
<div class=3D"HOEnZb"><div class=3D"h5"><br>
<br>
<br>
<br>
> /* draw the layer text on screen */<br>
> =A0 r_search (Layer->text_tree, screen, NULL, text_callback, Layer)=
;<br>
><br>
> but that doesn't seem very elegant....too much of a special case i=
n a<br>
> generic function.<br>
<br>
</div></div><span class=3D"HOEnZb"><font color=3D"#888888">--<br>
Peter Clifton <<a href=3D"mailto:peter DOT clifton AT clifton-electronics DOT co DOT uk=
">peter DOT clifton AT clifton-electronics DOT co DOT uk</a>><br>
<br>
Clifton Electronics<br>
<br>
</font></span></blockquote></div><br><br clear=3D"all"><div><br></div>-- <b=
r>Turn ideas into products - <a href=3D"http://www.engineersimplicity.com">=
http://www.engineersimplicity.com</a><br>The Art of Engineering - <a href=
=3D"http://blog.engineersimplicity.com">http://blog.engineersimplicity.com<=
/a>
</div>
--bcaec552438097ce9304d33351ed--
- Raw text -