/ src / settings-ui / Settings.UI.Library / PowerRenameProperties.cs
PowerRenameProperties.cs
 1  // Copyright (c) Microsoft Corporation
 2  // The Microsoft Corporation licenses this file to you under the MIT license.
 3  // See the LICENSE file in the project root for more information.
 4  
 5  using System;
 6  using System.Text.Json.Serialization;
 7  
 8  using Settings.UI.Library.Attributes;
 9  
10  namespace Microsoft.PowerToys.Settings.UI.Library
11  {
12      public class PowerRenameProperties
13      {
14          public PowerRenameProperties()
15          {
16              PersistState = new BoolProperty();
17              MRUEnabled = new BoolProperty();
18              MaxMRUSize = new IntProperty();
19              ShowIcon = new BoolProperty();
20              ExtendedContextMenuOnly = new BoolProperty();
21              UseBoostLib = new BoolProperty();
22          }
23  
24          [ObsoleteAttribute("Now controlled from the general settings", false)]
25          [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
26          public BoolProperty Enabled { get; set; }
27  
28          [JsonPropertyName("bool_persist_input")]
29          [CmdConfigureIgnoreAttribute]
30          public BoolProperty PersistState { get; set; }
31  
32          [JsonPropertyName("bool_mru_enabled")]
33          public BoolProperty MRUEnabled { get; set; }
34  
35          [JsonPropertyName("int_max_mru_size")]
36          public IntProperty MaxMRUSize { get; set; }
37  
38          [JsonPropertyName("bool_show_icon_on_menu")]
39          [CmdConfigureIgnoreAttribute]
40          public BoolProperty ShowIcon { get; set; }
41  
42          [JsonPropertyName("bool_show_extended_menu")]
43          public BoolProperty ExtendedContextMenuOnly { get; set; }
44  
45          [JsonPropertyName("bool_use_boost_lib")]
46          public BoolProperty UseBoostLib { get; set; }
47      }
48  }