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
)

Checks to make sure the file specified still exists.

Public function Virtual Const

void

 

WriteToINI()

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback