On Monday, May 20, 2024 at 5:31:52 PM UTC-4 Edward K. Ream wrote: On Mon, May 20, 2024 at 10:20 AM Thomas Passin <[email protected]> wrote:
Imo, there is *no way* to have the free_layout and nested_splitter plugins coexist with the PR. I am considering moving those two plugins to the attic. I wouldn't go that far. My script tries to use the free_layout method to find the right widget to insert VR3 into, and that raises an exception it uses the new method instead. One could easily move the script into the plugin itself as a command. So I think they could coexist - with some rewriting, of course. I'm willing to leave the two plugins where they are, untouched. However, I don't think you (or anyone else) will be able to use them reliably. In the PR, *dw.createMainLayout* creates the main and secondary splitters as QSplitters, not NestedSplitters. This change is essential. Otherwise the free_layout plugin is *privileged*, that is, baked into Leo. To the contrary, in my private branch based on the *ekr-3910-no-fl-ns-plugins* branch, I have got VR3 so it can: 1. For a vr3-open or vr3-toggle command, it opens below the log frame, which is the new behavior you set up; 2. I can toggle it on and off in its own tab in the log frame; 3. My script to put into the body editor's stacked widget and toggle between the body pane and VR3 works. The script could be added to the VR3 code although I haven't done that yet. What I don't know yet, with the new layout scheme, is how to open a third pane and put VR3 into that the way it did originally - or moving the log frame (with VR3 in its own tab there) to a third panel. Having it share vertical height with the log pane is not ideal because you can't see enough of the rendered view. Having it in a tab in the log frame is better, but the display switches away from VR3 to the log tab whenever there is output to the log. That's not ideal either, though it's not as bad. I have been learning that toggling between the body editor and the VR3 rendered view is usually the most useful way to use it. There is probably a lot of cleanup to be done with all the changes - especially for a different layout. I don't know how to set a different layout yet so I haven't tested that. The RPCalc plugin toggles on and off in the log frame with no changes. Anyway, I'm optimistic about VR3 and similar plugins continuing to work with minimal changes in the new layout regime. -- 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 on the web visit https://groups.google.com/d/msgid/leo-editor/c08dafbe-6873-42f4-8698-ea81dcf77762n%40googlegroups.com.
