Files
UnrealEngineUWP/Engine/Source/Editor/EditorWidgets/Public/EditorWidgetsModule.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

59 lines
1.9 KiB
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "ModuleInterface.h"
#include "ITransportControl.h"
#include "AssetDiscoveryIndicator.h"
/** Interface for the widget that wraps an editable text box for viewing the names of objects or editing the labels of actors */
class IObjectNameEditableTextBox : public SCompoundWidget
{
};
/**
* Editor Widgets module
*/
class FEditorWidgetsModule : public IModuleInterface
{
public:
/**
* Called right after the plugin DLL has been loaded and the plugin object has been created
*/
virtual void StartupModule();
/**
* Called before the plugin is unloaded, right before the plugin object is destroyed.
*/
virtual void ShutdownModule();
/**
* Creates a new text box for viewing the names of objects or editing the labels of actors
*
* @param Objects The list of objects that the editable text box shows/edits the names
* @return The new editable text box
*/
virtual TSharedRef<IObjectNameEditableTextBox> CreateObjectNameEditableTextBox(const TArray<TWeakObjectPtr<UObject>>& Objects);
/**
* Creates a widget that visualizes the asset discovery progress and collapses away when complete
*
* @param ScaleMode The direction the widget will scale when animating in and out
* @param Padding The padding to apply to the widget internally
* @return The indicator widget
*/
virtual TSharedRef<SWidget> CreateAssetDiscoveryIndicator(EAssetDiscoveryIndicatorScaleMode::Type ScaleMode = EAssetDiscoveryIndicatorScaleMode::Scale_None, FMargin Padding = FMargin(0), bool bFadeIn = true);
/**
* Creates a widget that allows play/pause, and general time controls
*
* @param Args The arguments used to generate the widget
* @return The transport control widget
*/
virtual TSharedRef<ITransportControl> CreateTransportControl(const FTransportControlArgs& Args);
/** Editor Widgets app identifier string */
static const FName EditorWidgetsAppIdentifier;
};