www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2013/06/22/07:33:56

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=date:from:to:subject:message-id:mail-followup-to:references
:mime-version:content-type:content-disposition:in-reply-to
:user-agent;
bh=u56daWmjVk5A3L/htGlSWHZglzbddqQuf1jUJ06C5GQ=;
b=vYghcjhvzrh0PWeNGfOZ6XuhPy1/xPElpR+doZLQzWbGdXf0rtEcrazhCv2uzSN1aC
wdeykcnMra2OI6OnSq8u/A4x5OzVzTYZSBLvUpmc6kO1PdtK/e/DG+bWAng5UMaT8Hlu
csHg6+0zIClu1pOwnnUnFvDDPvglAWmepi5XqxBzwArHt34nuz3lZtWli6Qn8dgvIHP5
ZdRirTc7xS2hJ28SW/71XBtt9XDIdgq+SInbTYw3scW55V25/0oPlXHP1RVGx6nCb/NM
LI4yUte7Yxqo1UhVKap9fqJGhpbznMgi3Rx4nJKobkdXBOk1ozT3echsEOsHTAlrfaPx
zNhw==
X-Received: by 10.152.28.162 with SMTP id c2mr7646378lah.45.1371900753042;
Sat, 22 Jun 2013 04:32:33 -0700 (PDT)
Date: Sat, 22 Jun 2013 15:32:28 +0400
From: Vladimir Zhbanov <vzhbanov AT gmail DOT com>
To: "geda-user AT delorie DOT com" <geda-user AT delorie DOT com>
Subject: Re: [geda-user] tooltip - pinlabel
Message-ID: <20130622113228.GA27998@localhost.localdomain>
Mail-Followup-To: "geda-user AT delorie DOT com" <geda-user AT delorie DOT com>
References: <CACPio-5w_t0bT0w7u0sUvH53Bq4EeXhpeMQsX+hEwm3khoYNpg AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <CACPio-5w_t0bT0w7u0sUvH53Bq4EeXhpeMQsX+hEwm3khoYNpg@mail.gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

--AhhlLboLdkugWU4S
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline

On Tue, Jun 18, 2013 at 04:28:17PM -0400, Nathan Stewart wrote:
>    I noticed when creating a footprint, that if I display my pin names
>    using 'D', it shows the pin labels from the 7th field of my Pin[]
>    statement.
>    Pin[20000  100000 8000 8000 8000 6000 "AREF" "36" ""]
>    Will display as "AREF" on screen. However mouse-over the pin shows
>    "Pinname=U6-36' instead of the "AREF" value for that part/pin.
>    My grep-fu powers failed me trying to find where this is rendered. Am I
>    misunderstanding the intent, is this a bug in display code, or in my
>    part?

This is just a misnamed item. That "pinname" really shows a connection
name which is combined of your element name (U6, its refdes) and the pin
number you hover the mouse over (36 in this case). The result is
something like a schematic net name after netlist creation. The
connection name is defined in the function 'describe_location' in
gui-output-events.c (gtk hid) which calls the function 'ConnectionName'
which in turn is defined in rats.c and actually returns the number of
the pad or pin in question. That said, this is simple to fix. The patch
is attached.

--AhhlLboLdkugWU4S
Content-Type: text/x-diff; charset=utf-8
Content-Disposition: attachment; filename="pinname.patch"

diff --git a/src/hid/gtk/gui-output-events.c b/src/hid/gtk/gui-output-events.c
index 2ca39de..b171518 100644
--- a/src/hid/gtk/gui-output-events.c
+++ b/src/hid/gtk/gui-output-events.c
@@ -446,7 +446,7 @@ describe_location (Coord X, Coord Y)
   END_LOOP;
 
   description = g_strdup_printf ("Element name: %s\n"
-                                 "Pinname : %s\n"
+                                 "Connection name : %s\n"
                                  "Netname : %s",
                                  elename,
                                  (pinname != NULL) ? pinname : "--",

--AhhlLboLdkugWU4S--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019