Navigation
API > API/Editor > API/Editor/ContentBrowser
The class responsible for managing all content browser history
| Name | FHistoryManager |
| Type | class |
| Header File | /Engine/Source/Editor/ContentBrowser/Public/HistoryManager.h |
| Include Path | #include "HistoryManager.h" |
Syntax
class FHistoryManager
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FHistoryManager() |
Constructor | HistoryManager.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CurrentHistoryIndex | int32 | The current history index the user is at (changes when the user goes back,forward, or history snapshots are taken) | HistoryManager.h | |
| HistoryData | TArray< FHistoryData > | A list of history snapshots | HistoryManager.h | |
| MaxHistoryEntries | int32 | Max number of history items that can be stored. | HistoryManager.h | |
| OnApplyHistoryData | FOnApplyHistoryData | The delegate for when history data should be applied | HistoryManager.h | |
| OnUpdateHistoryData | FOnUpdateHistoryData | The delegate for when history data should be updated | HistoryManager.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddHistoryData() |
Stores new history data. Called when creating a history snapshot | HistoryManager.h | |
bool CanGoBack() |
Determines if a user can go back in history | HistoryManager.h | |
bool CanGoForward() |
Determines if a user can go forward in history | HistoryManager.h | |
void GetAvailableHistoryMenuItems
(
bool bGetPrior, |
Populates a list of menu items that can be added to a context menu to allow a user to jump to different history snapshots instead of using the back and forward buttons | HistoryManager.h | |
FText GetBackDesc() |
Gets the description of the previous history entry | HistoryManager.h | |
FText GetForwardDesc() |
Gets the description of the next history entry | HistoryManager.h | |
bool GoBack() |
Goes back one history snapshot and returns the history data at that snapshot | HistoryManager.h | |
bool GoForward() |
Goes forward one history snapshot and returns the history data at that snapshot | HistoryManager.h | |
void RemoveHistoryData
(
const PREDICATE_CLASS& Predicate |
Removes all history data as determined by the passed in predicate | HistoryManager.h | |
void RewriteHistoryData
(
const PREDICATE_CLASS& Predicate |
Rewrite all history data as determined by the passed in predicate | HistoryManager.h | |
void SetOnApplyHistoryData
(
const FOnApplyHistoryData& InOnApplyHistoryData |
Set the delegate for applying history data | HistoryManager.h | |
void SetOnUpdateHistoryData
(
const FOnUpdateHistoryData& InOnUpdateHistoryData |
Set the delegate for updating history data | HistoryManager.h | |
void UpdateHistoryData () |
Triggers an update for the current history data. | HistoryManager.h |