← Back to team overview

kicad-developers team mailing list archive

Re: Patch - For adding tooltips for add a component

 

Dingo_aus a écrit :

[Attachment(s) <#TopText> from Dingo_aus included below]

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

Why do not use
wxString AddHotkeyName( const wxString& aText, struct Ki_HotkeyInfoSectionDescriptor* aDescList, int aCommandId ) that is the basic function used to append hotkeys to menus, very easy to use.

--
Jean-Pierre CHARRAS

Maître de conférences
Directeur d'études 2ieme année.
Génie Electrique et Informatique Industrielle 2
Institut Universitaire de Technologie 1 de Grenoble
BP 67, 38402 St Martin d'Heres Cedex

Recherche :
GIPSA-LAB - INPG
Rue de la Houille Blanche
38400 Saint Martin d'Heres







References