// Copyright Epic Games, Inc. All Rights Reserved. #pragma once #include "ContentSources/IContentSource.h" #include "Widgets/SCompoundWidget.h" namespace UE::Editor::DataStorage { class ICoreProvider; class IUiProvider; } // namespace UE::Editor::DataStorage namespace UE::Editor::ContentBrowser { // Displays the widgets for a single content source that is currently active class SContentSource : public SCompoundWidget { public: SLATE_BEGIN_ARGS(SContentSource) {} SLATE_END_ARGS() void Construct(const FArguments& InArgs); void SetContentSource(const TSharedPtr& ContentSource); private: TSharedRef CreateWidget(); private: // The currently active content source TSharedPtr ContentSource; DataStorage::ICoreProvider* DataStorage = nullptr; DataStorage::IUiProvider* DataStorageUi = nullptr; }; }