Files
UnrealEngineUWP/Engine/Source/Editor/DetailCustomizations/Private/CameraLensSettingsCustomization.h
Ben Marsh 20bf0eb6a1 Updating copyright notices to 2017 (copying from //Tasks/UE4/Dev-Copyright-2017).
#rb none
#lockdown Nick.Penwarden

[CL 3226823 by Ben Marsh in Main branch]
2016-12-08 08:52:44 -05:00

44 lines
1.5 KiB
C++

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