You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#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]
45 lines
1.6 KiB
C++
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:
|
|
};
|