Files
UnrealEngineUWP/Engine/Source/Editor/AddContentDialog/Private/ContentSourceDragDropOp.h
Ben Marsh 149375b14b Update copyright notices to 2015.
[CL 2379638 by Ben Marsh in Main branch]
2014-12-07 19:09:38 -05:00

30 lines
1.1 KiB
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "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;
};