Files
UnrealEngineUWP/Engine/Source/Developer/AutomationWindow/Private/SAutomationWindowCommandBar.h
ryan durand 471d972e62 Updating copyright for Engine Developer.
#rnx
#rb none


#ROBOMERGE-SOURCE: CL 10869240 via CL 10869516 via CL 10869902
#ROBOMERGE-BOT: (v613-10869866)

[CL 10870584 by ryan durand in Main branch]
2019-12-26 15:32:37 -05:00

58 lines
1.2 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "SlateFwd.h"
#include "Widgets/DeclarativeSyntaxSupport.h"
#include "Input/Reply.h"
#include "Widgets/SCompoundWidget.h"
#include "Framework/SlateDelegates.h"
class SButton;
/**
* Implements the automation console command bar widget.
*/
class SAutomationWindowCommandBar
: public SCompoundWidget
{
public:
SLATE_BEGIN_ARGS(SAutomationWindowCommandBar) { }
/** Called when the copy log button is clicked. */
SLATE_EVENT(FOnClicked, OnCopyLogClicked)
SLATE_END_ARGS()
public:
/**
* Construct this widget
*
* @param InArgs The declaration data for this widget.
*/
void Construct( const FArguments& InArgs, const TSharedRef< SNotificationList >& InNotificationList );
/**
* Sets the number of messages selected in the log window.
*
* @param Count Number of selected messages.
*/
void SetNumLogMessages( int Count );
private:
/** Handles clicking the copy log button. */
FReply HandleCopyButtonClicked( );
private:
/** Holds the copy log button. */
TSharedPtr<SButton> CopyButton;
/** Holds a delegate that is executed when the copy log button is clicked. */
FOnClicked OnCopyLogClicked;
};