forked from James231/GCode-Razor-PostProcessor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSettings.cs
More file actions
46 lines (38 loc) · 1.14 KB
/
Settings.cs
File metadata and controls
46 lines (38 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Automation.Peers;
namespace GCodeRazor
{
public class Settings
{
[JsonProperty("open_file_when_generated")]
public bool OpenFile { get; set; }
[JsonProperty("trim_output")]
public bool TrimOutput { get; set; }
[JsonProperty("files_to_concat")]
public string[] FilesToConcat { get; set; }
[JsonProperty("font_size")]
public int FontSize { get; set; }
[JsonProperty("line_numbers")]
public bool LineNumbers { get; set; }
[JsonProperty("word_wrap")]
public bool WordWrap { get; set; }
[JsonProperty("ask_before_closing")]
public bool AskBeforeClosing { get; set; }
public void SetDefaults()
{
OpenFile = false;
TrimOutput = true;
FilesToConcat = new string[0];
FontSize = 20;
LineNumbers = true;
WordWrap = false;
AskBeforeClosing = true;
}
}
}