Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Framework > API/Runtime/Slate/Framework/Docking
Inheritance Hierarchy
- TSharedFromThis
- FTabManager
- FGlobalTabmanager
- FProxyTabmanager
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Framework/Docking/TabManager.h |
| Include | #include "Framework/Docking/TabManager.h" |
Syntax
class FTabManager : public TSharedFromThis< FTabManager >
Variables
| Type | Name | Description | |
|---|---|---|---|
| FName | ActiveLayoutName | The name of the layout being used | |
| bool | bAllowPerWindowMenu | Whether or not this tab manager puts any registered menus in the windows menu bar area | |
| bool | bCanDoDragOperation | Prevent or allow Drag operation. | |
| bool | bEnforceMainTab | If true, this tab manager will always have one non-closable tab | |
| TArray< TSharedRef< FTabManager::FArea > > | CollapsedDockAreas | CollapsedDockAreas refers to areas that were closed (e.g., by the user). | |
| TArray< TWeakPtr< SDockingArea > > | DockAreas | ||
| TArray< TSharedRef< FTabManager::FArea > > | InvalidDockAreas | InvalidDockAreas refers to areas that were not recognized by the Editor (e.g., LiveLink when its plugin its disabled). | |
| int32 | LastDocumentUID | Instance ID for document tabs. | |
| TWeakPtr< SWindow > | LastMajorDockWindow | The last window we docked a nomad or major tab into | |
| TSharedPtr< FWorkspaceItem > | LocalWorkspaceMenuRoot | The root for the local editor's tab spawner workspace menu | |
| FTabId | MainNonCloseableTabID | The ID of the main tab, which cannot be closed | |
| TSharedPtr< FMultiBox > | MenuMultiBox | The current menu multi-box for the tab, used to construct platform native main menus | |
| TSharedPtr< SWidget > | MenuWidget | ||
| TSharedRef< FTabSpawner > | NomadTabSpawner | ||
| FOnPersistLayout | OnPersistLayout_Handler | Invoked when the tab manager is about to close | |
| TWeakPtr< SDockTab > | OwnerTabPtr | A Major tab that contains this TabManager's widgets. | |
| FTSTicker::FDelegateHandle | PendingLayoutSaveHandle | Handle to a pending layout save. | |
| TSharedPtr< const SDockTab > | PendingMainNonClosableTab | To keep track of any pending tabs that want to be the main tab, but don't have their ID set yet | |
| TSharedRef< FPrivateApi > | PrivateApi | Protected private API that must only be accessed by the docking framework internals | |
| TSharedRef< FNamePermissionList > | TabPermissionList | Allow systems to dynamically hide tabs | |
| FTabSpawner | TabSpawner | ||
| TArray< TWeakPtr< SDockTab > > | TemporarilySidebaredTabs | Tabs which have been temporarily put in the a sidebar |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FTabManager
(
const TSharedPtr< SDockTab >& InOwnerTab, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
~FTabManager () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| TSharedRef< FWorkspaceItem > | AddLocalWorkspaceMenuCategory
(
const FText& CategoryTitle |
Adds a category to the local workspace menu by name | |
| void | AddLocalWorkspaceMenuItem
(
const TSharedRef< FWorkspaceItem >& CategoryItem |
Adds an existing workspace item to the local workspace menu | |
| bool | Whether or not this tab manager supports a custom menu bar for the active major tab that will be shown on top of the major tab area in the window this tab manager resides in. | ||
| bool | CanCloseManager
(
const TSet< TSharedRef< SDockTab > >& TabsToIgnore |
Check these all tabs to see if it is OK to close them. Ignore the TabsToIgnore | |
| bool | CanRestoreSplitterContent
(
TArray< TSharedRef< class SDockingNode >>& DockingNodes, |
Use CanRestoreSplitterContent + RestoreSplitterContent when the output of its internal RestoreArea_Helper can be a nullptr. | |
| void | Clears all categories in the local workspace menu | ||
| void | Clears the request for a deferred save of the layout | ||
| void | Close all live areas and wipe all the persisted areas. | ||
| TArray< TWeakPtr< FTabSpawnerEntry > > | Return an array of all tab spawners that should have menu items in the main menu. | ||
| void | DrawAttention
(
const TSharedRef< SDockTab >& TabToHighlight |
||
| TSharedPtr< SDockTab > | FindExistingLiveTab
(
const FTabId& TabId |
Finds the first instance of an existing tab with the given tab id. | |
| TSharedPtr< SDockTab > | FindLastTabInWindow
(
TSharedPtr< SWindow > Window |
Finds the last major or nomad tab in a particular window. | |
| TSharedPtr< SDockingTabStack > | FindPotentiallyClosedTab
(
const FTabId& ClosedTabId |
||
| int32 | FindTabInCollapsedAreas
(
const FTabMatcher& Matcher |
||
| TSharedPtr< class SDockingTabStack > | FindTabInLiveArea
(
const FTabMatcher& TabMatcher, |
||
| TSharedPtr< class SDockingTabStack > | FindTabInLiveAreas
(
const FTabMatcher& TabMatcher |
||
| const TSharedPtr< const FTabSpawnerEntry > | FindTabSpawnerFor
(
FName TabId |
Find a tab spawner by name. | |
| TSharedPtr< FTabSpawnerEntry > | FindTabSpawnerFor
(
FName TabId |
Find a tab spawner by name. | |
| TSharedPtr< FTabManager::FStack > | FindTabUnderNode
(
const FTabMatcher& Matcher, |
||
| void | Called at the end of RestoreFrom for tab managers to complete any work after all tabs have been restored | ||
| void | GetAllStacks
(
const TSharedRef< SDockingArea >& InDockArea, |
||
| bool | Return true if we can do drag operation | ||
| FVector2D | GetDefaultTabWindowSize
(
const FTabId& TabId |
Returns the default window size for the TabId, or the fallback window size if it wasn't registered | |
| const TSharedRef< FWorkspaceItem > | |||
| TSharedPtr< SDockTab > | GetOwnerTab () |
Returns the owner tab (if it exists) | |
| FTabManager::FPrivateApi & | |||
| TSharedRef< FNamePermissionList > & | Returns filter for additional control over available tabs | ||
| FUIAction | GetUIActionForTabSpawnerMenuEntry
(
TSharedPtr< FTabSpawnerEntry > InTabMenuEntry |
||
| bool | HasAnyMatchingTabs
(
const TSharedRef< FTabManager::FLayoutNode >& SomeNode, |
||
| bool | HasTabSpawner
(
FName TabId |
||
| bool | HasTabSpawnerFor
(
FName TabId |
||
| bool | HasValidOpenTabs
(
const TSharedRef< FTabManager::FLayoutNode >& SomeNode |
It searches for valid and open tabs on SomeNode. | |
| bool | HasValidTabs
(
const TSharedRef< FTabManager::FLayoutNode >& SomeNode |
||
| void | InsertDocumentTab
(
FName PlaceholderId, |
||
| void | InsertDocumentTab
(
FName PlaceholderId, |
||
| void | InsertNewDocumentTab
(
FName PlaceholderId, |
Insert a new UnmanagedTab document tab next to an existing tab (closed or open) that has the PlaceholdId. | |
| void | InsertNewDocumentTab
(
FName PlaceholderId, |
Insert a new UnmanagedTab document tab next to an existing tab (closed or open) that has the PlaceholdId. | |
| void | InsertNewDocumentTab
(
FName PlaceholderId, |
Insert a new UnmanagedTab document tab next to an existing tab (closed or open) that has the PlaceholdId. | |
| TSharedPtr< SDockTab > | InvokeTab_Internal
(
const FTabId& TabId, |
||
| void | InvokeTabForMenu
(
FName TabId |
||
| bool | IsAllowedTab
(
const FTabId& TabId |
||
| bool | IsAllowedTabType
(
const FName TabType |
||
| bool | IsTabAllowedInSidebar
(
const FTabId TabId |
||
| bool | IsTabCloseable
(
const TSharedRef< const SDockTab >& InTab |
||
| bool | IsValidTabForSpawning
(
const FTab& SomeTab |
||
| void | MakeSpawnerMenuEntry
(
FMenuBuilder& PopulateMe, |
||
| TSharedRef< FTabManager > | New
(
const TSharedPtr< SDockTab >& InOwnerTab, |
||
| TSharedRef< FArea > | NewArea
(
const float Width, |
||
| TSharedRef< FArea > | NewArea
(
const FVector2D& WindowSize |
||
| TSharedRef< FLayout > | |||
| TSharedRef< FArea > | |||
| TSharedRef< FSplitter > | NewSplitter () |
||
| TSharedRef< FStack > | NewStack () |
||
| void | OnTabClosing
(
const TSharedRef< SDockTab >& TabBeingClosed |
||
| void | OnTabForegrounded
(
const TSharedPtr< SDockTab >& NewForegroundTab, |
Notify the tab manager that the NewForegroundTab was brought to front and the BackgroundedTab was send to the background as a result. | |
| void | Invoked when a tab manager is closing down. | ||
| void | OnTabOpening
(
const TSharedRef< SDockTab >& TabBeingOpened |
||
| void | OnTabRelocated
(
const TSharedRef< SDockTab >& RelocatedTab, |
||
| void | OpenUnmanagedTab
(
FName PlaceholderId, |
||
| TSharedRef< FTabManager::FLayout > | Gather the persistent layout | ||
| void | PopulateLocalTabSpawnerMenu
(
FMenuBuilder& PopulateMe |
||
| void | PopulateTabSpawnerMenu
(
FMenuBuilder& PopulateMe, |
||
| void | PopulateTabSpawnerMenu
(
FMenuBuilder& PopulateMe, |
||
| void | PopulateTabSpawnerMenu
(
FMenuBuilder& PopulateMe, |
||
| void | PopulateTabSpawnerMenu_Helper
(
FMenuBuilder& PopulateMe, |
||
| void | RegisterDefaultTabWindowSize
(
const FTabId& TabName, |
||
| FTabSpawnerEntry & | RegisterTabSpawner
(
const FName TabId, |
Register a new tab spawner with the tab manager. | |
| void | RemoveTabFromCollapsedAreas
(
const FTabMatcher& Matcher |
||
| void | Request a deferred save of the layout. | ||
| TSharedPtr< SDockingArea > | RestoreArea
(
const TSharedRef< FArea >& AreaToRestore, |
||
| TSharedPtr< class SDockingNode > | RestoreArea_Helper
(
const TSharedRef< FLayoutNode >& LayoutNode, |
||
| void | RestoreDocumentTab
(
FName PlaceholderId, |
Much like InsertNewDocumentTab, but the UnmanagedTab is not seen by the user as newly-created. | |
| TSharedPtr< SWidget > | RestoreFrom
(
const TSharedRef< FLayout >& Layout, |
||
| void | RestoreSplitterContent
(
const TSharedRef< FSplitter >& SplitterNode, |
Use this standalone RestoreSplitterContent when the output of its internal RestoreArea_Helper cannot be a nullptr. | |
| void | RestoreSplitterContent
(
const TArray< TSharedRef< class SDockingNode >>& DockingNodes, |
||
| void | Gather the persistent layout and execute the custom delegate for saving it to persistent storage (e.g. into config files) | ||
| void | SetAllowWindowMenuBar
(
bool bInAllowWindowMenuBar |
Sets whether or not this tab manager supports a custom menu bar for the active major tab that will be shown on top of the major tab area in the window this tab manager resides in. | |
| void | SetCanDoDragOperation
(
bool CanDoDragOperation |
Prevent or allow all tabs to be drag | |
| void | SetMainTab
(
const TSharedRef< const SDockTab >& InTab |
Provide a tab that will be the main tab and cannot be closed. | |
| void | SetMainTab
(
const FTabId& InMainTabID |
Provide a tab that will be the main tab and cannot be closed. | |
| void | SetMenuMultiBox
(
const TSharedPtr< FMultiBox > NewMenuMutliBox, |
Set the multi-box to use for generating a global menu bar. | |
| void | SetOnPersistLayout
(
const FOnPersistLayout& InHandler |
||
| void | SetTabsTo
(
const TSharedRef< FTabManager::FLayoutNode >& SomeNode, |
It sets the desired (or all) tabs in the FTabManager::FLayoutNode to the desired value. | |
| TSharedPtr< SDockTab > | SpawnTab
(
const FTabId& TabId, |
||
| void | Temporarily moves all open tabs in this tab manager to a sidebar or restores them from a temporary state | ||
| TSharedPtr< SDockTab > | TryInvokeTab
(
const FTabId& TabId, |
Try to open tab if it is closed at the last known location. | |
| void | Unregisters all tab spawners. | ||
| void | UnregisterDefaultTabWindowSize
(
const FTabId& TabName |
||
| bool | UnregisterTabSpawner
(
const FName TabId |
Unregisters the tab spawner matching the provided TabId. | |
| void | UpdateMainMenu
(
TSharedPtr< SDockTab > ForTab, |
Update the native, global menu bar if it is being used. | |
| void | UpdateStats () |
Called when tab(s) have been added or windows created |
Classes
| Type | Name | Description | |
|---|---|---|---|
| ESearchPreference | |||
| FArea | |||
| FLastMajorOrNomadTab | |||
| FLayout | |||
| FLayoutNode | |||
| FLiveTabSearch | |||
| FPrivateApi | |||
| FRequireClosedTab | |||
| FSearchPreference | |||
| FSplitter | |||
| FStack | |||
| FTab |
Typedefs
| Name | Description |
|---|---|
| FOnPersistLayout | |
| FTabSpawner |
Constants
| Name | Description |
|---|---|
| DefaultTabWindowSizeMap | Default tab window sizes for newly-created tabs |
| FallbackWindowSize | The fallback size for a window |