This is just a skeleton to have something to extend. Further work is needed to flesh out the menu.
#jira UE-212299
#rb ross.smith2
[CL 34352609 by sebastian arleryd in ue5-main branch]
The latter would cause things to break if you re-created the level editor (e.g layout load) and the cached selection set would still use the one belonging to the old instance.
#jira UE-216647
#rb ronald.koppers
[CL 34316300 by aditya ravichandran in ue5-main branch]
Also add // clang-format off/on comments around the Slate code in BuildVolumeControlCustomWidget.
#jira UE-212286
#rb ross.smith2
[CL 34267648 by sebastian arleryd in ue5-main branch]
The new alignment support layers on top of the existing insertion-order support. Sections are added to the toolbar in groups where we first add all Left-aligned sections according to their insertion order, then all First-aligned sections, and then the Middle and Last-aligned sections. Note that this can break the specified insertion order if the user mixed alignments, but otherwise it's maintained.
The First and Default alignments are grouped together, with First-aligned sections appearing before Default-aligned sections. The result is a toolbar with visual empty space between the First-Default group, Middle group, and the Last group. A caveat here is that the Middle group won't necessarily appear perfectly centered on the toolbar because it's position depends on the sizes of the First-Default and Last groups.
#jira UE-212286
#rb brooke.hubert, ross.smith2
[CL 34230831 by sebastian arleryd in ue5-main branch]
Also rename UE::UnrealEd::FillViewMenu to UE::UnrealEd::PopulateViewModesMenu to make it match the new UE::LevelEditor::PopulateViewModesMenu.
#jira UE-212284
#rb ross.smith2
[CL 34087919 by sebastian arleryd in ue5-main branch]
The "View Modes" menu's "Visualizers" entry is an example of one that needs this.
#jira UE-212284
[CL 34060535 by sebastian arleryd in ue5-main branch]
This moves the a few things into the new menu and also adds the "Engine Scalability" and "Screen Percentage" submenus which previously didn't exist in the new viewport toolbar.
#jira UE-212285
#rb ross.smith2
[CL 34027724 by sebastian arleryd in ue5-main branch]
Note that this top-level state doesn't react properly when unrelated code changes the top-level state. This will improve in the future when no other unrelated UI toggles the realtime state (right now it's easy to change in via the old viewport toolbar).
#jira UE-212284
#rb ross.smith2
[CL 33996201 by sebastian arleryd in ue5-main branch]
The upside of this is that the submenus of each group ("section submenus") can have proper ToolMenu sections if they are ToolMenu submenus. Previously, when we grouped using sections, we couldn't section each section, because ToolMenus doesn't support nested sections.
#jira UE-212288
#rb ross.smith2
[CL 33935309 by sebastian arleryd in ue5-main branch]
Note that this updates the level editor (non-viewport) toolbar "Settings" menu to use the same code for its "Material Quality Level" and "Preview Platform" submenus as is now used in the "LevelEditor.ViewportToolbar" menu.
#jira UE-212288
#rb ross.smith2
[CL 33764291 by sebastian arleryd in ue5-main branch]