kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #37766
Re: [PATCH] Hotkey list dialog
-
To:
kicad-developers@xxxxxxxxxxxxxxxxxxx
-
From:
Wayne Stambaugh <stambaughw@xxxxxxxxx>
-
Date:
Wed, 3 Oct 2018 13:26:08 -0400
-
In-reply-to:
<CAG1r56KgUiqjSACwhgqNApmxHgUUFHuzC6=GvuL=p0jozD-6-w@mail.gmail.com>
-
User-agent:
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.0
John,
Your patch set looks good and works as advertised. I have a few
nit-pick comments.
I personally prefer making the hotkey list panel hard coded as you did
rather than using wxFB but not all developers share my preference in
this regard. Since this makes the hotkey list panel more reusable, I'm
hoping no one will protest too loudly.
Your common UI code (patch 4) probably should include support for a
wxSizerFlag object for the default border. You might want to consider
using term border instead of margin to prevent confusion as that is how
it is defined in the wxwidgets documentation. I'm fine either way.
I will merge your if there are not objections. You can just create
another patch.
Cheers,
Wayne
On 10/3/2018 11:20 AM, John Beard wrote:
> Hi,
>
> Here is a patch sequence for using the hotkey editor widget in a
> read-only mode to provide a filterable (and slightly prettier) hotkey
> list. This is a 5.1 milestone.
>
> Major details other than the main aim of the list widget:
>
> * There are some "common UI" elements introduced here that should be
> generally re-usable:
> ** BUTTON_ROW_PANEL provides an easy way to construct a row of buttons
> spaced out nicely
> ** A place to put "generic" UI stuff like the 5px constant very often
> used for margins
> * The editor/list panel is no longer a wxFB project, as I couldn't get
> it to play nice with optional elements: undoing half the construction
> in the derived class, unbinding events and changing various stuff in
> response to editabilty was not very tidy. It's substantially less code
> now, partly due to the re-usable widgets above.
>
> Also adds tooltips for the HK editor buttons via the new BUTTON_ROW_PANEL class.
>
> Cheers,
>
> John
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help : https://help.launchpad.net/ListHelp
>
Follow ups
References