kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #04111
Re: Any objections to hotkeys being displayed in tooltips?
-
To:
kicad-devel@xxxxxxxxxxxxxxx
-
From:
Wayne Stambaugh <stambaughw@...>
-
Date:
Mon, 01 Feb 2010 13:29:15 -0500
-
In-reply-to:
<4B670B8A.5040106@...>
-
User-agent:
Thunderbird 2.0.0.23 (Windows/20090812)
Dick Hollenbeck wrote:
> Manveru wrote:
>
>
>> But it should be solved by ActionManager pattern, where all action are
>> stored in one place independently where they are used and any
>> connection between menu item, toolbar item, command and keyboard
>> shortcut (hot key is application independent to lanuch some general
>> feature of your system or extension) are passed by it or its elements
>> (how to spell it: storagee?). Then if you know some action has a
>> keyboard shortcut and tooltip text, it could be easily asked for to
>> display on demand.
>
>
>> But I do not find such action manager fully implemented with all
>> required features, some partially implementations are in GTK+ and Qt,
>> but from what I've investigated for my other projects, they miss some
>> important functions.
>
> The concept is a good one. Implementing would best be done on
> wxWidgets, not on GTK+ or Qt for us. Looking at the surface of a deep
> murky pond, I think reaching the bottom might be possible.
Take a look at wxKeyBinder at
<http://wxcode.sourceforge.net/components/keybinder/>. It is written by
one of the primary wxWidgets developers. The last time I tried to build
it, the sample segfaulted on GTK. That was over a year ago so perhaps
this has been fixed. It's design fits in with wxWidgets very well. It
would require a complete redesign of the Kicad hot key implementation.
It is a command event based design like wxAccelleratorEntry rather than
a virtual base class method implementation of the kicad hot keys so I'm
guessing that it would be quite a bit of work to fit this into Kicad.
It would also add another dependency so that may be an issue. However,
it is a fairly complete solution with a built in shortcut key editor,
automatic updating of menu labels, supports multiple short cut profiles,
etc. I thought it might make it into the next version of wxWidgets like
wxProperties did. Maybe it will make it into wxWidgets 3.2.
Wayne
>
> Dick
Follow ups
References