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

53 lines
1.3 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Modules/ModuleInterface.h"
#include "Modules/ModuleManager.h"
class FWorkspaceMenuStructure;
class IWorkspaceMenuStructure;
/**
* The module that defines a structure of the workspace menu.
* Tab spawners place themselves into one of the categories/groups
* in this structure upon registration.
*/
class FWorkspaceMenuStructureModule : public IModuleInterface
{
public:
virtual ~FWorkspaceMenuStructureModule() {}
virtual void StartupModule();
virtual void ShutdownModule();
/** @return The menu structure that is populated by tab spawners */
virtual const IWorkspaceMenuStructure& GetWorkspaceMenuStructure() const;
/** Reset the "Level Editor" category to its default state */
virtual void ResetLevelEditorCategory();
/** Reset the "Tools" category to its default state */
virtual void ResetToolsCategory();
private:
TSharedPtr<class FWorkspaceMenuStructure> WorkspaceMenuStructure;
};
namespace WorkspaceMenu
{
inline FWorkspaceMenuStructureModule& GetModule()
{
return FModuleManager::LoadModuleChecked<FWorkspaceMenuStructureModule>("WorkspaceMenuStructure");
}
inline const IWorkspaceMenuStructure& GetMenuStructure()
{
return GetModule().GetWorkspaceMenuStructure();
}
}