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
|
2017-01-11 21:39:40 +13:00
|
|
|
|
Copyright (c) 2007-2017 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
|
|
|
|
|
{
|
2016-02-03 06:36:58 +13:00
|
|
|
|
[Category("Indexer"), DefaultValue(IndexerOutput.Html), Description("Indexer output type."), TypeConverter(typeof(EnumDescriptionConverter))]
|
2013-11-03 23:53:49 +13:00
|
|
|
|
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; }
|
|
|
|
|
|
2016-02-03 07:10:50 +13:00
|
|
|
|
[Category("Indexer"), DefaultValue(true), Description("Write folder and file size.")]
|
|
|
|
|
public bool ShowSizeInfo { 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; }
|
|
|
|
|
|
2016-02-03 09:06:22 +13:00
|
|
|
|
[Category("Indexer / HTML"), DefaultValue(""), Description("Custom Cascading Style Sheet file path."), 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 / XML"), DefaultValue(true), Description("Folder/File information (name, size etc.) will be written as attribute.")]
|
|
|
|
|
public bool UseAttribute { get; set; }
|
|
|
|
|
|
2016-02-04 01:12:15 +13:00
|
|
|
|
[Category("Indexer / JSON"), DefaultValue(true), Description("Creates parseable but longer json output.")]
|
|
|
|
|
public bool CreateParseableJson { get; set; }
|
|
|
|
|
|
2013-11-03 23:53:49 +13:00
|
|
|
|
[JsonIgnore]
|
|
|
|
|
public bool BinaryUnits;
|
|
|
|
|
|
|
|
|
|
public IndexerSettings()
|
|
|
|
|
{
|
|
|
|
|
this.ApplyDefaultPropertyValues();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|