Files
UnrealEngineUWP/Engine/Source/Editor/GraphEditor/Public/SGraphNodeDocumentation.h
Mike Fricker 114458bf0f Clang warning fixes: Fixed missing 'override' specifiers
- Also removed some unreferenced functions that adding 'override' revealed

PR #1002 -- Thank you, Omar007!

[CL 2498415 by Mike Fricker in Main branch]
2015-04-01 07:20:55 -04:00

66 lines
2.4 KiB
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
class IDocumentationPage;
class SGraphNodeDocumentation : public SGraphNodeResizable
{
public:
SLATE_BEGIN_ARGS(SGraphNodeDocumentation){}
SLATE_END_ARGS()
// Begin SPanel Interface
virtual FVector2D ComputeDesiredSize(float) const override;
// End SPanel interface
// Begin SWidget Interface
void Construct( const FArguments& InArgs, UEdGraphNode* InNode );
virtual FReply OnMouseWheel( const FGeometry& MyGeometry, const FPointerEvent& MouseEvent ) override;
virtual void Tick( const FGeometry& AllottedGeometry, const double InCurrentTime, const float InDeltaTime ) override;
// End SWidget Interface
// Begin SGraphNodeResizable Interface
virtual FVector2D GetNodeMinimumSize() const override;
virtual FVector2D GetNodeMaximumSize() const override;
virtual float GetTitleBarHeight() const override;
virtual FSlateRect GetHitTestingBorder( float InverseZoomFactor ) const override;
// End SGraphNodeResizable Interface
protected:
// Begin SGraphNode Interface
virtual void UpdateGraphNode() override;
virtual bool IsNameReadOnly () const override { return false; }
// End SGraphNode Interface
/** Retrives the current documentation title based on the chosen excerpt */
FText GetDocumentationTitle() const;
/** Create documentation page from link and excerpt */
TSharedPtr<SWidget> CreateDocumentationPage();
/** Returns the width the documentation content must adhere to, used as a delegate in child widgets */
FOptionalSize GetContentWidth() const;
/** Returns the height the documentation content must adhere to, used as a delegate in child widgets */
FOptionalSize GetContentHeight() const;
/** Returns the child widget text wrapat size, used as a delegate during creation of documentation page */
float GetDocumentationWrapWidth() const;
/** Returns the current child widgets visibility for hit testing */
EVisibility GetWidgetVisibility() const;
private:
/** Node Title Bar */
TSharedPtr<SWidget> TitleBar;
/** Documentation excerpt maximum page size */
FVector2D DocumentationSize;
/** Content Widget with the desired size being managed */
TSharedPtr<SWidget> ContentWidget;
/** Tracks if child widgets are availble to hit test against */
EVisibility ChildWidgetVisibility;
/** Cached Documentation Link */
FString CachedDocumentationLink;
/** Cached Documentation Excerpt */
FString CachedDocumentationExcerpt;
};