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-12-31 22:41:32 +13:00
Copyright © 2007 - 2015 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 )
2014-12-11 09:25:20 +13:00
using ShareX.HelpersLib ;
2013-11-03 23:53:49 +13:00
using System.ComponentModel ;
2015-07-21 23:55:53 +12:00
using System.ComponentModel.Design ;
2013-11-03 23:53:49 +13:00
using System.Drawing ;
2015-07-21 23:55:53 +12:00
using System.Drawing.Design ;
2013-11-03 23:53:49 +13:00
2014-12-11 09:25:20 +13:00
namespace ShareX.ScreenCaptureLib
2013-11-03 23:53:49 +13:00
{
public class SurfaceOptions
{
[DefaultValue(true), Description("Allow screenshot capture as soon as the mouse is released. This disables the ability to capture multiple shapes and to move and/or resize them.")]
public bool QuickCrop { get ; set ; }
2014-07-25 17:54:24 +12:00
[DefaultValue(true), Description("Show coordinate and size information.")]
2013-11-03 23:53:49 +13:00
public bool ShowInfo { get ; set ; }
2015-07-21 23:55:53 +12:00
[DefaultValue(false), Description("Allows to show your custom info text near cursor. This way you can show color info too.")]
public bool UseCustomInfoText { get ; set ; }
[ DefaultValue ( "X: $x, Y: $y\r\nR: $r, G: $g, B: $b\r\nHex: $hex" ) , Description ( "Show this custom info when color info setting is enabled. Formats: $x, $y, $r, $g, $b, $hex" ) ,
Editor ( typeof ( MultilineStringEditor ) , typeof ( UITypeEditor ) ) ]
public string CustomInfoText { get ; set ; }
2015-05-07 03:15:36 +12:00
[DefaultValue(true), Description("Show hotkeys/tips.")]
public bool ShowTips { get ; set ; }
2013-11-03 23:53:49 +13:00
[DefaultValue(true), Description("Show magnifier.")]
public bool ShowMagnifier { get ; set ; }
[DefaultValue(15), Description("Number of pixels in magnifier. Must be odd number like 11, 13, 15 etc.")]
public int MagnifierPixelCount { get ; set ; }
[DefaultValue(10), Description("Size of pixels in magnifier.")]
public int MagnifierPixelSize { get ; set ; }
2015-05-08 06:25:23 +12:00
[DefaultValue(false), Description("Show screen wide crosshair.")]
2013-11-03 23:53:49 +13:00
public bool ShowCrosshair { get ; set ; }
2015-05-13 04:27:21 +12:00
[DefaultValue(true), Description("Capturing screen will dim the screen outside selected area. This may impact on the startup time of the capture process at high resolutions.")]
2014-11-18 01:55:20 +13:00
public bool UseDimming { get ; set ; }
2013-11-03 23:53:49 +13:00
[DefaultValue(false), Description("Show frames per second.")]
public bool ShowFPS { get ; set ; }
[DefaultValue(false), Description("Result image will have border around the shape(s).")]
public bool DrawBorder { get ; set ; }
2014-11-21 23:09:13 +13:00
[DefaultValue(false), Description("You can use window capture mode in all rectangle type shapes. Also includes window client area.")]
2013-11-03 23:53:49 +13:00
public bool ForceWindowCapture { get ; set ; }
[DefaultValue(false), Description("If window capture mode enabled this setting will also allow to capture window controls.")]
public bool IncludeControls { get ; set ; }
[DefaultValue(1), Description("Number of pixels to move shape at each arrow key stroke.")]
public int MinMoveSpeed { get ; set ; }
[DefaultValue(5), Description("Number of pixels to move shape at each arrow key stroke while holding Ctrl key.")]
public int MaxMoveSpeed { get ; set ; }
[DefaultValue(false), Description("Fixed shape size.")]
public bool IsFixedSize { get ; set ; }
[DefaultValue(typeof(Size), "250, 250"), Description("Fixed shape size.")]
public Size FixedSize { get ; set ; }
2015-07-17 07:51:19 +12:00
[DefaultValue(RegionShape.Rectangle), Description("Current region shape.")]
public RegionShape CurrentRegionShape { get ; set ; }
2013-11-03 23:53:49 +13:00
public SurfaceOptions ( )
{
this . ApplyDefaultPropertyValues ( ) ;
}
}
}