PageRenderTime 19ms CodeModel.GetById 10ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/CBR/CBR.Core/Models/Workspace/WorkspaceInfo.cs

#
C# | 73 lines | 48 code | 13 blank | 12 comment | 0 complexity | 77c87fb49c65f4e3e6eed4969313919f MD5 | raw file
 1using System;
 2using System.Collections.Generic;
 3using System.Linq;
 4using System.Text;
 5using System.Windows.Media;
 6using CBR.Core.Files.Conversion;
 7using CBR.Core.Helpers;
 8
 9namespace CBR.Core.Models
10{
11    /// <summary>
12    /// All programm settings that are serialized in the properties of the programm
13    /// </summary>
14    public class WorkspaceInfo
15    {
16        #region ----------------DEFAULTs----------------
17        /// <summary>
18        /// Construtor
19        /// </summary>
20        public WorkspaceInfo()
21        {
22            AutoFitMode = 0;
23            ImageCacheCount = 6;
24            ImageCacheDuration = 40;
25			MagnifierScaleFactor = 200;
26			MagnifierSize = 1;
27            MaxRecentFile = 10;
28            RecentCatalogList = new List<RecentFileInfo>();
29            RecentFileList = new List<RecentFileInfo>();
30            Dynamics = new List<string>();
31            ConvertParameters = new ContractParameters();
32            DeviceInfoList = new List<DeviceInfo>();
33            StartingLanguageCode = "en";
34
35			Extended = new ExtendedInfo();
36			Feed = new FeedInfo();
37        }
38        #endregion
39
40        #region ----------------PROPERTIES----------------
41
42        public int AutoFitMode { get; set; }
43        public int ImageCacheDuration { get; set; }
44        public int ImageCacheCount { get; set; }
45
46        public double MagnifierScaleFactor { get; set; }
47        public double MagnifierSize { get; set; }
48
49        public int MaxRecentFile { get; set; }
50
51        public List<RecentFileInfo> RecentFileList { get; set; }
52        public List<RecentFileInfo> RecentCatalogList { get; set; }
53
54        public List<string> Dynamics { get; set; }
55
56        public ContractParameters ConvertParameters { get; set; }
57        public List<DeviceInfo> DeviceInfoList { get; set; }
58
59        public string StartingLanguageCode { get; set; }
60
61		/// <summary>
62		/// extended options
63		/// </summary>
64		public ExtendedInfo Extended { get; set; }
65
66		/// <summary>
67		/// opds feeds
68		/// </summary>
69		public FeedInfo Feed { get; set; }
70
71		#endregion
72    }
73}