Files
UnrealEngineUWP/Engine/Source/Editor/DetailCustomizations/Private/CameraLensSettingsCustomization.h
Ryan Vance 7c51ff94af Merging //UE4/Dev-Main to Dev-VR (//UE4/Dev-VR)
CL 1 of 8
#rb integration

[CL 4748712 by Ryan Vance in Dev-VR branch]
2019-01-17 18:54:05 -05:00

45 lines
1.6 KiB
C++

// Copyright 1998-2019 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:
};