Files
UnrealEngineUWP/Engine/Source/Editor/PropertyEditor/Public/IPropertyTableColumn.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

62 lines
1.8 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Widgets/Views/SHeaderRow.h"
namespace EPropertyTableColumnSizeMode
{
enum Type
{
Fill,
Fixed,
};
}
class IPropertyTableColumn
{
public:
virtual FName GetId() const = 0;
virtual FText GetDisplayName() const = 0;
virtual TSharedRef< class IDataSource > GetDataSource() const = 0;
virtual TSharedRef< class FPropertyPath > GetPartialPath() const = 0;
virtual TSharedRef< class IPropertyTableCell > GetCell( const TSharedRef< class IPropertyTableRow >& Row ) = 0;
virtual void RemoveCellsForRow( const TSharedRef< class IPropertyTableRow >& Row ) = 0;
virtual TSharedRef< class IPropertyTable > GetTable() const = 0;
virtual bool CanSelectCells() const = 0;
virtual EPropertyTableColumnSizeMode::Type GetSizeMode() const = 0;
virtual void SetSizeMode(EPropertyTableColumnSizeMode::Type InSizeMode) = 0;
virtual float GetWidth() const = 0;
virtual void SetWidth( float InWidth ) = 0;
virtual bool IsHidden() const = 0;
virtual void SetHidden( bool IsHidden ) = 0;
virtual bool IsFrozen() const = 0;
virtual void SetFrozen( bool IsFrozen ) = 0;
virtual bool CanSortBy() const = 0;
virtual void Sort( TArray< TSharedRef< class IPropertyTableRow > >& Rows, const EColumnSortMode::Type PrimarySortMode, const TSharedPtr<IPropertyTableColumn>& SecondarySortColumn, const EColumnSortMode::Type SecondarySortMode ) = 0;
virtual TSharedPtr<struct FCompareRowByColumnBase> GetPropertySorter(FProperty* Property, EColumnSortMode::Type SortMode) = 0;
/**
* Tick the property column each frame
*/
virtual void Tick() = 0;
DECLARE_EVENT_OneParam( IPropertyTableColumn, FFrozenStateChanged, const TSharedRef< IPropertyTableColumn >& );
virtual FFrozenStateChanged* OnFrozenStateChanged() = 0;
};