You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rb sebastian.nordren #preflight 632b6876e23e50651bf79d06, 632df2c7d51603c54898b28b [CL 22165378 by patrick boutot in ue5-main branch]
49 lines
1.3 KiB
C++
49 lines
1.3 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Components/Widget.h"
|
|
#include "Engine/DeveloperSettings.h"
|
|
#include "UObject/SoftObjectPtr.h"
|
|
#include "MVVMDeveloperProjectSettings.generated.h"
|
|
|
|
/**
|
|
*
|
|
*/
|
|
USTRUCT()
|
|
struct FMVVMDeveloperProjectWidgetSettings
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
/** Properties or functions name that should not be use for binding (read or write). */
|
|
UPROPERTY(EditAnywhere, config, Category=MVVM)
|
|
TSet<FName> DisallowedFieldNames;
|
|
|
|
/** Properties or functions name that are displayed in the advanced category. */
|
|
UPROPERTY(EditAnywhere, config, Category=MVVM)
|
|
TSet<FName> AdvancedFieldNames;
|
|
};
|
|
|
|
|
|
/**
|
|
* Implements the settings for the MVVM Editor
|
|
*/
|
|
UCLASS(config=ModelViewViewModel, defaultconfig)
|
|
class MODELVIEWVIEWMODELBLUEPRINT_API UMVVMDeveloperProjectSettings : public UDeveloperSettings
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
virtual FName GetCategoryName() const override;
|
|
virtual FText GetSectionText() const override;
|
|
|
|
bool IsPropertyAllowed(FProperty* Property) const;
|
|
bool IsFunctionAllowed(UFunction* Function) const;
|
|
|
|
private:
|
|
/** Permission list for filtering which properties are visible in UI. */
|
|
UPROPERTY(EditAnywhere, config, Category=MVVM)
|
|
TMap<FSoftClassPath, FMVVMDeveloperProjectWidgetSettings> FieldSelectorPermissions;
|
|
};
|