Files
UnrealEngineUWP/Engine/Source/Editor/WorkspaceMenuStructure/Public/WorkspaceMenuStructureModule.h
Michael Trepka 5bd6255fde More Clang compile warning fixes
[CL 2237347 by Michael Trepka in Main branch]
2014-07-30 14:51:27 -04:00

52 lines
1.3 KiB
C++

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "ModuleInterface.h"
#include "WorkspaceMenuStructure.h"
/**
* 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 "Asset Editor" category to its default state */
virtual void ResetAssetEditorCategory();
/** 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();
}
}