Plasma Engine  2.0
Loading...
Searching...
No Matches
AssetDragDropHandler.h
1#pragma once
2
3#include <EditorFramework/DragDrop/DragDropHandler.h>
4
5class plDocument;
6
7class PL_EDITORFRAMEWORK_DLL plAssetDragDropHandler : public plDragDropHandler
8{
9 PL_ADD_DYNAMIC_REFLECTION(plAssetDragDropHandler, plDragDropHandler);
10
11public:
12protected:
13 bool IsAssetType(const plDragDropInfo* pInfo) const;
14
15 plString GetAssetGuidString(const plDragDropInfo* pInfo) const;
16
17 plUuid GetAssetGuid(const plDragDropInfo* pInfo) const { return plConversionUtils::ConvertStringToUuid(GetAssetGuidString(pInfo)); }
18
19 plString GetAssetsDocumentTypeName(const plUuid& assetTypeGuid) const;
20
21 bool IsSpecificAssetType(const plDragDropInfo* pInfo, const char* szType) const;
22
23 plDocument* m_pDocument;
24};
Definition AssetDragDropHandler.h:8
Definition Document.h:57
Definition DragDropHandler.h:10
This type is used to provide plDragDropHandler instances with all the important information for a dra...
Definition DragDropInfo.h:16
This data type is the abstraction for 128-bit Uuid (also known as GUID) instances.
Definition Uuid.h:11
PL_FOUNDATION_DLL plUuid ConvertStringToUuid(plStringView sText)
Converts a string that was written with plConversionUtils::ToString(plUuid) back to an plUuid object.
Definition ConversionUtils.cpp:794