Files
UnrealEngineUWP/Engine/Source/Editor/DetailCustomizations/Private/MotionControllerDetails.h
ryan durand 627baf970a Updating copyright for Engine Editor.
#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]
2019-12-26 15:33:43 -05:00

61 lines
2.2 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "IDetailCustomization.h"
#include "Types/SlateEnums.h" // for ETextCommit, ESelectInfo
#include "Misc/Attribute.h"
class IDetailCategoryBuilder;
class IDetailLayoutBuilder;
class IPropertyHandle;
class IDetailPropertyRow;
class ITableRow;
class STableViewBase;
class IPropertyHandle;
class FMotionControllerDetails : public IDetailCustomization
{
public:
/** Makes a new instance of this detail layout class for a specific detail view requesting it */
static TSharedRef<IDetailCustomization> MakeInstance();
/** IDetailCustomization interface */
virtual void CustomizeDetails(IDetailLayoutBuilder& DetailLayout) override;
private:
void RefreshXRSourceList();
void SetSourcePropertyValue(const FName NewSystemName);
void UpdateSourceSelection(TSharedPtr<FName> NewSelection);
void CustomizeModelSourceRow(TSharedRef<IPropertyHandle>& Property, IDetailPropertyRow& PropertyRow);
void OnResetSourceValue(TSharedPtr<IPropertyHandle> PropertyHandle);
bool IsSourceValueModified(TSharedPtr<IPropertyHandle> PropertyHandle);
FText OnGetSelectedSourceText() const;
void OnSourceMenuOpened();
void OnSourceNameCommited(const FText& NewText, ETextCommit::Type InTextCommit);
TSharedRef<ITableRow> MakeSourceSelectionWidget(TSharedPtr<FName> Item, const TSharedRef<STableViewBase>& OwnerTable);
void OnSourceSelectionChanged(TSharedPtr<FName> NewSelection, ESelectInfo::Type SelectInfo);
void CustomizeCustomMeshRow(IDetailPropertyRow& PropertyRow);
bool IsCustomMeshPropertyEnabled() const;
TArray< TWeakObjectPtr<UObject> > SelectedObjects;
TSharedPtr<IPropertyHandle> XRSourceProperty;
TArray< TSharedPtr<FName> > XRSourceNames;
TAttribute<bool> UseCustomMeshAttr;
TSharedPtr<IPropertyHandle> DisplayModelProperty;
TSharedPtr<IPropertyHandle> DisplayMaterialsProperty;
static TMap< FName, TSharedPtr<FName> > CustomSourceNames;
TSharedPtr<IPropertyHandle> MotionSourceProperty;
// Delegate handler for when UI changes motion source
void OnMotionSourceChanged(FName NewMotionSource);
// Return text for motion source combo box
FText GetMotionSourceValueText() const;
};