2020-04-23 05:55:45 +08:00
|
|
|
// Copyright (c) Microsoft Corporation
|
2020-04-17 02:45:27 +08:00
|
|
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
|
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
|
2020-04-20 21:03:26 +08:00
|
|
|
using System.Text.Json;
|
2020-04-17 02:45:27 +08:00
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
|
|
namespace Microsoft.PowerToys.Settings.UI.Lib
|
|
|
|
{
|
|
|
|
public class EnabledModules
|
|
|
|
{
|
|
|
|
public EnabledModules()
|
|
|
|
{
|
|
|
|
this.FancyZones = false;
|
|
|
|
this.ImageResizer = false;
|
|
|
|
this.FileExplorerPreview = false;
|
|
|
|
this.PowerRename = false;
|
2020-04-20 21:03:26 +08:00
|
|
|
this.ShortcutGuide = false;
|
2020-04-17 02:45:27 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
[JsonPropertyName("FancyZones")]
|
|
|
|
public bool FancyZones { get; set; }
|
|
|
|
|
2020-04-27 08:34:03 +08:00
|
|
|
[JsonPropertyName("Image Resizer")]
|
2020-04-17 02:45:27 +08:00
|
|
|
public bool ImageResizer { get; set; }
|
|
|
|
|
|
|
|
[JsonPropertyName("File Explorer Preview")]
|
|
|
|
public bool FileExplorerPreview { get; set; }
|
|
|
|
|
|
|
|
[JsonPropertyName("Shortcut Guide")]
|
|
|
|
public bool ShortcutGuide { get; set; }
|
|
|
|
|
|
|
|
public bool PowerRename { get; set; }
|
2020-04-20 21:03:26 +08:00
|
|
|
|
2020-04-23 05:55:45 +08:00
|
|
|
[JsonPropertyName("Keyboard Manager")]
|
|
|
|
public bool KeyboardManager { get; set; }
|
|
|
|
|
2020-04-20 21:03:26 +08:00
|
|
|
public string ToJsonString()
|
|
|
|
{
|
|
|
|
return JsonSerializer.Serialize(this);
|
|
|
|
}
|
2020-04-17 02:45:27 +08:00
|
|
|
}
|
|
|
|
}
|