Files
UnrealEngineUWP/Engine/Source/Editor/EnvironmentQueryEditor/Private/DetailCustomizations/EnvQueryParamSetupCustomization.h
Jaroslaw Palczynski ebce413232 UE4 Refactoring. Changed OVERRIDE and FINAL macros to keywords override and final.
[CL 2104397 by Jaroslaw Palczynski in Main branch]
2014-06-13 06:14:46 -04:00

48 lines
1.6 KiB
C++

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "EnvironmentQuery/EnvQueryTypes.h"
#include "PropertyEditing.h"
#include "PropertyCustomizationHelpers.h"
class FEnvQueryParamSetupCustomization : 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> PropertyHandle;
TSharedPtr<IPropertyHandle> ValueProp;
TSharedPtr<IPropertyHandle> NameProp;
TSharedPtr<SEditableTextBox> TextBox;
FName LastPropName;
bool bIsNamed;
EEnvQueryParam::Type ParamType;
void CacheMyValues();
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;
void OnParamNameCommitted(const FText& ParamName, ETextCommit::Type CommitInfo);
EVisibility GetParamNameVisibility() const;
FReply ToggleMode();
void OnModeChanged();
FString GetComboText() const;
FString GetComboTooltip() const;
};