I have been improving the new layout and integrating it into Leo's code base. For those of you who so kindly tried out the demo scripts earlier, here's what has changed:
...
A PR for the new code has been submitted. You don't have to wait for it to be reviewed and merged - get the tbp-leo_layouts branch from my cloned repo atI have also revised the Layout-Demo outline. It creates a new menu filled with items that show how many of the commands work, along with others that are scripts not included in the qt_layout module. This outline can be gotten from my repo atBe sure to read the "About This Outline" node in the outline.
Than you for testing. It looks like you do not have the viewendered.py plugin enabled.
Would you mind enabling it (as well as viewrendered3.py) and trying again? I will look at the code and work out the best way to handle the cases where either VR or VR3 are not enabled. I have been under the impression that VR was always present whether formally enabled or not.I'm not sure that simply changing from widget = self.created_splitter_dict[name] to widget = self.created_splitter_dict.get(name) will be enough because other parts of the code might need some adjustment too.If you already have VR enabled then I'm temporarily stumped.
Hello Thomas,tbp1...@gmail.com schrieb am Sonntag, 6. Oktober 2024 um 22:51:45 UTC+2:Than you for testing. It looks like you do not have the viewendered.py plugin enabled.Correct - but - as you can see in "Log-002" viewrendered3.py is enabled ! - I never enable VR & VR3 at the same time ...
Viktor, I've got all these cases of the missing VR/VR3 taken care of but before I push the changes up where you can try them, I'd appreciate your thoughts on a few things.
Viktor, I've got all these cases of the missing VR/VR3 taken care of but before I push the changes up where you can try them, I'd appreciate your thoughts on a few things.
First, I have followed the way that the current system creates layouts that include VR or VR3. They set up a place for it but don't actually put VR/VR3 into it and show the widget unless it's already open and shown. It seems to me that if one asks for a layout that includes VR/VR3 that they would expect VR/VR3 will immediately be visible in that layout. What do you think?
Second, I have some layouts that use VR and some that use VR3. I think that these layouts should (like, for example, "Big Tree") should open with VR3 if available otherwise with VR. That will be a little tricky to arrange but I think it can be done. Do you have an opinion here?
The third thing I would welcome your opinion on is about which layouts should be included in the core code vs which ones could be defined in @settings tree. The Layout-Demo outline uses a mix of both. My thinking is that some layouts may only be useful to a few users (like me or you!) whereas others would see more widespread use. Of course new layouts can be created by anyone - if they can do the small amount of scripting - and put into an @settings tree. I'm unsure where to draw the line between core commands and non-core ones. What is your opinion?
On Wed, Oct 9, 2024 at 6:13 AM Viktor Ransmayr wrote:> it feels 'strange' to me to put plugin - dependencies / relationships into Leo's core code.The VR/VR3 panes are integral parts of every layout. The recent layout work supports layouts in Leo's core, so the dependencies are expected. Thomas's code handles these dependencies cleanly.
> Which ~ layouts ~ should be offered / provided by Leo's core ?All of them. Plugins can create new layouts fairly easily, but afaik nobody has tested that capability.Summary of my testingI haven't been able to have both VR and VR3 panes open simultaneously. This looks like a bug, but imo the "devel" branch is good enough to release as it is. Perhaps only Thomas wants to switch between VR and VR3 while switching layouts. If necessary, he can submit a small PR to remedy any remaining glitches.
On Wed, Oct 9, 2024 at 8:11 AM Thomas Passin>> EKR: I haven't been able to have both VR and VR3 panes open simultaneously. This looks like a bug, but imo the "devel" branch is good enough to release as it is.
tbp1...@gmail.com schrieb am Dienstag, 8. Oktober 2024 um 01:55:20 UTC+2:Viktor, I've got all these cases of the missing VR/VR3 taken care of but before I push the changes up where you can try them, I'd appreciate your thoughts on a few things.
- I assume this means that VR & VR3 do NOT have to be enabled at the same time in the future. - Correct ?
First, I have followed the way that the current system creates layouts that include VR or VR3. They set up a place for it but don't actually put VR/VR3 into it and show the widget unless it's already open and shown. It seems to me that if one asks for a layout that includes VR/VR3 that they would expect VR/VR3 will immediately be visible in that layout. What do you think?
- Should VR/VR3 'content' be immediately visible - or - should the user explicitly request it ?
- For me this is not an OR - but - an AND ! - I believe there are situations (e.g. single screen / small laptop, etc.) where the user should be able to toggle to save 'screen estate'.
Second, I have some layouts that use VR and some that use VR3. I think that these layouts should (like, for example, "Big Tree") should open with VR3 if available otherwise with VR. That will be a little tricky to arrange but I think it can be done. Do you have an opinion here?
- If VR3 is enabled, should it be prioritized over VR ?
- I don't have a strong opinion on this issue - but - somehow it feels 'strange' to me to put plugin - dependencies / relationships into Leo's core code.
The third thing I would welcome your opinion on is about which layouts should be included in the core code vs which ones could be defined in @settings tree. The Layout-Demo outline uses a mix of both. My thinking is that some layouts may only be useful to a few users (like me or you!) whereas others would see more widespread use. Of course new layouts can be created by anyone - if they can do the small amount of scripting - and put into an @settings tree. I'm unsure where to draw the line between core commands and non-core ones. What is your opinion?
- Which ~ layouts ~ should be offered / provided by Leo's core ?
- I tried out all layouts currently offered by Leo's core. - See "Log-001" below
- IMO 'layout-big-tree' & 'layout-vertical-thirds2' are quite special - and - could be just documented as examples.
With kind regards,Viktor