You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rb Per.Larsson #jira UE-162600 #rnx #preflight 631597667562a90dfa991913 - Up until now we have been piggybacking off the DDC editor module as the VA statistics panel was originally based on the DDC statistic panel but now we are starting to do more VA editor/UX work so we should probably have our own module. - This does mean we need to remove the the VA statistics panel from the DDC status bar, but it didn't really belong there and the panel can still be opened via the menu 'Tool->Audit->Virtual Assets' [CL 21790583 by paul chipchase in ue5-main branch]
62 lines
1.6 KiB
C++
62 lines
1.6 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "IDerivedDataCacheNotifications.h"
|
|
#include "Modules/ModuleInterface.h"
|
|
#include "Modules/ModuleManager.h"
|
|
#include "Templates/SharedPointer.h"
|
|
#include "Templates/UniquePtr.h"
|
|
|
|
class FSpawnTabArgs;
|
|
class SDerivedDataCacheSettingsDialog;
|
|
class SDockTab;
|
|
class SWidget;
|
|
class SWindow;
|
|
|
|
/**
|
|
* 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 ShowSettingsDialog();
|
|
|
|
private:
|
|
|
|
TSharedPtr<SWidget> CreateResourceUsageDialog();
|
|
TSharedPtr<SWidget> CreateCacheStatisticsDialog();
|
|
|
|
TSharedRef<SDockTab> CreateResourceUsageTab(const FSpawnTabArgs& Args);
|
|
TSharedRef<SDockTab> CreateCacheStatisticsTab(const FSpawnTabArgs& Args);
|
|
|
|
void OnSettingsDialogClosed(const TSharedRef<SWindow>& InWindow);
|
|
|
|
TWeakPtr<SDockTab> ResourceUsageTab;
|
|
TWeakPtr<SDockTab> CacheStatisticsTab;
|
|
|
|
TSharedPtr<SWindow> SettingsWindow;
|
|
TSharedPtr<SDerivedDataCacheSettingsDialog> SettingsDialog;
|
|
TUniquePtr<IDerivedDataCacheNotifications> DerivedDataCacheNotifications;
|
|
};
|
|
|
|
|