2013-11-03 23:53:49 +13:00
#region License Information ( GPL v3 )
/ *
ShareX - A program that allows you to take screenshots and share any file type
2015-08-13 13:07:38 +12:00
Copyright ( c ) 2007 - 2015 ShareX Team
2013-11-03 23:53:49 +13:00
This program is free software ; you can redistribute it and / or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation ; either version 2
of the License , or ( at your option ) any later version .
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
GNU General Public License for more details .
You should have received a copy of the GNU General Public License
along with this program ; if not , write to the Free Software
Foundation , Inc . , 51 Franklin Street , Fifth Floor , Boston , MA 02110 - 1301 , USA .
Optionally you can also view the license at < http : //www.gnu.org/licenses/>.
* /
#endregion License Information ( GPL v3 )
using Newtonsoft.Json ;
2014-12-11 12:19:28 +13:00
using ShareX.HelpersLib ;
2013-11-03 23:53:49 +13:00
using System.ComponentModel ;
using System.Drawing.Design ;
2014-12-11 09:25:20 +13:00
namespace ShareX.IndexerLib
2013-11-03 23:53:49 +13:00
{
public class IndexerSettings
{
[Category("Indexer"), DefaultValue(IndexerOutput.Html), Description("Indexer output type.")]
public IndexerOutput Output { get ; set ; }
[Category("Indexer"), DefaultValue(true), Description("Don't index hidden folders.")]
public bool SkipHiddenFolders { get ; set ; }
[Category("Indexer"), DefaultValue(true), Description("Don't index hidden files.")]
public bool SkipHiddenFiles { get ; set ; }
[Category("Indexer"), DefaultValue(0), Description("Maximum folder depth level for indexing. 0 means unlimited.")]
public int MaxDepthLevel { get ; set ; }
2014-03-05 22:24:24 +13:00
[Category("Indexer"), DefaultValue(true), Description("Add footer information to show application and generated time.")]
public bool AddFooter { get ; set ; }
2013-11-03 23:53:49 +13:00
[Category("Indexer / Text"), DefaultValue("|___"), Description("Padding text to show indentation in the folder hierarchy.")]
public string IndentationText { get ; set ; }
[Category("Indexer / Text"), DefaultValue(false), Description("Adds empty line after folders.")]
public bool AddEmptyLineAfterFolders { get ; set ; }
2015-09-28 20:32:58 +13:00
[Category("Indexer / HTML"), DefaultValue(false), Description("Use custom Cascading Style Sheet file.")]
public bool UseCustomCSSFile { get ; set ; }
[Category("Indexer / HTML"), DefaultValue(""), Description("Custom Cascading Style Sheet file path.")]
2013-11-03 23:53:49 +13:00
[Editor(typeof(CssFileNameEditor), typeof(UITypeEditor))]
2015-09-28 20:32:58 +13:00
public string CustomCSSFilePath { get ; set ; }
2013-11-03 23:53:49 +13:00
[Category("Indexer / HTML"), DefaultValue(false), Description("Add W3C validation icons. The W3C validation icons may be used on documents that successfully passed validation for a specific technology, using the W3C validation services.")]
public bool AddValidationIcons { get ; set ; }
[Category("Indexer / XML"), DefaultValue(true), Description("Folder/File information (name, size etc.) will be written as attribute.")]
public bool UseAttribute { get ; set ; }
[JsonIgnore]
public bool BinaryUnits ;
public IndexerSettings ( )
{
this . ApplyDefaultPropertyValues ( ) ;
}
}
}