FMRUList

An MRU list of files.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/MRUList.h

Include

#include "MRUList.h"

Syntax

class FMRUList

Remarks

An MRU list of files.

Variables

Name Description

Protected variable

FString

 

INISection

The INI section we read/write the filenames to.

Protected variable

TArray< FString...

 

Items

The filenames.

Protected variable

const int32

 

MaxItems

Maximum MRU items

Constructors

Name Description

Public function

FMRUList

(
    const FString& InINISection,
    const int32 InitMaxItems
)

Destructors

Name Description

Public function Virtual

~FMRUList()

Functions

Name Description

Public function

void

 

AddMRUItem

(
    const FString& Item
)

Adds an item to the MRU list, moving it to the top.

Public function Const

int32

 

FindMRUItemIdx

(
    const FString& Item
)

Returns the index of the specified item, or INDEX_NONE if not found.

Public function

int32

 

GetMaxItems()

Public function Const

const FStrin...

 

GetMRUItem

(
    int32 ItemIndex
)

Accessor.

Public function Const

int32

 

GetNumItems()

Returns the number of MRU items

Protected function Static

void

 

InternalReadINI

(
    TArray< FString >& OutItems,
    const FString& INISection,
    const FString& INIKeyBase,
    int32 NumElements
)

Internal helper function to populate a provided array with data from the provided ini section using the provided ini key as a base, searching for the number of provided elements at a maximum

Protected function Static

void

 

InternalWriteINI

(
    const TArray< FString >& InItems,
    const FString& INISection,
    const FString& INIKeyBase
)

Internal helper function to write out the provided array of data to the provided INI section, using the provided key base as a prefix for each item written to the INI file

Public function Virtual

void

 

ReadFromINI()

Public function

void

 

RemoveMRUItem

(
    const FString& Item
)

Removes the specified item from the list if it exists.

Public function

void

 

RemoveMRUItem

(
    int32 ItemIndex
)

Removes the item at the specified index.

Public function

bool

 

VerifyMRUFile

(
    int32 ItemIndex,
    FString& OutPackageName
)

Checks to make sure the file specified still exists.

Public function Virtual Const

void

 

WriteToINI()

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss