frontend: Move Preview into dock widget - #12190
Conversation
|
By putting everything in a single dock area "Full-Height docks" option will not be functional anymore. OBSBasic::AddDockWidget might need to force to bottom area too for docks from plugins |
Correct, the option won't be needed anymore, since the preview not being the central widget will no longer restrict docks from being laid out in the way that full height docks addressed.
Yep, this is also planned. |
c63b598 to
06c3433
Compare
3b0f955 to
edf2d9e
Compare
|
#12188 is merged so undrafting. |
|
Converting this to draft to prevent accidental merge. I want to hold this until some further changes to how we save dock state are made. |
Description
Moves the widgets for the preview into an OBSDock within the main window. Instead of the preview being the centralwidget, a new dummy one is added to the top of the window, and all docks have their allowedAreas set to
BottomDockWidgetAreaonly.Depends on #12188
Note
Still need to update Browser Docks to have their allowedAreas set correctly, as well as probably override the
addDockmethod to force set it.The Preview dock cannot be moved, undocked or hidden and has an empty widget for it's title bar. Functionally it is effectively identical to before.
Motivation and Context
This makes certain dock layouts much more intuitive to set up, moves us a small step closer to more encapsulation of main window functionality. This is also a requirement for additional UI changes in the future that I am experimenting with involving either a top toolbar or a dedicated sidebar as a revamped home for Outputs, contextual controls, and eventually canvases.
How Has This Been Tested?
Interacted with the preview and ensured functionality matched main.
Types of changes
Checklist: