#include <LayoutService.h>
|
| static SLATE_API const FString & | GetAdditionalLayoutConfigIni () |
| |
| static SLATE_API void | SaveToConfig (const FString &InConfigFileName, const TSharedRef< FTabManager::FLayout > &InLayoutToSave) |
| |
| static SLATE_API TSharedRef< FTabManager::FLayout > | LoadFromConfig (const FString &InConfigFileName, const TSharedRef< FTabManager::FLayout > &InDefaultLayout, const EOutputCanBeNullptr InPrimaryAreaOutputCanBeNullptr=EOutputCanBeNullptr::Never) |
| |
| static SLATE_API TSharedRef< FTabManager::FLayout > | LoadFromConfig (const FString &InConfigFileName, const TSharedRef< FTabManager::FLayout > &InDefaultLayout, const EOutputCanBeNullptr InPrimaryAreaOutputCanBeNullptr, TArray< FString > &OutRemovedOlderLayoutVersions) |
| |
| static SLATE_API void | SaveSectionToConfig (const FString &InConfigFileName, const FString &InSectionName, const FString &InSectionValue) |
| |
| static SLATE_API void | SaveSectionToConfig (const FString &InConfigFileName, const FString &InSectionName, const FText &InSectionValue) |
| |
| static SLATE_API FText | LoadSectionFromConfig (const FString &InConfigFileName, const FString &InSectionName, const bool bIsOptional=false) |
| |
| static SLATE_API void | MigrateConfig (const FString &OldConfigFileName, const FString &NewConfigFileName) |
| |
| static SLATE_API bool | DuplicateConfig (const FString &SourceConfigFileName, const FString &TargetConfigFileName) |
| |
| static SLATE_API bool | IsValidConfig (const FString &InConfigFileName, bool bAllowFallback=true) |
| |
◆ DuplicateConfig()
| bool FLayoutSaveRestore::DuplicateConfig |
( |
const FString & |
SourceConfigFileName, |
|
|
const FString & |
TargetConfigFileName |
|
) |
| |
|
static |
Duplicate the layout config from one file to another.
- Parameters
-
| SourceConfigFileName | The name of the source configuration file. |
| TargetConfigFileName | The name of the target configuration file. |
◆ GetAdditionalLayoutConfigIni()
| const FString & FLayoutSaveRestore::GetAdditionalLayoutConfigIni |
( |
| ) |
|
|
static |
Gets the ini section label for the additional layout configs
◆ IsValidConfig()
| bool FLayoutSaveRestore::IsValidConfig |
( |
const FString & |
InConfigFileName, |
|
|
bool |
bAllowFallback = true |
|
) |
| |
|
static |
It checks whether a file is a valid layout config file.
- Parameters
-
| InConfigFileName | file to be read. |
| bAllowFallback | Whether a config should be considered valid if EditorLayoutsSectionName is missing but DefaultEditorLayoutsSectionName is found |
- Returns
- Whether the file is a valid layout config file.
◆ LoadFromConfig() [1/2]
◆ LoadFromConfig() [2/2]
Given a named DefaultLayout, return any saved version of it from the given ini file, otherwise return the default, also default to open tabs based on bool.
- Parameters
-
| InConfigFileName | File to be used to load an existing layout. |
| InDefaultLayout | The layout to be used if the file does not exist. |
| InPrimaryAreaOutputCanBeNullptr | Analog to the EOutputCanBeNullptr argument of FTabManager::RestoreFrom(), but only applied to the PrimaryArea. It specifies if the primary area can still be nullptr even if no valid tabs (or opened tabs) are found. By default, set to EOutputCanBeNullptr::Never. |
| InOutRemovedOlderLayoutVersions | If this TArray is not added, default behavior. If it is added as an argument, older versions of this layout field will be also cleaned from the layout ini file and their names returned in OutRemovedOlderLayoutVersions. To be precise, it will remove fields with a name that contains the same characters, other than the final number(s) and dot(s). E.g., for "UnrealEd_Layout_v1.4", any layout field starting by "UnrealEd_Layout_v" with some numbers and/or dots after the final "v". |
- Returns
- Loaded layout or the default.
◆ LoadSectionFromConfig()
| FText FLayoutSaveRestore::LoadSectionFromConfig |
( |
const FString & |
InConfigFileName, |
|
|
const FString & |
InSectionName, |
|
|
const bool |
bIsOptional = false |
|
) |
| |
|
static |
Read the desired FText value from the desired section of a named config file. This function should only be used to load localization names (e.g., LayoutName, LayoutDescription). For loading the FTabManager::FLayout, check SaveToConfig.
- Parameters
-
| InConfigFileName | file to be used to load an existing layout. |
| InSectionName | the name of the section to be read. |
| bIsOptional | if false, an error may be output if the section doesn't exist. |
- Returns
- Loaded FText associated for that section.
◆ MigrateConfig()
| void FLayoutSaveRestore::MigrateConfig |
( |
const FString & |
OldConfigFileName, |
|
|
const FString & |
NewConfigFileName |
|
) |
| |
|
static |
Migrates the layout configuration from one config file to another.
- Parameters
-
| OldConfigFileName | The name of the old configuration file. |
| NewConfigFileName | The name of the new configuration file. |
◆ SaveSectionToConfig() [1/2]
| void FLayoutSaveRestore::SaveSectionToConfig |
( |
const FString & |
InConfigFileName, |
|
|
const FString & |
InSectionName, |
|
|
const FString & |
InSectionValue |
|
) |
| |
|
static |
Write the desired value into the desired section of a named config file. This function should only be used to save localization names (e.g., LayoutName, LayoutDescription). For saving the FTabManager::FLayout, check SaveToConfig.
- Parameters
-
| InConfigFileName | file to be saved to. |
| InSectionName | the section name where to save the value. |
| InSectionValue | the value to save. |
◆ SaveSectionToConfig() [2/2]
| void FLayoutSaveRestore::SaveSectionToConfig |
( |
const FString & |
InConfigFileName, |
|
|
const FString & |
InSectionName, |
|
|
const FText & |
InSectionValue |
|
) |
| |
|
static |
◆ SaveToConfig()
Write the layout out into a named config file.
- Parameters
-
| InConfigFileName | file to be saved to. |
| InLayoutToSave | the layout to save. |
The documentation for this struct was generated from the following files: