You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
We now have the capacity to set a uproperty value anywhere in the config file hierarchy Satisfies UEPLAT-429 The user can now use the 'ConfigHierarchyEditable' meta flag in their uproperties to present a butoon that allows the property to be edited in the config hierarchy, where applicable. Target platform is configurable. [CL 2521330 by Terence Burns in Main branch]
57 lines
2.3 KiB
C++
57 lines
2.3 KiB
C++
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "Editor/PropertyEditor/Public/IPropertyTableColumn.h"
|
|
#include "Editor/PropertyEditor/Public/IPropertyTableCustomColumn.h"
|
|
#include "Editor/PropertyEditor/Public/IPropertyTableCellPresenter.h"
|
|
|
|
|
|
class FConfigPropertyConfigFileStateCellPresenter : public TSharedFromThis< FConfigPropertyConfigFileStateCellPresenter >, public IPropertyTableCellPresenter
|
|
{
|
|
public:
|
|
|
|
FConfigPropertyConfigFileStateCellPresenter(const TSharedPtr< IPropertyHandle > PropertyHandle);
|
|
virtual ~FConfigPropertyConfigFileStateCellPresenter() {}
|
|
|
|
|
|
/** Begin IPropertyTableCellPresenter interface */
|
|
virtual TSharedRef< class SWidget > ConstructDisplayWidget() override;
|
|
virtual bool RequiresDropDown() override;
|
|
virtual TSharedRef< class SWidget > ConstructEditModeCellWidget() override;
|
|
virtual TSharedRef< class SWidget > ConstructEditModeDropDownWidget() override;
|
|
virtual TSharedRef< class SWidget > WidgetToFocusOnEdit() override;
|
|
virtual bool HasReadOnlyEditMode() override;
|
|
virtual FString GetValueAsString() override;
|
|
|
|
virtual FText GetValueAsText() override;
|
|
/** End IPropertyTableCellPresenter interface */
|
|
|
|
protected:
|
|
|
|
/**
|
|
* The text we display - we just store this as we never need to *edit* properties in the stats viewer,
|
|
* only view them. Therefore we dont need to dynamically update this string.
|
|
*/
|
|
FText Text;
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
* A property table custom column used to display source control condition of files.
|
|
*/
|
|
class CONFIGEDITOR_API FConfigPropertyConfigFileStateCustomColumn : public IPropertyTableCustomColumn
|
|
{
|
|
public:
|
|
FConfigPropertyConfigFileStateCustomColumn(){}
|
|
|
|
/** 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 */
|
|
|
|
/* The property type which can be displayed in this column */
|
|
UProperty* SupportedProperty;
|
|
}; |