forked from fdorg/flashdevelop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSettings.cs
More file actions
132 lines (115 loc) · 4.13 KB
/
Copy pathSettings.cs
File metadata and controls
132 lines (115 loc) · 4.13 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
using System;
using System.Text;
using System.ComponentModel;
using System.Collections.Generic;
using PluginCore.Localization;
namespace StartPage
{
[Serializable]
public class Settings
{
private Boolean closeOnProjectOpen = false;
private Boolean showStartPageInsteadOfUntitled = false;
private ShowStartPageOnStartupEnum showStartPageOnStartup = ShowStartPageOnStartupEnum.NotRestoringSession;
private Boolean useCustomStartPage = false;
private Boolean useCustomRssFeed = false;
private String customStartPage = "";
private String customRssFeed = "";
#region Common Settings
/// <summary>
/// Gets and sets closeOnProjectOpen
/// </summary>
[DisplayName("Close Start Page On Project Open")]
[LocalizedDescription("StartPage.Description.CloseOnProjectOpen")]
[LocalizedCategory("StartPage.Category.Common")]
[DefaultValue(false)]
public Boolean CloseOnProjectOpen
{
get { return closeOnProjectOpen; }
set { this.closeOnProjectOpen = value; }
}
/// <summary>
/// Gets and sets showStartPageInsteadOfUntitled
/// </summary>
[DisplayName("Show Start Page Instead Of Untitled")]
[LocalizedDescription("StartPage.Description.ShowStartPageInsteadOfUntitled")]
[LocalizedCategory("StartPage.Category.Common")]
[DefaultValue(false)]
public Boolean ShowStartPageInsteadOfUntitled
{
get { return showStartPageInsteadOfUntitled; }
set { this.showStartPageInsteadOfUntitled = value; }
}
/// <summary>
/// Gets and sets showStartPageOnStartup
/// </summary>
[DisplayName("Show Start Page On Startup")]
[LocalizedCategory("StartPage.Category.Common")]
[LocalizedDescription("StartPage.Description.ShowStartPageOnStartup")]
[DefaultValue(ShowStartPageOnStartupEnum.NotRestoringSession)]
public ShowStartPageOnStartupEnum ShowStartPageOnStartup
{
get { return showStartPageOnStartup; }
set { this.showStartPageOnStartup = value; }
}
#endregion
#region Custom Settings
/// <summary>
/// Gets and sets useCustomRssFeed
/// </summary>
[DisplayName("Custom Start Page")]
[LocalizedDescription("StartPage.Description.CustomStartPage")]
[LocalizedCategory("StartPage.Category.Custom")]
[DefaultValue("")]
public String CustomStartPage
{
get { return customStartPage; }
set { this.customStartPage = value; }
}
/// <summary>
/// Gets and sets useCustomRssFeed
/// </summary>
[DisplayName("Use Custom Start Page")]
[LocalizedDescription("StartPage.Description.UseCustomStartPage")]
[LocalizedCategory("StartPage.Category.Custom")]
[DefaultValue(false)]
public Boolean UseCustomStartPage
{
get { return useCustomStartPage; }
set { this.useCustomStartPage = value; }
}
/// <summary>
/// Gets and sets useCustomRssFeed
/// </summary>
[DisplayName("Custom RSS Feed")]
[LocalizedDescription("StartPage.Description.CustomRssFeed")]
[LocalizedCategory("StartPage.Category.Custom")]
[DefaultValue("")]
public String CustomRssFeed
{
get { return customRssFeed; }
set { this.customRssFeed = value; }
}
/// <summary>
/// Gets and sets useCustomRssFeed
/// </summary>
[DisplayName("Use Custom RSS Feed")]
[LocalizedDescription("StartPage.Description.UseCustomRssFeed")]
[LocalizedCategory("StartPage.Category.Custom")]
[DefaultValue(false)]
public Boolean UseCustomRssFeed
{
get { return useCustomRssFeed; }
set { this.useCustomRssFeed = value; }
}
#endregion
}
#region Enums
public enum ShowStartPageOnStartupEnum
{
Always,
NotRestoringSession,
Never
}
#endregion
}