class
FEditorLayoutMigration
- Module
- EditorFramework
- Header
#include "EditorFramework/EditorLayoutMigration.h"- Namespace
Mowo
Type aliases
| Alias | Description |
|---|---|
using FTabFactory = std::function<std::shared_ptr<Arcf::ADockTab>(const std::string&)> |
Properties
| Type | Name | Description |
|---|---|---|
static constexpr int32_t | CurrentVersion | The layout file version this editor writes. 2 was the pre-redesign frame. Default 3. |
static constexpr float | ModesWidth | The main-window column sizes of the redesign (editor-main layout.json). Default 300.0f. |
static constexpr float | RightColumnWidth | Default 540.0f. |
static constexpr float | OutlinerHeight | Default 520.0f. |
static constexpr float | BottomDockHeight | Default 440.0f. |
static constexpr float | BottomRightWidth | Default 765.0f. |
static constexpr float | LegacyModesWidth | The defaults the version-2 frame wrote; a seam still at one of them was never sized by the user. Default 210.0f. |
static constexpr float | LegacyRightColumnWidth | Default 340.0f. |
static constexpr float | LegacyBottomDockHeight | Default 260.0f. |
static constexpr float | LegacyBottomRightWidth | Default 560.0f. |
static constexpr float | LegacyOutlinerRatio | Default 4.0f / 9.0f. |
Public functions
| Returns | Name | Description |
|---|---|---|
FEditorLayoutMigrationReport | Migrate | Migrates in place. |
bool | SubtreeHasTab | |
Arcf::SDockArea* | FindAreaWithTab |
Function details
Migrate
C++
static FEditorLayoutMigrationReport Migrate(Arcf::CDockLayout& layout, int32_t fromVersion, const FTabFactory& tabFor, const std::unordered_set<std::string>& placedElsewhere)Migrates in place. tabFor mints a tab the new frame adds by default; placedElsewhere names tabs the user keeps in a sidebar or a floating window, which are never docked a second time. A layout already at CurrentVersion is left alone.
SubtreeHasTab
C++
static bool SubtreeHasTab(const std::shared_ptr<Arcf::CDockNode>& node, const std::string& tabId)FindAreaWithTab
C++
static Arcf::SDockArea* FindAreaWithTab(const std::shared_ptr<Arcf::CDockNode>& node, const std::string& tabId)Generated from EditorFramework/EditorLayoutMigration.h via editorframework.json · Nov 2, 2026Version 1.0.0