Files
UnrealEngineUWP/Engine/Source/Editor/AddContentDialog/Private/ContentSourceDragDropOp.h
Ben Marsh 20bf0eb6a1 Updating copyright notices to 2017 (copying from //Tasks/UE4/Dev-Copyright-2017).
#rb none
#lockdown Nick.Penwarden

[CL 3226823 by Ben Marsh in Main branch]
2016-12-08 08:52:44 -05:00

33 lines
1.1 KiB
C++

// Copyright 1998-2017 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;
};