Language:
Discover
By Skill Level
By Category

FMRUList

Choose your OS:

Inheritance Hierarchy

Syntax

class FMRUList

Remarks

============================================================================= MRUList : Helper class for handling MRU lists

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

int32

 

FindMRUItemIdx

(
    const FString & Item
)

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

Public function

int32

 

GetMaxItems()

The maximum number of items this MRUList can contain

Public function

const FStrin ...

 

GetMRUItem

(
    int32 ItemIndex
)

Accessor.

The filename at that index.

Public function

int32

 

GetNumItems()

Returns the number of MRU items

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

void

 

WriteToINI()

References

Module

UnrealEd

Header

Editor/UnrealEd/Public/MRUList.h