You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- New "Size Map" feature that shows the resource size for selected assets in Content Browser - Select assets in Content Browser, right click and choose "Size Map..." to show sizes for those assets - Select actors and press Alt+Shift+M to show sizes of assets used by those actors - Select assets in Reference Viewer, right click and choose "Size Map..." to show sizes for those assets - Also added a new "Tree Map" general purpose Slate widget (STreeMap) [CL 2521609 by Mike Fricker in Main branch]
102 lines
3.1 KiB
C++
102 lines
3.1 KiB
C++
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CollectionManagerTypes.h"
|
|
|
|
/**
|
|
*
|
|
*/
|
|
class SReferenceViewer : public SCompoundWidget
|
|
{
|
|
public:
|
|
SLATE_BEGIN_ARGS( SReferenceViewer ){}
|
|
|
|
SLATE_END_ARGS()
|
|
|
|
~SReferenceViewer();
|
|
|
|
/** Constructs this widget with InArgs */
|
|
void Construct( const FArguments& InArgs );
|
|
|
|
/** Sets a new root package name */
|
|
void SetGraphRootPackageNames(const TArray<FName>& NewGraphRootPackageNames);
|
|
|
|
private:
|
|
|
|
/** Called to create context menu when right-clicking on graph */
|
|
FActionMenuContent OnCreateGraphActionMenu(UEdGraph* InGraph, const FVector2D& InNodePosition, const TArray<UEdGraphPin*>& InDraggedPins, bool bAutoExpand, SGraphEditor::FActionMenuClosed InOnMenuClosed);
|
|
|
|
/** Called when a node is double clicked */
|
|
void OnNodeDoubleClicked(class UEdGraphNode* Node);
|
|
|
|
/** True if the user may use the history back button */
|
|
bool IsBackEnabled() const;
|
|
|
|
/** True if the user may use the history forward button */
|
|
bool IsForwardEnabled() const;
|
|
|
|
/** Handler for clicking the history back button */
|
|
FReply BackClicked();
|
|
|
|
/** Handler for clicking the history forward button */
|
|
FReply ForwardClicked();
|
|
|
|
/** Handler for when the graph panel tells us to go back in history (like using the mouse thumb button) */
|
|
void GraphNavigateHistoryBack();
|
|
|
|
/** Handler for when the graph panel tells us to go forward in history (like using the mouse thumb button) */
|
|
void GraphNavigateHistoryForward();
|
|
|
|
/** Gets the tool tip text for the history back button */
|
|
FText GetHistoryBackTooltip() const;
|
|
|
|
/** Gets the tool tip text for the history forward button */
|
|
FText GetHistoryForwardTooltip() const;
|
|
|
|
/** Gets the text to be displayed in the address bar */
|
|
FText GetAddressBarText() const;
|
|
|
|
void OnApplyHistoryData(const FReferenceViewerHistoryData& History);
|
|
|
|
void OnUpdateHistoryData(FReferenceViewerHistoryData& HistoryData) const;
|
|
|
|
void OnSearchDepthEnabledChanged( ECheckBoxState NewState );
|
|
ECheckBoxState IsSearchDepthEnabledChecked() const;
|
|
int32 GetSearchDepthCount() const;
|
|
void OnSearchDepthCommitted(int32 NewValue);
|
|
|
|
void OnSearchBreadthEnabledChanged( ECheckBoxState NewState );
|
|
ECheckBoxState IsSearchBreadthEnabledChecked() const;
|
|
int32 GetSearchBreadthCount() const;
|
|
void OnSearchBreadthCommitted(int32 NewValue);
|
|
|
|
void RegisterActions();
|
|
void ShowSelectionInContentBrowser();
|
|
void OpenSelectedInAssetEditor();
|
|
void ReCenterGraph();
|
|
void ListReferencedObjects();
|
|
void ListObjectsThatReference();
|
|
void MakeCollectionWithReferencedAssets(ECollectionShareType::Type ShareType);
|
|
void ShowSizeMap();
|
|
void ShowReferenceTree();
|
|
|
|
void ReCenterGraphOnNodes(const TSet<UObject*>& Nodes);
|
|
|
|
UObject* GetObjectFromSingleSelectedNode() const;
|
|
bool HasExactlyOneNodeSelected() const;
|
|
bool HasAtLeastOneNodeSelected() const;
|
|
|
|
void OnInitialAssetRegistrySearchComplete();
|
|
private:
|
|
|
|
/** The manager that keeps track of history data for this browser */
|
|
FReferenceViewerHistoryManager HistoryManager;
|
|
|
|
TSharedPtr<SGraphEditor> GraphEditorPtr;
|
|
|
|
TSharedPtr<FUICommandList> ReferenceViewerActions;
|
|
|
|
UEdGraph_ReferenceViewer* GraphObj;
|
|
};
|