A static class that manages settings loading and saving for an application.
More...
A static class that manages settings loading and saving for an application.
Definition at line 18 of file SettingsService.cs.
static void SiliconStudio.Presentation.Settings.SettingsService.ClearSettings |
( |
| ) |
|
|
static |
Creates a new settings profile.
- Parameters
-
setAsCurrent | If true , the created profile will also be set as CurrentProfile. |
parent | The parent profile of the settings to create. If null , a default profile will be used. |
- Returns
- A new instance of the SettingsProfile class.
Definition at line 77 of file SettingsService.cs.
static List<SettingsKey> SiliconStudio.Presentation.Settings.SettingsService.GetAllSettingsKeys |
( |
bool |
includeNonEditable | ) |
|
|
static |
static SettingsKey SiliconStudio.Presentation.Settings.SettingsService.GetSettingsKey |
( |
UFile |
name | ) |
|
|
static |
Gets the settings key that matches the given name.
- Parameters
-
name | The name of the settings property to fetch. |
- Returns
- The settings key that matches the given name, or
null
.
Definition at line 245 of file SettingsService.cs.
Loads a settings profile from the given file.
- Parameters
-
filePath | The path of the file from which to load settings. |
setAsCurrent | If true , the loaded profile will also be set as CurrentProfile. |
parent | The profile to use as parent for the loaded profile. If null , a default profile will be used. |
- Returns
true
if settings were correctly loaded, false
otherwise.
Definition at line 94 of file SettingsService.cs.
References SiliconStudio.Core.Yaml.YamlSerializer.Deserialize().
static void SiliconStudio.Presentation.Settings.SettingsService.ReloadSettingsProfile |
( |
SettingsProfile |
profile | ) |
|
|
static |
static bool SiliconStudio.Presentation.Settings.SettingsService.SaveSettingsProfile |
( |
SettingsProfile |
profile, |
|
|
UFile |
filePath |
|
) |
| |
|
static |
Saves the given settings profile to a file at the given path.
- Parameters
-
profile | The profile to save. |
filePath | The path of the file. |
- Returns
true
if the file was correctly saved, false
otherwise.
Definition at line 209 of file SettingsService.cs.
static void SiliconStudio.Presentation.Settings.SettingsService.UnloadSettingsProfile |
( |
SettingsProfile |
profile | ) |
|
|
static |
Unloads a profile that was previously loaded.
- Parameters
-
profile | The profile to unload. |
Definition at line 194 of file SettingsService.cs.
SettingsProfile SiliconStudio.Presentation.Settings.SettingsService.CurrentProfile |
|
staticgetset |
LoggerResult SiliconStudio.Presentation.Settings.SettingsService.Logger |
|
staticgetset |
The documentation for this class was generated from the following file:
- D:/Projects/Bitbucket Hosting/DoxygenFilesAndSources/Paradox v1.0.0 beta06/sources/common/presentation/SiliconStudio.Presentation/Settings/SettingsService.cs