Navigation
API > API/Developer > API/Developer/MessageLog > API/Developer/MessageLog/Presentation
Inheritance Hierarchy
- TSharedFromThis
- IMessageLogListing
- FMessageLogListingViewModel
References
| Module | MessageLog |
| Header | /Engine/Source/Developer/MessageLog/Public/Presentation/MessageLogListingViewModel.h |
| Include | #include "Presentation/MessageLogListingViewModel.h" |
Syntax
class FMessageLogListingViewModel :
public TSharedFromThis< FMessageLogListingViewModel >,
public IMessageLogListing
Remarks
The non-UI solution specific presentation logic for a collection of messages for a particular system.
Constructors
| Type | Name | Description | |
|---|---|---|---|
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| TSharedRef< FMessageLogListingViewModel > | Create
(
const TSharedRef< FMessageLogListingModel >& InMessageLogListingModel, |
Factory method which creates a new FMessageLogListingViewModel object | |
| bool | Get whether we should show allow the user to clear the log. | ||
| uint32 | Get the current page index we are viewing | ||
| bool | Get whether we should discard duplicates or not | ||
| MessageContainer::TConstIterator | Obtains a const iterator to the filtered messages | ||
| const TArray< TSharedRef< FTokenizedMessage > > & | Returns the filtered message list | ||
| uint32 | Get the maximum page count this log can hold | ||
| const TSharedPtr< FTokenizedMessage > | GetMessageAtIndex
(
const int32 MessageIndex |
Returns the message at the specified index in the filtered list | |
| uint32 | GetPageCount () |
Get the number of pages we can view | |
| const FText & | GetPageTitle
(
const uint32 PageIndex |
Get the title of the page at the specified index | |
| bool | Get whether we should scroll to the bottom when messages are added | ||
| MessageContainer::TConstIterator | Obtains a const iterator to the selected filtered messages list | ||
| bool | Get whether we should show filters or not | ||
| bool | GetShowPages () |
Get whether we should show pages or not | |
| void | Initialize () |
End IMessageLogListing interface Initializes the FMessageLogListingViewModel for use | |
| void | NextPage () |
Go to the page at the index after the current | |
| uint32 | NumMessages () |
Gets the number of messages in the current log page | |
| void | OnChanged () |
Called when data is changed changed/updated in the model | |
| void | Handles updating the viewmodel when one of its filters changes | ||
| void | PrevPage () |
Go to the page at the index before the current | |
| void | SetAllowClear
(
bool bInAllowClear |
Set whether we should show allow the user to clear the log. | |
| void | SetCurrentPageIndex
(
uint32 InCurrentPageIndex |
Set the current page index we are viewing | |
| void | SetDiscardDuplicates
(
bool bInDiscardDuplicates |
Set whether we should discard duplicates or not | |
| void | SetMaxPageCount
(
uint32 InMaxPageCount |
Set the maximum page count this log can hold | |
| void | SetScrollToBottom
(
bool bInScrollToBottom |
Set whether we should scroll to the bottom when messages are added | |
| void | SetShowFilters
(
bool bInShowFilters |
Set whether we should show filters or not | |
| void | SetShowPages
(
bool bInShowPages |
Set whether we should show pages or not | |
| bool | Get whether to show this log in the main log window |
Overridden from IMessageLogListing
| Type | Name | Description | |
|---|---|---|---|
| void | Clears messages (if paged, in the current page) | ||
| void | Clears the message selection | ||
| void | ExecuteToken
(
const TSharedRef< class IMessageToken >& Token |
Performs an operation depending on the token (execute hyperlink etc.) | |
| FString | Gets all the unfiltered messages as a single piece of text | ||
| const TArray< TSharedRef< class FTokenizedMessage > > & | Gets a list of the filtered messages for the specific log listing | ||
| const FText & | GetLabel () |
Gets the message log listing label | |
| const TArray< TSharedRef< FMessageFilter > > & | Gets the set of message filters used when displaying messages | ||
| const FName & | GetName () |
Gets the message log listing unique name | |
| const TArray< TSharedRef< class FTokenizedMessage > > & | Gets a list of the selected messages for the specific log listing | ||
| FString | Gets all the unfiltered selected messages as a single piece of text | ||
| void | Inverts the message selection | ||
| bool | IsMessageSelected
(
const TSharedRef< class FTokenizedMessage >& Message |
Get the message selection state | |
| IMessageLogListing::FChangedEvent & | |||
| IMessageLogListing::IMessageTokenClickedEvent & | |||
| IMessageLogListing::FOnPageSelectionChangedEvent & | |||
| IMessageLogListing::FOnSelectionChangedEvent & | |||
| void | SelectMessage
(
const TSharedRef< class FTokenizedMessage >& Message, |
Set the message selection state | |
| void | SelectMessages
(
const TArray< TSharedRef< class FTokenizedMessage > >& InSelectedMessages |
Sets multiple selected messages | |
| void | Sets the message log listing label |
Overridden from IMessageLog
| Type | Name | Description | |
|---|---|---|---|
| void | AddMessage
(
const TSharedRef< class FTokenizedMessage >& NewMessage, |
Begin IMessageLogListing interface | |
| void | AddMessages
(
const TArray< TSharedRef< class FTokenizedMessage > >& NewMessages, |
Appends multiple messages | |
| void | Adds a new page to the log. | ||
| void | NotifyIfAnyMessages
(
const FText& Message, |
Notify the user if there are any messages on the current page for this log. | |
| int32 | NumMessages
(
EMessageSeverity::Type SeverityFilter |
Checks to see if there are any messages according to the passed-in severity | |
| void | Open () |
Opens up the message log to this listing. | |
| void | SetCurrentPage
(
const FText& Title |
Sets the current page to the one specified by the title. | |
| void | SetCurrentPage
(
const uint32 InOldPageIndex |
Sets the current page to the one specified by the title. |
Constants
| Name | Description |
|---|---|
| NextNotificationId |