Files
UnrealEngineUWP/Engine/Source/Editor/DerivedDataEditor/Public/DerivedDataEditorModule.h
Marc Audy 0c3be2b6ad Merge Release-Engine-Staging to Test @ CL# 18240298
[CL 18241953 by Marc Audy in ue5-release-engine-test branch]
2021-11-18 14:37:34 -05:00

65 lines
1.8 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Modules/ModuleInterface.h"
#include "Modules/ModuleManager.h"
#include "IDerivedDataCacheNotifications.h"
class SDockTab;
class SWindow;
class SWidget;
class SDerivedDataCacheSettingsDialog;
class FSpawnTabArgs;
/**
* The module holding all of the UI related pieces for DerivedData
*/
class DERIVEDDATAEDITOR_API FDerivedDataEditorModule : public IModuleInterface
{
public:
/**
* Called right after the module DLL has been loaded and the module object has been created
*/
virtual void StartupModule() override;
/**
* Called before the module is unloaded, right before the module object is destroyed.
*/
virtual void ShutdownModule() override;
TSharedRef<SWidget> CreateStatusBarWidget();
IDerivedDataCacheNotifications& GetCacheNotifcations() { return *DerivedDataCacheNotifications; }
void ShowResourceUsageTab();
void ShowCacheStatisticsTab();
void ShowVirtualAssetsStatisticsTab();
void ShowSettingsDialog();
private:
TSharedPtr<SWidget> CreateResourceUsageDialog();
TSharedPtr<SWidget> CreateCacheStatisticsDialog();
TSharedPtr<SWidget> CreateVirtualAssetsStatisticsDialog();
TSharedRef<SDockTab> CreateResourceUsageTab(const FSpawnTabArgs& Args);
TSharedRef<SDockTab> CreateCacheStatisticsTab(const FSpawnTabArgs& Args);
TSharedRef<SDockTab> CreateVirtualAssetsStatisticsTab(const FSpawnTabArgs& Args);
void OnSettingsDialogClosed(const TSharedRef<SWindow>& InWindow);
TWeakPtr<SDockTab> ResourceUsageTab;
TWeakPtr<SDockTab> CacheStatisticsTab;
TWeakPtr<SDockTab> VirtualAssetsStatisticsTab;
TSharedPtr<SWindow> SettingsWindow;
TSharedPtr<SDerivedDataCacheSettingsDialog> SettingsDialog;
TUniquePtr<IDerivedDataCacheNotifications> DerivedDataCacheNotifications;
};