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