Files
UnrealEngineUWP/Engine/Source/Editor/DetailCustomizations/Private/CameraLensSettingsCustomization.h
ryan durand 627baf970a Updating copyright for Engine Editor.
#rnx
#rb none


#ROBOMERGE-SOURCE: CL 10869241 via CL 10869527 via CL 10869904
#ROBOMERGE-BOT: (v613-10869866)

[CL 10870586 by ryan durand in Main branch]
2019-12-26 15:33:43 -05:00

45 lines
1.6 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Widgets/SWidget.h"
#include "Widgets/Input/SComboBox.h"
#include "IPropertyTypeCustomization.h"
class FDetailWidgetRow;
class IPropertyHandle;
class FCameraLensSettingsCustomization : public IPropertyTypeCustomization
{
public:
FCameraLensSettingsCustomization();
static TSharedRef<IPropertyTypeCustomization> MakeInstance();
/** IPropertyTypeCustomization instance */
virtual void CustomizeHeader(TSharedRef<IPropertyHandle> PropertyHandle, FDetailWidgetRow& HeaderRow, IPropertyTypeCustomizationUtils& CustomizationUtils) override;
virtual void CustomizeChildren( TSharedRef<IPropertyHandle> StructPropertyHandle, class IDetailChildrenBuilder& ChildBuilder, IPropertyTypeCustomizationUtils& StructCustomizationUtils ) override;
protected:
TSharedPtr<IPropertyHandle> MinFocalLengthHandle;
TSharedPtr<IPropertyHandle> MaxFocalLengthHandle;
TSharedPtr<IPropertyHandle> MinFStopHandle;
TSharedPtr<IPropertyHandle> MaxFStopHandle;
TSharedPtr<IPropertyHandle> MinFocusDistanceHandle;
TSharedPtr<IPropertyHandle> MaxReproRatioHandle;
TSharedPtr<IPropertyHandle> DiaphragmBladeCountHandle;
TSharedPtr<class SComboBox< TSharedPtr<FString> > > PresetComboBox;
TArray< TSharedPtr< FString > > PresetComboList;
void OnPresetChanged(TSharedPtr<FString> NewSelection, ESelectInfo::Type SelectInfo);
TSharedRef<SWidget> MakePresetComboWidget(TSharedPtr<FString> InItem);
FText GetPresetComboBoxContent() const;
TSharedPtr<FString> GetPresetString() const;
protected:
};