Files
UnrealEngineUWP/Engine/Source/Editor/ConfigEditor/Public/ConfigPropertyHelper.h
Zousar Shaker 3b4c8fc1c5 Automated wrapped object pointer upgrade for Engine + ShooterGame + ShooterGame referenced plugins
#rb none

[CL 15224650 by Zousar Shaker in ue5-main branch]
2021-01-27 17:40:25 -04: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<TObjectPtr<UPropertyConfigFileDisplayRow>> ConfigFilePropertyObjects;
};