Files
UnrealEngineUWP/Engine/Source/Editor/UMGEditor/Public/UMGEditorModule.h
daren cheng 99592a0721 Widget Tool Palette Prototype.
Add Marquee & create widget tools.
Add framework for widget-based tools.

#preflight 62202c37123d7a7f69141278
#jira UETOOL-4564 UETOOL-4565
#rb Vincent.Gauthier

[CL 19248542 by daren cheng in ue5-main branch]
2022-03-03 14:01:42 -05:00

42 lines
1.5 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Modules/ModuleInterface.h"
#include "Toolkits/AssetEditorToolkit.h"
#include "IHasDesignerExtensibility.h"
#include "IHasPropertyBindingExtensibility.h"
extern const FName UMGEditorAppIdentifier;
class FUMGEditor;
class FWidgetBlueprintApplicationMode;
class FWorkflowAllowedTabSet;
/** The public interface of the UMG editor module. */
class IUMGEditorModule :
public IModuleInterface,
public IHasMenuExtensibility,
public IHasToolBarExtensibility,
public IHasDesignerExtensibility,
public IHasPropertyBindingExtensibility
{
public:
virtual class FWidgetBlueprintCompiler* GetRegisteredCompiler() = 0;
DECLARE_EVENT_TwoParams(IUMGEditorModule, FOnRegisterTabs, const FWidgetBlueprintApplicationMode&, FWorkflowAllowedTabSet&);
virtual FOnRegisterTabs& OnRegisterTabsForEditor() = 0;
DECLARE_DELEGATE_RetVal_TwoParams(TSharedRef<FExtender>, FWidgetEditorToolbarExtender, const TSharedRef<FUICommandList>, TSharedRef<FWidgetBlueprintEditor>);
/** Add Toolbar extender for widget editor, used by widget tool palette. */
virtual void AddWidgetEditorToolbarExtender(FWidgetEditorToolbarExtender&& InToolbarExtender) = 0;
/** Get current toolbar extenders for widget editor */
virtual TArrayView<FWidgetEditorToolbarExtender> GetAllWidgetEditorToolbarExtenders() = 0;
/** Support for general layout extenders */
DECLARE_EVENT_OneParam(IStaticMeshEditor, FOnRegisterLayoutExtensions, FLayoutExtender&);
virtual FOnRegisterLayoutExtensions& OnRegisterLayoutExtensions() = 0;
};