Files
UnrealEngineUWP/Engine/Source/Developer/MessageLog/Private/UserInterface/SMessageLog.h
Max Preussner bb6a7de1d7 MessageLog: Message log burst upgrades
- Redesigned the layout of the message log viewer
- Added 'Action' message token type for actionable items
- Started to remove message token delegates in favor of Action tokens
- NULL to nullptr

[CL 2299749 by Max Preussner in Main branch]
2014-09-16 13:46:20 -04:00

59 lines
1.5 KiB
C++

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
#pragma once
/**
* An implementation for the message log widget.
*
* It holds a series of message log listings which it can switch between.
*/
class SMessageLog
: public SCompoundWidget
{
public:
SLATE_BEGIN_ARGS(SMessageLog){}
SLATE_END_ARGS()
static FName AppName;
/** Destructor. */
~SMessageLog();
/**
* Constructs the widget.
*
* @param InArgs The construction arguments.
* @param InModel The view model to use.
*/
void Construct( const FArguments& InArgs, const TSharedRef<class FMessageLogViewModel>& InViewModel );
public:
// SWidget overrides
FReply OnKeyDown( const FGeometry& MyGeometry, const FKeyboardEvent& InKeyboardEvent ) override;
private:
/** Callback for generating a row in the categories list. */
TSharedRef<ITableRow> HandleCategoriesListGenerateRow( IMessageLogListingPtr Item, const TSharedRef<STableViewBase>& OwnerTable );
/** Callback for changing the selected item in the categories list. */
void HandleCategoriesListSelectionChanged( IMessageLogListingPtr Selection, ESelectInfo::Type SelectInfo );
private:
/** Holds the log categories list view widget. */
TSharedPtr<SListView<IMessageLogListingPtr>> CategoriesListView;
/** The widget for displaying the current listing. */
TSharedPtr<SBorder> CurrentListingDisplay;
/** The current log listing widget, if any. */
TSharedPtr<class SMessageLogListing> LogListing;
/** The message log view model */
TSharedPtr<class FMessageLogViewModel> ViewModel;
};