Files
UnrealEngineUWP/Engine/Source/Editor/DetailCustomizations/Private/KeyStructCustomization.h
Matt Kuhlenschmidt 0bac17760c Fixup usage of deprecated IStructCustomizationUtils interface
[CL 2094462 by Matt Kuhlenschmidt in Main branch]
2014-06-04 11:16:24 -04:00

42 lines
1.4 KiB
C++

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
/*=============================================================================
KeyStructCustomization.h: Declares the FGuidCustomization class.
=============================================================================*/
#pragma once
/**
* Implements a details panel customization for FKey structures.
*/
class FKeyStructCustomization
: public IPropertyTypeCustomization
{
public:
// Begin IPropertyTypeCustomization interface
virtual void CustomizeHeader(TSharedRef<class IPropertyHandle> StructPropertyHandle, class FDetailWidgetRow& HeaderRow, IPropertyTypeCustomizationUtils& StructCustomizationUtils) OVERRIDE;
virtual void CustomizeChildren(TSharedRef<IPropertyHandle> StructPropertyHandle, class IDetailChildrenBuilder& ChildBuilder, IPropertyTypeCustomizationUtils& StructCustomizationUtils) OVERRIDE {};
// End IPropertyTypeCustomization interface
/**
* Creates a new instance.
*
* @return A new struct customization for Keys.
*/
static TSharedRef<IPropertyTypeCustomization> MakeInstance( );
private:
TSharedRef<SWidget> OnGenerateComboWidget(TSharedPtr<FKey> Key);
void OnSelectionChanged(TSharedPtr<FKey> SelectedItem, ESelectInfo::Type SelectInfo);
// Holds a handle to the property being edited.
TSharedPtr<IPropertyHandle> PropertyHandle;
TSharedPtr<STextBlock> TextBlock;
TArray< TSharedPtr<FKey> > InputKeys;
};