// Copyright Epic Games, Inc. All Rights Reserved. #pragma once #include "CoreMinimal.h" #include "ContentBrowserDelegates.h" #include "Input/Reply.h" #include "Widgets/DeclarativeSyntaxSupport.h" #include "Widgets/SCompoundWidget.h" ////////////////////////////////////////////////////////////////////////// // SGlobalOpenAssetDialog class SGlobalOpenAssetDialog : public SCompoundWidget { public: SLATE_BEGIN_ARGS(SGlobalOpenAssetDialog){} SLATE_END_ARGS() public: void Construct(const FArguments& InArgs, FVector2D InSize); // SWidget interface virtual FReply OnPreviewKeyDown(const FGeometry& MyGeometry, const FKeyEvent& InKeyEvent) override; virtual FReply OnKeyDown(const FGeometry& MyGeometry, const FKeyEvent& InKeyEvent) override; // End of SWidget interface protected: void OnAssetSelectedFromPicker(const struct FAssetData& AssetData); void OnPressedEnterOnAssetsInPicker(const TArray& SelectedAssets); void RequestCloseAssetPicker(); TSharedPtr OnGetAssetContextMenu(const TArray& SelectedAssets) const; class IContentBrowserSingleton& GetContentBrowser() const; void FindInContentBrowser(); bool AreAnyAssetsSelected() const; FGetCurrentSelectionDelegate GetCurrentSelectionDelegate; TSharedPtr Commands; };