2026-04-25 19:25:49 +08:00
|
|
|
#include "Windowing/Content/EditorWindowContentFactory.h"
|
|
|
|
|
|
|
|
|
|
#include "Windowing/Content/EditorUtilityWindowContentController.h"
|
|
|
|
|
#include "Windowing/Content/EditorWorkspaceWindowContentController.h"
|
|
|
|
|
|
|
|
|
|
#include <utility>
|
|
|
|
|
|
|
|
|
|
namespace XCEngine::UI::Editor::App {
|
|
|
|
|
|
|
|
|
|
namespace {
|
|
|
|
|
|
|
|
|
|
class DefaultEditorWindowContentFactory final : public EditorWindowContentFactory {
|
|
|
|
|
public:
|
|
|
|
|
std::unique_ptr<EditorWindowContentController> CreateWorkspaceContentController(
|
2026-04-26 00:25:49 +08:00
|
|
|
std::string_view windowId,
|
2026-04-25 19:25:49 +08:00
|
|
|
UIEditorWorkspaceController workspaceController) const override {
|
2026-04-26 00:25:49 +08:00
|
|
|
return CreateEditorWorkspaceWindowContentController(
|
|
|
|
|
windowId,
|
|
|
|
|
std::move(workspaceController));
|
2026-04-25 19:25:49 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
std::unique_ptr<EditorWindowContentController> CreateUtilityContentController(
|
|
|
|
|
const EditorUtilityWindowDescriptor& descriptor) const override {
|
|
|
|
|
return CreateEditorUtilityWindowContentController(descriptor);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
|
|
|
|
|
|
std::unique_ptr<EditorWindowContentFactory> CreateDefaultEditorWindowContentFactory() {
|
|
|
|
|
return std::make_unique<DefaultEditorWindowContentFactory>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace XCEngine::UI::Editor::App
|