Files
UnrealEngineUWP/Engine/Source/Editor/TaskBrowser/Private/STaskColumn.h
T
Jamie Dale a569f6b356 Fixed code relying on SLATE_TEXT_ATTRIBUTE for STextBlock.
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]
2015-01-07 09:52:40 -05:00

39 lines
879 B
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "STaskBrowser.h"
//////////////////////////////////////////////////////////////////////////
// STaskColumn
class STaskColumn : public SCompoundWidget
{
public:
SLATE_BEGIN_ARGS(STaskColumn)
{
}
SLATE_ARGUMENT( TWeakPtr<STaskBrowser>, TaskBrowser )
SLATE_ARGUMENT( EField, Field )
SLATE_END_ARGS()
/**
* Construct the widget
*
* @param InArgs A declaration from which to construct the widget
*/
void Construct(const FArguments& InArgs);
private:
/** Helper func to get the field from the localized name */
FText GetFieldNameLoc( const EField InField );
/** Handle when the column in the table has been clicked */
FReply OnTaskColumnClicked();
/** The parent browser */
TWeakPtr<STaskBrowser> TaskBrowser;
/** The field the column represents */
EField Field;
};