kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #34978
Re: wxGrid boolean changes
@Wayne, any opinion on this one? Should I merge it or play it safe and leave it in 6.0?
> On 14 Mar 2018, at 14:12, Jeff Young <jeff@xxxxxxxxx> wrote:
>
> IIRC, it was tricky to get right because you can’t fire it when the cell *does* have focus or wxWidgets gets itself tied in knots. (It turns out that’s OK because when it does have focus wxWidgets toggles it with a single-click anyway.)
>
> It was also a bit tricky around reference counting.
>
> The current version has had a decent amount of testing in my 6.0 branch, so it’s good-to-go on Mac. But after the teething troubles I was hesitant to merge it given possible issues on other platforms.
>
> I do think we should add (2). I'm happy for you to tackle it, Jon.
>
> (I’m also happy to merge my version to 5.0 first if others think it’s worth the risk.)
>
> Cheers,
> Jeff
>
>
>> On 14 Mar 2018, at 14:03, Jon Evans <jon@xxxxxxxxxxxxx <mailto:jon@xxxxxxxxxxxxx>> wrote:
>>
>> Thanks Jeff, it doesn't look like that big a change but if you think it should wait I don't feel strongly, except that it might make maintenance more annoying if we have one implementation in 5.0 and one in 6.0.
>>
>> Anyone else have opinions on this?
>> I think (2) should be added to Jeff's implementation and I can probably handle that unless you want to, Jeff
>>
>> -Jon
>>
>> On Wed, Mar 14, 2018 at 9:58 AM, Jeff Young <jeff@xxxxxxxxx <mailto:jeff@xxxxxxxxx>> wrote:
>> Hi Jon,
>>
>> I implemented (1), (3) and (4) in 6.0. It was tweaky enough that I don’t recommend it for 5.0 (but I don’t fee strongly).
>>
>> You can see my implementation here: https://git.launchpad.net/~jeyjey/kicad/commit/?h=6.0&id=7dda85fdae21f162bd7413fdceb16e49698f31bf <https://git.launchpad.net/~jeyjey/kicad/commit/?h=6.0&id=7dda85fdae21f162bd7413fdceb16e49698f31bf>.
>>
>> Cheers,
>> Jeff.
>>
>>
>>> On 14 Mar 2018, at 13:50, Jon Evans <jon@xxxxxxxxxxxxx <mailto:jon@xxxxxxxxxxxxx>> wrote:
>>>
>>> Hi all,
>>>
>>> I recently (2f86b497) changed the behavior of the wxGrid in the footprint wizard dialog to fix some issues with boolean (checkbox) parameters.
>>>
>>> The default behavior from wxWidgets (at least in 3.0) is buggy in that the update events don't get sent out when you'd expect from the wxGridCellBoolEditor.
>>>
>>> I have found that I can get behavior that makes sense to me by overriding event handlers for the grid itself, but I'd like to make a more generic fix that can be easily portable to other grids, since we will likely have more places to use checkboxes in grids in the future.
>>>
>>> Before I go too far down that path, I wanted to check that the new footprint wizard grid behavior matches with everyone's expectations for how it should work:
>>>
>>> 1) you can toggle the checkbox on/off with a single left click
>>> 2) you can also toggle with the spacebar if the cell is highlighted
>>> 3) nothing happens for double click / right click / etc.
>>> 4) if you click inside the cell (but outside the checkbox) the checkbox is also toggled for convenience
>>>
>>> Thanks,
>>> Jon
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~kicad-developers <https://launchpad.net/~kicad-developers>
>>> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx <mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>
>>> Unsubscribe : https://launchpad.net/~kicad-developers <https://launchpad.net/~kicad-developers>
>>> More help : https://help.launchpad.net/ListHelp <https://help.launchpad.net/ListHelp>
>>
>>
>
> _______________________________________________
> 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