Files
UnrealEngineUWP/Engine/Source/Editor/StatsViewer/Private/ObjectHyperlinkColumn.h
Thomas Sarkanen 8ba3c4c087 Merging //UE4/Dev-Main to Dev-Anim (//UE4/Dev-Anim) @ CL 4643671
#rb none
#jira none

[CL 4665410 by Thomas Sarkanen in Dev-Anim branch]
2018-12-17 06:31:16 -05:00

41 lines
1.6 KiB
C++

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "IPropertyTableUtilities.h"
#include "IPropertyTableColumn.h"
#include "IPropertyTableCustomColumn.h"
#include "ObjectHyperlinkColumnInitializationOptions.h"
class IPropertyTableCell;
class IPropertyTableCellPresenter;
/**
* A property table custom column used to display names of objects
* that can be clicked on to jump to the objects in the scene or
* content browser.
*/
class FObjectHyperlinkColumn : public IPropertyTableCustomColumn
{
public:
FObjectHyperlinkColumn(const FObjectHyperlinkColumnInitializationOptions& InOptions = FObjectHyperlinkColumnInitializationOptions());
/** Begin IPropertyTableCustomColumn interface */
virtual bool Supports( const TSharedRef< IPropertyTableColumn >& Column, const TSharedRef< IPropertyTableUtilities >& Utilities ) const override;
virtual TSharedPtr< SWidget > CreateColumnLabel( const TSharedRef< IPropertyTableColumn >& Column, const TSharedRef< IPropertyTableUtilities >& Utilities, const FName& Style ) const override;
virtual TSharedPtr< IPropertyTableCellPresenter > CreateCellPresenter( const TSharedRef< IPropertyTableCell >& Cell, const TSharedRef< IPropertyTableUtilities >& Utilities, const FName& Style ) const override;
/** End IPropertyTableCustomColumn interface */
private:
/** Delegate called to generate a custom widget */
FOnGenerateWidget OnGenerateWidget;
/** Delegate called when a hyperlink is clicked */
FOnObjectHyperlinkClicked OnObjectHyperlinkClicked;
/** Delegate used to query whether a UClass is supported */
FOnIsClassSupported OnIsClassSupported;
};