124 lines
4.7 KiB
C#
124 lines
4.7 KiB
C#
using Newtonsoft.Json;
|
|
|
|
namespace Ink_Canvas
|
|
{
|
|
public class Settings
|
|
{
|
|
[JsonProperty("advanced")]
|
|
public Advanced Advanced { get; set; } = new Advanced();
|
|
[JsonProperty("appearance")]
|
|
public Appearance Appearance { get; set; } = new Appearance();
|
|
[JsonProperty("automation")]
|
|
public Automation Automation { get; set; } = new Automation();
|
|
[JsonProperty("behavior")]
|
|
public Behavior Behavior { get; set; } = new Behavior();
|
|
[JsonProperty("canvas")]
|
|
public Canvas Canvas { get; set; } = new Canvas();
|
|
[JsonProperty("gesture")]
|
|
public Gesture Gesture { get; set; } = new Gesture();
|
|
[JsonProperty("inkToShape")]
|
|
public InkToShape InkToShape { get; set; } = new InkToShape();
|
|
[JsonProperty("startup")]
|
|
public Startup Startup { get; set; } = new Startup();
|
|
}
|
|
|
|
public class Behavior
|
|
{
|
|
[JsonProperty("powerPointSupport")]
|
|
public bool PowerPointSupport { get; set; } = true;
|
|
[JsonProperty("isShowCanvasAtNewSlideShow")]
|
|
public bool IsShowCanvasAtNewSlideShow { get; set; } = true;
|
|
}
|
|
|
|
public class Canvas
|
|
{
|
|
[JsonProperty("inkWidth")]
|
|
public double InkWidth { get; set; } = 2.5;
|
|
[JsonProperty("isShowCursor")]
|
|
public bool IsShowCursor { get; set; } = false;
|
|
[JsonProperty("inkStyle")]
|
|
public int InkStyle { get; set; } = 0;
|
|
[JsonProperty("eraserSize")]
|
|
public int EraserSize { get; set; } = 2;
|
|
|
|
[JsonProperty("hideStrokeWhenSelecting")]
|
|
public bool HideStrokeWhenSelecting { get; set; } = true;
|
|
|
|
[JsonProperty("usingWhiteboard")]
|
|
public bool UsingWhiteboard { get; set; }
|
|
}
|
|
|
|
public class Gesture
|
|
{
|
|
[JsonProperty("isEnableTwoFingerZoom")]
|
|
public bool IsEnableTwoFingerZoom { get; set; } = true;
|
|
[JsonProperty("isEnableTwoFingerRotation")]
|
|
public bool IsEnableTwoFingerRotation { get; set; } = false;
|
|
[JsonProperty("isEnableTwoFingerRotationOnSelection")]
|
|
public bool IsEnableTwoFingerRotationOnSelection { get; set; } = false;
|
|
[JsonProperty("isEnableTwoFingerGestureInPresentationMode")]
|
|
public bool IsEnableTwoFingerGestureInPresentationMode { get; set; } = false;
|
|
[JsonProperty("isEnableFingerGestureSlideShowControl")]
|
|
public bool IsEnableFingerGestureSlideShowControl { get; set; } = true;
|
|
}
|
|
|
|
public class Startup
|
|
{
|
|
[JsonProperty("isAutoHideCanvas")]
|
|
public bool IsAutoHideCanvas { get; set; } = true;
|
|
[JsonProperty("isAutoEnterModeFinger")]
|
|
public bool IsAutoEnterModeFinger { get; set; } = false;
|
|
}
|
|
|
|
public class Appearance
|
|
{
|
|
[JsonProperty("isTransparentButtonBackground")]
|
|
public bool IsTransparentButtonBackground { get; set; } = true;
|
|
[JsonProperty("isShowExitButton")]
|
|
public bool IsShowExitButton { get; set; } = true;
|
|
[JsonProperty("isShowEraserButton")]
|
|
public bool IsShowEraserButton { get; set; } = true;
|
|
[JsonProperty("isShowHideControlButton")]
|
|
public bool IsShowHideControlButton { get; set; } = false;
|
|
[JsonProperty("isShowLRSwitchButton")]
|
|
public bool IsShowLRSwitchButton { get; set; } = false;
|
|
[JsonProperty("isShowModeFingerToggleSwitch")]
|
|
public bool IsShowModeFingerToggleSwitch { get; set; } = true;
|
|
[JsonProperty("isShowPPTNavigation")]
|
|
public bool IsShowPPTNavigation { get; set; } = true;
|
|
}
|
|
|
|
public class Automation
|
|
{
|
|
[JsonProperty("isAutoKillPptService")]
|
|
public bool IsAutoKillPptService { get; set; } = false;
|
|
[JsonProperty("isAutoKillEasiNote")]
|
|
public bool IsAutoKillEasiNote { get; set; } = false;
|
|
[JsonProperty("isAutoSaveStrokesAtScreenshot")]
|
|
public bool IsAutoSaveStrokesAtScreenshot { get; set; } = false;
|
|
[JsonProperty("isAutoSaveStrokesAtClear")]
|
|
public bool IsAutoSaveStrokesAtClear { get; set; } = false;
|
|
[JsonProperty("isAutoSaveStrokesInPowerPoint")]
|
|
public bool IsAutoSaveStrokesInPowerPoint { get; set; } = true;
|
|
[JsonProperty("isAutoSaveScreenShotInPowerPoint")]
|
|
public bool IsAutoSaveScreenShotInPowerPoint { get; set; } = false;
|
|
[JsonProperty("isAutoClearWhenExitingWritingMode")]
|
|
public bool IsAutoClearWhenExitingWritingMode { get; set; } = false;
|
|
|
|
}
|
|
|
|
public class Advanced
|
|
{
|
|
[JsonProperty("isSpecialScreen")]
|
|
public bool IsSpecialScreen { get; set; } = false;
|
|
[JsonProperty("isLogEnabled")]
|
|
public bool IsLogEnabled { get; set; } = true;
|
|
}
|
|
|
|
public class InkToShape
|
|
{
|
|
[JsonProperty("isInkToShapeEnabled")]
|
|
public bool IsInkToShapeEnabled { get; set; } = true;
|
|
}
|
|
}
|