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
2014-05-13 21:06:40 +12:00
Copyright ( C ) 2007 - 2014 ShareX Developers
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 ; }
[Category("Indexer / HTML"), DefaultValue("IndexerDefault.css"), Description("Cascading Style Sheet file path.")]
[Editor(typeof(CssFileNameEditor), typeof(UITypeEditor))]
public string CssFilePath { get ; set ; }
[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 ( ) ;
}
}
}