// Copyright Epic Games, Inc. All Rights Reserved. #pragma once #include "CoreMinimal.h" #include "Widgets/Input/SMultiLineEditableTextBox.h" class ITextLayoutMarshaller; class EDITORWIDGETS_API STemplateStringEditableTextBox : public SMultiLineEditableTextBox { public: SLATE_BEGIN_ARGS(STemplateStringEditableTextBox) {} /** The initial text that will appear in the widget. */ SLATE_ATTRIBUTE(FText, Text) /** The list of available arguments to use in this template string. */ SLATE_ATTRIBUTE(TArray, ValidArguments) /** The marshaller used to get/set the raw text to/from the text layout. */ SLATE_ARGUMENT(TSharedPtr, Marshaller) /** Called whenever the text is changed interactively by the user. */ SLATE_EVENT(FOnTextChanged, OnTextChanged) SLATE_END_ARGS() /** Constructs this widget with InArgs */ void Construct(const FArguments& InArgs); };