Files
UnrealEngineUWP/Engine/Source/Editor/ConfigEditor/Private/PropertyVisualization/ConfigPropertyCellPresenter.h
Terence Burns 14cb541a13 Config Editor added to UE4.
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]
2015-04-22 13:40:06 -04:00

31 lines
1.1 KiB
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Editor/PropertyEditor/Public/PropertyHandle.h"
#include "Editor/PropertyEditor/Public/IPropertyTableCellPresenter.h"
class FConfigPropertyCellPresenter : public TSharedFromThis< FConfigPropertyCellPresenter >, public IPropertyTableCellPresenter
{
public:
FConfigPropertyCellPresenter(const TSharedPtr< IPropertyHandle > PropertyHandle);
virtual ~FConfigPropertyCellPresenter() {}
/** 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 cell content
TSharedPtr<SWidget> DisplayWidget;
};