Refactor new editor boundaries and test ownership
This commit is contained in:
@@ -21,25 +21,9 @@ struct StructuredEditorShellBinding {
|
||||
}
|
||||
};
|
||||
|
||||
inline StructuredEditorShellBinding BuildStructuredEditorShellBinding(
|
||||
const EditorShellAsset& asset) {
|
||||
StructuredEditorShellBinding binding = {};
|
||||
binding.screenAsset.screenId = asset.screenId;
|
||||
binding.screenAsset.documentPath = asset.documentPath.string();
|
||||
binding.workspaceController =
|
||||
UIEditorWorkspaceController(asset.panelRegistry, asset.workspace, asset.workspaceSession);
|
||||
binding.shellDefinition = asset.shellDefinition;
|
||||
binding.shortcutManager = BuildEditorShellShortcutManager(asset);
|
||||
binding.assetValidation = ValidateEditorShellAsset(asset);
|
||||
return binding;
|
||||
}
|
||||
StructuredEditorShellBinding BuildStructuredEditorShellBinding(const EditorShellAsset& asset);
|
||||
|
||||
inline UIEditorShellInteractionServices BuildStructuredEditorShellServices(
|
||||
const StructuredEditorShellBinding& binding) {
|
||||
UIEditorShellInteractionServices services = {};
|
||||
services.commandDispatcher = &binding.shortcutManager.GetCommandDispatcher();
|
||||
services.shortcutManager = &binding.shortcutManager;
|
||||
return services;
|
||||
}
|
||||
UIEditorShellInteractionServices BuildStructuredEditorShellServices(
|
||||
const StructuredEditorShellBinding& binding);
|
||||
|
||||
} // namespace XCEngine::UI::Editor
|
||||
|
||||
Reference in New Issue
Block a user