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

52 lines
1.3 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
#include "UObject/Object.h"
#include "UObject/WeakObjectPtr.h"
#include "UObject/WeakFieldPtr.h"
#include "ConfigPropertyHelper.generated.h"
UENUM()
enum EConfigFileSourceControlStatus
{
CFSCS_Unknown UMETA(DisplayName=Unknown),
CFSCS_Writable UMETA(DisplayName = "Available to edit"),
CFSCS_Locked UMETA(DisplayName = "File is locked"),
};
UCLASS(MinimalAPI)
class UPropertyConfigFileDisplayRow : public UObject
{
GENERATED_BODY()
public:
void InitWithConfigAndProperty(const FString& InConfigFileName, FProperty* InEditProperty);
public:
UPROPERTY(Transient, Category = Helper, VisibleAnywhere)
FString ConfigFileName;
UPROPERTY(Transient, Category = Helper, EditAnywhere, meta=(EditCondition="bIsFileWritable"))
TFieldPath<FProperty> ExternalProperty;
UPROPERTY(Transient, Category = Helper, VisibleAnywhere)
bool bIsFileWritable;
};
UCLASS(MinimalAPI)
class UConfigHierarchyPropertyView : public UObject
{
GENERATED_BODY()
public:
UPROPERTY(Transient, Category=Helper, EditAnywhere)
TFieldPath<FProperty> EditProperty;
UPROPERTY(Transient, Category = Helper, EditAnywhere)
TArray<UPropertyConfigFileDisplayRow*> ConfigFilePropertyObjects;
};