You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
UETOOL-213 - Minimize Slate FString -> FText conversion (remove SLATE_TEXT_ATTRIBUTE) This fixes any editor/engine specific code that was passing text to Slate as FString rather than FText. [CL 2399803 by Jamie Dale in Main branch]
33 lines
1001 B
C++
33 lines
1001 B
C++
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
// This widget provides a fully-zoomed-out preview of a specified graph
|
|
class GRAPHEDITOR_API SGraphPreviewer : public SCompoundWidget
|
|
{
|
|
public:
|
|
SLATE_BEGIN_ARGS(SGraphPreviewer)
|
|
: _ShowGraphStateOverlay(true)
|
|
{}
|
|
SLATE_ATTRIBUTE( FText, CornerOverlayText )
|
|
/** Show overlay elements for the graph state such as the PIE and read-only borders and text */
|
|
SLATE_ATTRIBUTE(bool, ShowGraphStateOverlay)
|
|
SLATE_ARGUMENT( TSharedPtr<SWidget>, TitleBar )
|
|
SLATE_END_ARGS()
|
|
|
|
void Construct(const FArguments& InArgs, UEdGraph* InGraphObj);
|
|
public:
|
|
// SWidget interface
|
|
virtual void Tick( const FGeometry& AllottedGeometry, const double InCurrentTime, const float InDeltaTime ) override;
|
|
// End of SWidget interface
|
|
protected:
|
|
/// The Graph we are currently viewing
|
|
UEdGraph* EdGraphObj;
|
|
|
|
// Do we need to refresh next tick?
|
|
bool bNeedsRefresh;
|
|
|
|
// The underlying graph panel
|
|
TSharedPtr<SGraphPanel> GraphPanel;
|
|
};
|