Files
UnrealEngineUWP/Engine/Source/Editor/AddContentDialog/Private/ContentSourceDragDropOp.h
ryan durand 627baf970a Updating copyright for Engine Editor.
#rnx
#rb none


#ROBOMERGE-SOURCE: CL 10869241 via CL 10869527 via CL 10869904
#ROBOMERGE-BOT: (v613-10869866)

[CL 10870586 by ryan durand in Main branch]
2019-12-26 15:33:43 -05:00

33 lines
1.1 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Input/DragAndDrop.h"
#include "DragAndDrop/DecoratedDragDropOp.h"
class FContentSourceViewModel;
/** A drag drop operation for dragging and dropping FContentSourceViewModels. */
class FContentSourceDragDropOp : public FDecoratedDragDropOp
{
public:
DRAG_DROP_OPERATOR_TYPE(FContentSourceDragDropOp, FDecoratedDragDropOp)
/** Creates and constructs a shared references to a FContentSourceDragDrop.
@param InContentSource - The view model for the content source being dragged and dropped */
static TSharedRef<FContentSourceDragDropOp> CreateShared(TSharedPtr<FContentSourceViewModel> InContentSource);
virtual TSharedPtr<SWidget> GetDefaultDecorator() const override;
/** Gets the view model for the content source being dragged and dropped. */
TSharedPtr<FContentSourceViewModel> GetContentSource();
private:
FContentSourceDragDropOp(TSharedPtr<FContentSourceViewModel> InContentSource);
private:
/** The view model for the content source being dragged and dropped. */
TSharedPtr<FContentSourceViewModel> ContentSource;
};