Doesn't work somehow. Here is what I did:

In MyLeoSetting.leo:

- Created a node @settings/Common @command nodes/@command windowlayout-mine
- Copied your code into the node's body.
- In @settings/Qt Gui Misc settings added the node @string qt-layout-name = 
windowlayout-mine

What have I forgotten?


On Sunday, December 15, 2024 at 7:04:42 PM UTC+1 [email protected] wrote:

> We don't have a standard layout line that at present.  The new layout 
> system makes it very easy to create new layouts like yours.  Here's a 
> layout command that will create your layout.  You can put it into an 
> @command node in myLeosettings.leo. Then make it the default layout by 
> adding a settings node @string qt-layout-name = your-special-layout. Use 
> the actual name for your layout command instead of 'your-special-layout'.
>
> Maybe I should write a tutorial on creating new layouts...
>
> from leo.core.leoQt import Orientation
>
> VRX_PLACEHOLDER_NAME = 'viewrenderedx_pane'
> LAYOUT = {
>     'SPLITTERS': dict(
>             (('outlineFrame', 'main_splitter'),
>             ('bodyFrame', 'secondary_splitter'),
>             ('logFrame', 'secondary_splitter'),
>             ('secondary_splitter', 'main_splitter'),
>             (VRX_PLACEHOLDER_NAME, 'main_splitter')
>             )
>         ),
>     'ORIENTATIONS': {
>         'secondary_splitter': Orientation.Vertical,
>         'main_splitter': Orientation.Horizontal
>     }
> }
>
> dw = c.frame.top
> cache = dw.layout_cache
> cache.restoreFromLayout(LAYOUT)
>
> On Sunday, December 15, 2024 at 12:35:27 PM UTC-5 [email protected] wrote:
>
>> My window layout used to be:
>> Main split vertical.
>> Left hand side pane: Outline pane going from top to bottom.
>> Rite hand side: Body pane on top, logging etc. pane below (so a 
>> horizontal split devides the rite hand side window).
>>
>> No, after upgrading to 6.8.3 the split is horz: 
>> Bottom, reaching from left to rite: Body pane.
>> Top, split by a vert split: Left hand side: Outline pane; rite hand side: 
>> Log etc. pane.
>>
>> How can I change this back to the layout I'm used to for ages now? I 
>> couldn't find any setting for this.
>>
>> Cheers
>> Paul
>>
>> P.S.:
>> Old and desired layout:
>> outline  |  body
>> outline  |  --------
>> outline  |  log
>>
>> New and undesired layout:
>> outline   |     log
>> -----------------------
>> outline outline
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/leo-editor/11e1486d-3fcd-47d2-ae65-874790fe8a5en%40googlegroups.com.

Reply via email to