Files
UnrealEngineUWP/Engine/Source/Editor/DetailCustomizations/Private/EnvQueryParamInstanceCustomization.h
Matt Kuhlenschmidt 0bac17760c Fixup usage of deprecated IStructCustomizationUtils interface
[CL 2094462 by Matt Kuhlenschmidt in Main branch]
2014-06-04 11:16:24 -04:00

41 lines
1.4 KiB
C++

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "EnvironmentQuery/EnvQueryTypes.h"
class FEnvQueryParamInstanceCustomization : public IPropertyTypeCustomization
{
public:
// Begin IPropertyTypeCustomization interface
virtual void CustomizeHeader( TSharedRef<class IPropertyHandle> StructPropertyHandle, class FDetailWidgetRow& HeaderRow, IPropertyTypeCustomizationUtils& StructCustomizationUtils ) OVERRIDE;
virtual void CustomizeChildren( TSharedRef<class IPropertyHandle> StructPropertyHandle, class IDetailChildrenBuilder& StructBuilder, IPropertyTypeCustomizationUtils& StructCustomizationUtils ) OVERRIDE;
// End IPropertyTypeCustomization interface
static TSharedRef<IPropertyTypeCustomization> MakeInstance( );
protected:
TSharedPtr<IPropertyHandle> NameProp;
TSharedPtr<IPropertyHandle> ValueProp;
TSharedPtr<IPropertyHandle> TypeProp;
TOptional<float> GetParamNumValue() const;
void OnParamNumValueChanged(float FloatValue) const;
EVisibility GetParamNumValueVisibility() const;
ESlateCheckBoxState::Type GetParamBoolValue() const;
void OnParamBoolValueChanged(ESlateCheckBoxState::Type BoolValue) const;
EVisibility GetParamBoolValueVisibility() const;
FString GetHeaderDesc() const;
void OnTypeChanged();
void InitCachedTypes();
EEnvQueryParam::Type ParamType;
mutable uint8 CachedBool : 1;
mutable float CachedFloat;
mutable int32 CachedInt;
};