Files
UnrealEngineUWP/Engine/Source/Editor/DetailCustomizations/Private/MediaTextureCustomization.h
Ben Marsh 149375b14b Update copyright notices to 2015.
[CL 2379638 by Ben Marsh in Main branch]
2014-12-07 19:09:38 -05:00

52 lines
1.3 KiB
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
/**
* Implements a details view customization for the UMediaTexture class.
*/
class FMediaTextureCustomization
: public IDetailCustomization
{
public:
// IDetailCustomization interface
virtual void CustomizeDetails( IDetailLayoutBuilder& DetailBuilder ) override;
public:
/**
* Creates an instance of this class.
*
* @return The new instance.
*/
static TSharedRef<IDetailCustomization> MakeInstance()
{
return MakeShareable(new FMediaTextureCustomization());
}
private:
/** Callback for generating the menu content of the VideoTrack combo box. */
TSharedRef<SWidget> HandleVideoTrackComboButtonMenuContent() const;
/** Callback for selecting a track in the VideoTrack combo box. */
void HandleVideoTrackComboButtonMenuEntryExecute( uint32 TrackIndex );
/** Callback for getting the text of the VideoTrack combo box. */
FText HandleVideoTrackComboButtonText() const;
private:
/** The collection of media textures being customized */
TArray<TWeakObjectPtr<UObject>> CustomizedMediaTextures;
/** Pointer to the MediaPlayer property handle. */
TSharedPtr<IPropertyHandle> MediaPlayerProperty;
/** Pointer to the VideoTrackIndex property handle. */
TSharedPtr<IPropertyHandle> VideoTrackIndexProperty;
};