ファイル
YMM4-UndoTree/UndoTree/UndoTreeSettings.cs
T

41 行
1.3 KiB
C#

using YukkuriMovieMaker.Plugin;
namespace UndoTree;
internal class UndoTreeSettings : SettingsBase<UndoTreeSettings>
{
public override SettingsCategory Category => SettingsCategory.Tool;
public override string Name => Texts.UndoTree;
public override bool HasSettingView => true;
public override object? SettingView => new UndoTreeSettingsView { DataContext = new UndoTreeSettingsViewModel() };
public int MaxNodes { get; set => Set(ref field, Math.Clamp(value, 20, 5000)); } = 2000;
public bool FollowCurrent { get; set => Set(ref field, value); } = true;
public bool ShowTime { get; set => Set(ref field, value); } = true;
public bool PreferReplay { get; set => Set(ref field, value); }
public bool SelectionOnly { get; set => Set(ref field, value); }
public bool FoldRuns { get; set => Set(ref field, value); } = true;
public bool LinkTimeline { get; set => Set(ref field, value); }
public bool SaveHistory { get; set => Set(ref field, value); }
public int RetentionDays { get; set => Set(ref field, Math.Clamp(value, 1, 365)); } = 30;
public int MaxTotalSizeMegabytes { get; set => Set(ref field, Math.Clamp(value, 1, 1024)); } = 64;
public ConflictPolicy ConflictPolicy { get; set => Set(ref field, value); } = ConflictPolicy.Skip;
public override void Initialize()
{
}
}