Maximise active window by hotkey (so you can use Tile Windows > 'Untile Windows')
Forum rules
and Helpful information
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help
Also, be nice to others! Read the FreeCAD code of conduct!
Also, be nice to others! Read the FreeCAD code of conduct!
Maximise active window by hotkey (so you can use Tile Windows > 'Untile Windows')
I was wondering, is there a way to 'undo' tile windows? It would be helpful to do, because I want to tile windows in my project to see the spreadsheet, but I want to untile the windows when working on my file (consider it an indirect way to mimick a pop-up spreadsheet). I can maximise the main view, what I am really after though is a keyboard shortcut to do so. So I tile windows with "W,T" and want to untile with "T, W".
Last edited by Hologram on Sun Feb 05, 2023 12:16 pm, edited 2 times in total.
Re: Tile Windows > Untile windows to go back to single viewport
What rule you want to use to compose the unique window?Hologram wrote: ↑Sun Feb 05, 2023 9:45 am I was wondering, is there a way to 'undo' tile windows? It would be helpful to do, because I want to tile windows in my project to see the spreadsheet, but I want to untile the windows when working on my file (consider it an indirect way to mimick a pop-up spreadsheet). I can maximise the main view, what I am really after though is a keyboard shortcut to do so. So I tile windows with "W,T" and want to untile with "T, W".
It is not easy as usually untile algorithm place each windows in a grid scheme assigning to each windows same dimensions to fill the space.
It is not easy as you have to "think as a computer".
A possible try to formalize a behaviour:
I have a FreeCAD window and want to detach a window, when I hit the icon that permit to detach a window
- I record all the "panels" position in "mainWindow".
- I add a button somewhere or a menu item that permit to trigger a reattach routine.
if I detach a window, the algorithm will rearrange all windows left, so you have to resize all the panels.
When I hit the "reattach" button or item it has to restore panels.
- What happens if I have added a new panel, or I have done an action that has unhide a new panel? How the compositor has to behave?
- Restore the old panel positions, hiding or killing the added panel.
- Tell you that he can reposition things as there a mismatch between his "recorded panel position" and refusing to act.
- Use and arbitrary rule to resize all the panels to fit the detached one? But what rule?
- Doing what?
Regards
Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.
Blog: https://okkmkblog.wordpress.com/
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.
Blog: https://okkmkblog.wordpress.com/
Re: Tile Windows > Untile windows to go back to single viewport
Maximizing the active view should be possible.
Re: Tile Windows > Untile windows to go back to single viewport
I could explain it in more detail, basically what I mean with untile is that every window should be maximised again and that the active window should be the maximised window that I am seeing in full. The order of the windows is not important, they shift in Revit, but it would be perfectly fine if I could just maximise the active window with a hotkey. I can show you how this works in Revit for reference:
https://gifyu.com/image/SmOra
https://gifyu.com/image/SmOra
But not from a hotkey AFAICT, there's only the Fullscreen option for the software itself or the Window option to choose which window to open.
Re: Tile Windows > Untile windows to go back to single viewport
I was responding to onekk's comment.
Re: Tile Windows > Untile windows to go back to single viewport
As said countless times, it is not important how in other software thing are working, as if you have to deal with Qt widgets, you have to implement something that is "feasible" with the toolkit used, that probably is not the same.
Plus as said other times, it depends even on the fact that you should "insure consistency" between OS supported by FreeCAD.
If not I don't see in a developer perspective how it could be implemented if the toolkit don't permit the deisred behaviour.
As said when making proposal you have to think using a "programming workflow", human brain is not a computer and the other way round so what seem "natural" and "obvious" has to be formalised in some "rule" to be able to implment it using a language, a toolkit or whatever you use when programming a computer.
Regards
Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.
Blog: https://okkmkblog.wordpress.com/
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.
Blog: https://okkmkblog.wordpress.com/
Re: Tile Windows > Untile windows to go back to single viewport
Yes but the point is to solve race conditions, I could save a panel scheme recording the positions and size, now I don't remember well how Qt store the Widget position and if FreeCAD use a Grid Placement (Sorry for the imprecision but it some time that I don't deal with Qt5).
I know that you can maximize the window, what Hologram is askig is to detach as example the "spreadsheet" and then reattach to FreeCAD mainwindow once finished to edit it as example.
As Spreadsheet is a "document" probably it is only a matter of re adding it to the "tab control", now I could think that is more easy, but I have to check.
Regards
Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.
Blog: https://okkmkblog.wordpress.com/
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.
Blog: https://okkmkblog.wordpress.com/
Re: Tile Windows > Untile windows to go back to single viewport
Actually, just maximising the active screen would be fine already. FreeCAD already does the rest perfectly fine (hadn't noticed that yet, but @Roy_043 pointed that out).onekk wrote: ↑Sun Feb 05, 2023 12:07 pmYes but the point is to solve race conditions, I could save a panel scheme recording the positions and size, now I don't remember well how Qt store the Widget position and if FreeCAD use a Grid Placement (Sorry for the imprecision but it some time that I don't deal with Qt5).
I know that you can maximize the window, what Hologram is askig is to detach as example the "spreadsheet" and then reattach to FreeCAD mainwindow once finished to edit it as example.
As Spreadsheet is a "document" probably it is only a matter of re adding it to the "tab control", now I could think that is more easy, but I have to check.
Regards
Carlo D.
So, in summary, the question is: Can you maximise the active window by hotkey?
Changed the topic title to reflect this question better.
Re: Maximise active window by hotkey (so you can use Tile Windows > 'Untile Windows')
Thanks it is interesting I will note it down.
Spreadsheet should be a tab in QMdiArea I have to check if this work as the post is 8 years old.
Regards
Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.
Blog: https://okkmkblog.wordpress.com/
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.
Blog: https://okkmkblog.wordpress.com/