kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #04235
Patch - For adding tooltips for add a component and add a wire
-
To:
kicad-devel@xxxxxxxxxxxxxxx
-
From:
Dingo_aus <dingo.australia@...>
-
Date:
Mon, 15 Feb 2010 19:44:23 +1000
-
In-reply-to:
<936b14d21002142325t127bcc70p120dadcc0addbba2@...>
-
User-agent:
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.5) Gecko/20091204 Lightning/1.0b1 Thunderbird/3.0
--------------090305010006030805010608 Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Thanks Manveru for the advice.
The attached diff is a patch against tool_sch.cpp
(not sure what the naming convention should be for .diff files)
The patch adds the hotkey key to the tooltip for "add wire" and "add a
component" in esschema.
It algorithmically looks up the hotkeys as defined (by default or by
external list) and then adds <hotkey> to the end of the tool tip for
these two buttons in eeschema.
These are the only two buttons in eescshema that have hotkeys at the
moment. I intend to add some more hotkeys and then add the code to
their tooltips.
Thanks,
Nigel Hungerford-Symes (Dingo_aus)
Brisbane Australia
On 15/02/10 17:25, Manveru wrote:
>
>
>
> 2010/2/15 Dingo_aus <dingo.australia@...
> <mailto:dingo.australia@...>>
>
> Ok,
>
> I week or two I told this list I'd try and include the relevant
> hotkey
> in the tooltip for some of the buttons in Eeschema.
>
> Well I've got a solution I wish to upload now. Unfortunately I've not
> used SVN before. I'm asking for someone's help to tell me how I can
> submit my code to the project.
>
> I've checked out 2343.
>
> My edits are in the eeschema dir, tool_sch.cpp file to be exact. I
> notice that Charras has been working in their two lately but I think
> I've been working on a different part of the files.
>
> I'm using KDEsvn.
>
> So I assume I will need a username/password. Then do I "commit"
> "merge"
> or something else?
>
>
> You are not allowed to commit. Please, do update to head revision,
> merge and correct conflicts, and then prepare a patch. Publish the
> patch here on the list in attachment.
>
> For instructions how do all these steps, please refer to Subversion
> manuals.
>
> --
> Manveru
> jabber: manveru@... <mailto:manveru@...>
> gg: 1624001
> http://www.manveru.pl <http://www.manveru.pl>
>
--------------090305010006030805010608 Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Thanks Manveru for the advice.<br>
<br>
The attached diff is a patch against tool_sch.cpp<br>
<br>
(not sure what the naming convention should be for .diff files)<br>
<br>
The patch adds the hotkey key to the tooltip for "add wire" and "add a
component" in esschema.<br>
<br>
It algorithmically looks up the hotkeys as defined (by default or by
external list) and then adds <hotkey> to the end of the tool tip
for these two buttons in eeschema.<br>
<br>
These are the only two buttons in eescshema that have hotkeys at the
moment. I intend to add some more hotkeys and then add the code to
their tooltips.<br>
<br>
Thanks,<br>
<br>
Nigel Hungerford-Symes (Dingo_aus)<br>
Brisbane Australia<br>
<br>
<br>
<br>
On 15/02/10 17:25, Manveru wrote:
<blockquote
cite="mid:936b14d21002142325t127bcc70p120dadcc0addbba2@..."
type="cite"><span style="display: none;">Â </span>
<div id="ygrp-text">
<p><br>
<br>
</p>
<div class="gmail_quote">2010/2/15 Dingo_aus <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:dingo.australia@...">dingo.australia@<wbr>gmail.com</a>></span><br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204);">
<div style="background-color: rgb(255, 255, 255);"><span>Â </span>
<div>
<div>
<div>
<p>Ok,<br>
<br>
I week or two I told this list I'd try and include the relevant hotkey <br>
in the tooltip for some of the buttons in Eeschema.<br>
<br>
Well I've got a solution I wish to upload now. Unfortunately I've not <br>
used SVN before. I'm asking for someone's help to tell me how I can <br>
submit my code to the project.<br>
<br>
I've checked out 2343.<br>
<br>
My edits are in the eeschema dir, tool_sch.cpp file to be exact. I <br>
notice that Charras has been working in their two lately but I think <br>
I've been working on a different part of the files.<br>
<br>
I'm using KDEsvn.<br>
<br>
So I assume I will need a username/password. Then do I "commit" "merge"
<br>
or something else?<br>
</p>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
You are not allowed to commit. Please, do update to head revision,
merge and correct conflicts, and then prepare a patch. Publish the
patch here on the list in attachment.<br>
<br>
For instructions how do all these steps, please refer to Subversion
manuals.<br clear="all">
<br>
-- <br>
Manveru<br>
jabber: <a moz-do-not-send="true" href="mailto:manveru@...">manveru@manveru.<wbr>pl</a><br>
  gg: 1624001<br>
 <a moz-do-not-send="true" href="http://www.manveru.pl">http://www.manveru.<wbr>pl</a><br>
</div>
<!-- end group email --></blockquote>
<br>
</body>
</html>
--------------090305010006030805010608----------------040203070509000507010308 Content-Type: text/x-patch;
name="Dingo_aus add tooltips.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="Dingo_aus add tooltips.diff"
[Attachment content not displayed.] --------------040203070509000507010308--
Follow ups
References