kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #31237
Re: wxAUI woes
On 10/27/2017 2:04 AM, hauptmech wrote:
>
> That must have been painful to find...
>
> A quick read of the Aui code says yes there is a problem. They hide all
> panels at the beginning of LoadPerspective and then update only panels
> with keys in the configuration string. So anything new and not in the
> config file will stay hidden.
>
> I'm not current on kicad gui policy. That said, everything works as I
> would expect it to.
>
> A user with an existing config will keep that config and can use the
> pane toggle in the view menu to turn the pane on.
> A new user will have an empty config file and will get the default
> config as defined in the code.
>
> Going forward LoadSettings() or SaveSettings() probably need a property
> filter added, as those are where SavePerspective (and LoadPerspective
> once Dick finishes per his comment in the code) are called.
I think I'm the one who used {Load/Save}Perspective. Dick commented it
out when we discovered it was broken.
>
> If the pane is mandatory (no view toggle) you probably need to hard-code
> unhiding it after LoadPerspective to be nice to users upgrading with
> config files in place.
You will most likely have to force the change in the perspective to
ensure that you can unhide panes. I would be careful about what aui
behavior you enable. If I recall, detachable panes was also broken but
that make have been fixed. Have you tried testing with wx 3.1? Maybe
the wx project fixed some of these issues.
>
> Take a peek at the Aui source code if I didn't explain the above well
> enough and it should quickly make sense.
>
>
> On 27/10/17 16:32, Oliver Walters wrote:
>> I finally discovered the issue. To add a new wxAUI pane, I had to go
>> into ~/.config/kicad/pcbnew and delete all entries relating to
>> modview. After this, I was able to see the new item.
>>
>> So, is there is a potential problem with
>> wxAuiManager::LoadPerspective, if the layout configuration has changed?
>>
>> On Mon, Oct 16, 2017 at 9:58 PM, hauptmech <hauptmech@xxxxxxxxx
>> <mailto:hauptmech@xxxxxxxxx>> wrote:
>>
>> Looks like I missed modview_frame at the time so you'll want to
>> reference one of the other frames and update it. I converted a lot
>> of erroneous Row() calls to Layer() and standardized the
>> initialization. On the git repo it's commit bd19d31082...
>>
>> Remembering more about this now. From back when tearing off the
>> AUI panels and moving them to a second monitor gave me a crucial
>> few more cm of room to view my design. These days with a 4K
>> display it doesn't seem so critical.
>>
>>
>>
>> -Hauptmech
>>
>> On 16/10/17 15:00, Oliver Walters wrote:
>>> The image is 1920x1020, there should be no issue reading the text...
>>>
>>> Anyway, the issue is that I have tried to add a new panel to the
>>> module selector window, by copying the code used to add the
>>> panels that are currently there. Compiles ok but when I run KiCad
>>> and open the selector, the new panel is not visible anywhere. I
>>> realize this isn't much of a problem description, but I was
>>> wondering if there was some trick that is undocumented (or
>>> documented somewhere that I haven't found it) that I need to know
>>> to display wxAUI panels.
>>>
>>>
>>>
>>> On Mon, Oct 16, 2017 at 12:29 PM, Greg Smith
>>> <ecomputerd@xxxxxxxxx <mailto:ecomputerd@xxxxxxxxx>> wrote:
>>>
>>> I can't read the text, there's not enough resolution. What is
>>> the issue?
>>>
>>> I've had windows that seem to be tucked under the horizontal
>>> toolbar.
>>>
>>> Greg S.
>>>
>>> On Oct 15, 2017, at 7:46 PM, Oliver Walters
>>> <oliver.henry.walters@xxxxxxxxx
>>> <mailto:oliver.henry.walters@xxxxxxxxx>> wrote:
>>>
>>>> I'm trying to add a new panel to the module viewer window.
>>>> "screenshot" below.
>>>>
>>>> However I can't get wxAUI to play along at all. I cannot
>>>> even get a new panel to be displayed in this window. Are
>>>> there any particular tricks that may be non-obvious?
>>>>
>>>> https://i.imgur.com/dXj51u1.png
>>>> <https://i.imgur.com/dXj51u1.png>
>>>>
>>>> Cheers,
>>>>
>>>> Oliver
>>>> _______________________________________________
>>>> Mailing list: https://launchpad.net/~kicad-developers
>>>> <https://launchpad.net/%7Ekicad-developers>
>>>> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
>>>> <mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>
>>>> Unsubscribe : https://launchpad.net/~kicad-developers
>>>> <https://launchpad.net/%7Ekicad-developers>
>>>> More help : https://help.launchpad.net/ListHelp
>>>> <https://help.launchpad.net/ListHelp>
>>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~kicad-developers
>>> <https://launchpad.net/%7Ekicad-developers>
>>> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
>>> <mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>
>>> Unsubscribe : https://launchpad.net/~kicad-developers
>>> <https://launchpad.net/%7Ekicad-developers>
>>> More help : https://help.launchpad.net/ListHelp
>>> <https://help.launchpad.net/ListHelp>
>>
>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~kicad-developers
>> <https://launchpad.net/%7Ekicad-developers>
>> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
>> <mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>
>> Unsubscribe : https://launchpad.net/~kicad-developers
>> <https://launchpad.net/%7Ekicad-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