2016-12-08 08:52:44 -05:00
|
|
|
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
|
2015-04-22 13:40:06 -04:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2016-11-23 15:48:37 -05:00
|
|
|
#include "CoreMinimal.h"
|
|
|
|
|
#include "UObject/ObjectMacros.h"
|
|
|
|
|
#include "UObject/Object.h"
|
|
|
|
|
#include "UObject/WeakObjectPtr.h"
|
2015-04-22 13:40:06 -04:00
|
|
|
#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, UProperty* InEditProperty);
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
UPROPERTY(Transient, Category = Helper, VisibleAnywhere)
|
|
|
|
|
FString ConfigFileName;
|
|
|
|
|
|
|
|
|
|
UPROPERTY(Transient, Category = Helper, EditAnywhere, meta=(EditCondition="bIsFileWritable"))
|
|
|
|
|
UProperty* ExternalProperty;
|
|
|
|
|
|
|
|
|
|
UPROPERTY(Transient, Category = Helper, VisibleAnywhere)
|
|
|
|
|
bool bIsFileWritable;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UCLASS(MinimalAPI)
|
|
|
|
|
class UConfigHierarchyPropertyView : public UObject
|
|
|
|
|
{
|
|
|
|
|
GENERATED_BODY()
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
UPROPERTY(Transient, Category=Helper, EditAnywhere)
|
|
|
|
|
TWeakObjectPtr<UProperty> EditProperty;
|
|
|
|
|
|
|
|
|
|
UPROPERTY(Transient, Category = Helper, EditAnywhere)
|
|
|
|
|
TArray<UPropertyConfigFileDisplayRow*> ConfigFilePropertyObjects;
|
|
|
|
|
};
|