Files
UnrealEngineUWP/Engine/Source/Editor/CurveTableEditor/Private/CurveTableEditor.h
Bob Tellez 35d3800689 [AUTOMERGE]
#UE4 Made the Curve Table editor use a SUniformGridPanel instead of just displaying a text dump.

--------
Integrated using branch Ue4-To-UE4-Fortnite-Simple (reversed) of change#2221460 by Bob.Tellez on 2014/07/16 18:43:16.

[CL 2221465 by Bob Tellez in Main branch]
2014-07-16 19:34:30 -04:00

46 lines
1.5 KiB
C++

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "ICurveTableEditor.h"
#include "Toolkits/AssetEditorToolkit.h"
/** Viewer/editor for a CurveTable */
class FCurveTableEditor :
public ICurveTableEditor
{
public:
virtual void RegisterTabSpawners(const TSharedRef<class FTabManager>& TabManager) override;
virtual void UnregisterTabSpawners(const TSharedRef<class FTabManager>& TabManager) override;
/**
* Edits the specified table
*
* @param Mode Asset editing mode for this editor (standalone or world-centric)
* @param InitToolkitHost When Mode is WorldCentric, this is the level editor instance to spawn this editor within
* @param Table The table to edit
*/
void InitCurveTableEditor( const EToolkitMode::Type Mode, const TSharedPtr< class IToolkitHost >& InitToolkitHost, UCurveTable* Table );
/** Destructor */
virtual ~FCurveTableEditor();
/** IToolkit interface */
virtual FName GetToolkitFName() const override;
virtual FText GetBaseToolkitName() const override;
virtual FString GetWorldCentricTabPrefix() const override;
virtual FLinearColor GetWorldCentricTabColorScale() const override;
/** Creates the grid widget used to display the data */
TSharedRef<SUniformGridPanel> CreateGridPanel() const;
/** Spawns the tab with the curve table inside */
TSharedRef<SDockTab> SpawnTab_CurveTable( const FSpawnTabArgs& Args );
private:
/** The tab id for the curve table tab */
static const FName CurveTableTabId;
};