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 System;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
|
|
|
|
namespace ShareX
|
|
|
|
|
{
|
2015-09-12 12:09:05 +12:00
|
|
|
|
public enum ShareXBuild
|
|
|
|
|
{
|
|
|
|
|
Debug,
|
|
|
|
|
Release,
|
2015-09-16 11:57:27 +12:00
|
|
|
|
Steam,
|
|
|
|
|
Unknown
|
2015-09-12 12:09:05 +12:00
|
|
|
|
}
|
|
|
|
|
|
2014-10-03 12:19:04 +13:00
|
|
|
|
public enum SupportedLanguage
|
|
|
|
|
{
|
2014-10-19 06:38:34 +13:00
|
|
|
|
Automatic, // Localized
|
2015-05-04 04:24:21 +12:00
|
|
|
|
[Description("Nederlands (Dutch)")]
|
|
|
|
|
Dutch,
|
2014-10-04 02:54:41 +13:00
|
|
|
|
[Description("English")]
|
2014-10-03 12:19:04 +13:00
|
|
|
|
English,
|
2015-01-05 05:30:12 +13:00
|
|
|
|
[Description("Français (French)")]
|
2015-01-15 19:17:18 +13:00
|
|
|
|
French,
|
2015-05-04 04:24:21 +12:00
|
|
|
|
[Description("Deutsch (German)")]
|
|
|
|
|
German,
|
2015-01-18 13:53:32 +13:00
|
|
|
|
[Description("Magyar (Hungarian)")]
|
|
|
|
|
Hungarian,
|
2015-04-02 03:24:36 +13:00
|
|
|
|
[Description("한국어 (Korean)")]
|
|
|
|
|
Korean,
|
2015-08-12 07:23:48 +12:00
|
|
|
|
[Description("Português-Brasil (Portuguese-Brazil)")]
|
|
|
|
|
PortugueseBrazil,
|
2015-09-16 11:57:27 +12:00
|
|
|
|
/*[Description("Русский (Russian)")]
|
|
|
|
|
Russian,*/
|
2015-01-15 19:17:18 +13:00
|
|
|
|
[Description("简体中文 (Simplified Chinese)")]
|
2015-01-18 08:28:30 +13:00
|
|
|
|
SimplifiedChinese,
|
2015-04-09 07:15:40 +12:00
|
|
|
|
[Description("Español (Spanish)")]
|
|
|
|
|
Spanish,
|
2015-01-18 13:53:32 +13:00
|
|
|
|
[Description("Türkçe (Turkish)")]
|
2015-08-12 07:23:48 +12:00
|
|
|
|
Turkish
|
2014-10-03 12:19:04 +13:00
|
|
|
|
}
|
|
|
|
|
|
2013-11-03 23:53:49 +13:00
|
|
|
|
public enum TaskJob
|
|
|
|
|
{
|
2014-06-05 03:20:13 +12:00
|
|
|
|
Job,
|
2013-11-03 23:53:49 +13:00
|
|
|
|
DataUpload,
|
|
|
|
|
FileUpload,
|
|
|
|
|
TextUpload,
|
2014-07-08 04:02:32 +12:00
|
|
|
|
ShortenURL,
|
2015-08-17 12:01:10 +12:00
|
|
|
|
ShareURL,
|
|
|
|
|
DownloadUpload
|
2013-11-03 23:53:49 +13:00
|
|
|
|
}
|
|
|
|
|
|
2015-08-04 19:31:43 +12:00
|
|
|
|
public enum TaskStatus
|
|
|
|
|
{
|
|
|
|
|
InQueue,
|
|
|
|
|
Preparing,
|
|
|
|
|
Working,
|
|
|
|
|
Stopping,
|
|
|
|
|
Completed
|
|
|
|
|
}
|
|
|
|
|
|
2013-11-03 23:53:49 +13:00
|
|
|
|
[Flags]
|
2014-10-19 06:38:34 +13:00
|
|
|
|
public enum AfterCaptureTasks // Localized
|
2013-11-03 23:53:49 +13:00
|
|
|
|
{
|
|
|
|
|
None = 0,
|
|
|
|
|
AddImageEffects = 1,
|
2014-10-13 12:36:18 +13:00
|
|
|
|
AnnotateImage = 1 << 1,
|
|
|
|
|
CopyImageToClipboard = 1 << 2,
|
|
|
|
|
SendImageToPrinter = 1 << 3,
|
|
|
|
|
SaveImageToFile = 1 << 4,
|
|
|
|
|
SaveImageToFileWithDialog = 1 << 5,
|
|
|
|
|
SaveThumbnailImageToFile = 1 << 6,
|
2015-03-08 14:33:43 +13:00
|
|
|
|
PerformActions = 1 << 7,
|
|
|
|
|
CopyFileToClipboard = 1 << 8,
|
|
|
|
|
CopyFilePathToClipboard = 1 << 9,
|
2014-10-13 12:36:18 +13:00
|
|
|
|
UploadImageToHost = 1 << 10,
|
|
|
|
|
DeleteFile = 1 << 11
|
2013-11-03 23:53:49 +13:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Flags]
|
2014-10-19 06:38:34 +13:00
|
|
|
|
public enum AfterUploadTasks // Localized
|
2013-11-03 23:53:49 +13:00
|
|
|
|
{
|
|
|
|
|
None = 0,
|
|
|
|
|
UseURLShortener = 1,
|
2014-07-11 13:52:53 +12:00
|
|
|
|
ShareURL = 1 << 1,
|
|
|
|
|
CopyURLToClipboard = 1 << 2,
|
|
|
|
|
OpenURL = 1 << 3,
|
|
|
|
|
ShowQRCode = 1 << 4
|
2013-11-03 23:53:49 +13:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum AfterCaptureFormResult
|
|
|
|
|
{
|
|
|
|
|
Cancel,
|
2013-12-24 02:40:49 +13:00
|
|
|
|
Continue,
|
2013-11-03 23:53:49 +13:00
|
|
|
|
Copy
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum CaptureType
|
|
|
|
|
{
|
|
|
|
|
Screen,
|
|
|
|
|
Monitor,
|
|
|
|
|
ActiveMonitor,
|
|
|
|
|
Window,
|
|
|
|
|
ActiveWindow,
|
|
|
|
|
RectangleWindow,
|
|
|
|
|
Rectangle,
|
|
|
|
|
Polygon,
|
|
|
|
|
Freehand,
|
2015-04-27 07:52:01 +12:00
|
|
|
|
CustomRegion,
|
2013-11-03 23:53:49 +13:00
|
|
|
|
LastRegion
|
|
|
|
|
}
|
|
|
|
|
|
2015-06-22 18:56:18 +12:00
|
|
|
|
public enum ScreenRecordStartMethod
|
|
|
|
|
{
|
|
|
|
|
Region,
|
|
|
|
|
ActiveWindow,
|
|
|
|
|
LastRegion
|
|
|
|
|
}
|
|
|
|
|
|
2015-06-20 10:22:35 +12:00
|
|
|
|
public enum HotkeyType // Localized + Category
|
2013-11-03 23:53:49 +13:00
|
|
|
|
{
|
|
|
|
|
None,
|
2015-06-22 18:56:18 +12:00
|
|
|
|
// Upload
|
2014-07-05 02:23:53 +12:00
|
|
|
|
FileUpload,
|
2014-08-14 00:33:14 +12:00
|
|
|
|
FolderUpload,
|
2013-11-03 23:53:49 +13:00
|
|
|
|
ClipboardUpload,
|
|
|
|
|
ClipboardUploadWithContentViewer,
|
2014-07-05 02:23:53 +12:00
|
|
|
|
UploadURL,
|
2014-04-06 18:08:43 +12:00
|
|
|
|
DragDropUpload,
|
2014-07-05 02:23:53 +12:00
|
|
|
|
StopUploads,
|
2015-06-22 18:56:18 +12:00
|
|
|
|
// Screen capture
|
2013-11-03 23:53:49 +13:00
|
|
|
|
PrintScreen,
|
|
|
|
|
ActiveWindow,
|
|
|
|
|
ActiveMonitor,
|
|
|
|
|
RectangleRegion,
|
|
|
|
|
WindowRectangle,
|
2014-07-10 08:57:26 +12:00
|
|
|
|
RectangleAnnotate,
|
2014-06-01 03:37:23 +12:00
|
|
|
|
RectangleLight,
|
2015-04-02 00:12:21 +13:00
|
|
|
|
RectangleTransparent,
|
2013-11-03 23:53:49 +13:00
|
|
|
|
PolygonRegion,
|
|
|
|
|
FreeHandRegion,
|
2015-04-27 07:52:01 +12:00
|
|
|
|
CustomRegion,
|
2013-11-03 23:53:49 +13:00
|
|
|
|
LastRegion,
|
2015-06-28 01:03:15 +12:00
|
|
|
|
CaptureWebpage,
|
|
|
|
|
AutoCapture,
|
|
|
|
|
StartAutoCapture,
|
2015-06-22 18:56:18 +12:00
|
|
|
|
// Screen record
|
2013-11-03 23:53:49 +13:00
|
|
|
|
ScreenRecorder,
|
2015-06-22 18:56:18 +12:00
|
|
|
|
ScreenRecorderActiveWindow,
|
2014-12-11 08:23:05 +13:00
|
|
|
|
StartScreenRecorder,
|
2015-01-30 19:50:10 +13:00
|
|
|
|
ScreenRecorderGIF,
|
2015-06-22 18:56:18 +12:00
|
|
|
|
ScreenRecorderGIFActiveWindow,
|
2015-01-30 19:50:10 +13:00
|
|
|
|
StartScreenRecorderGIF,
|
2015-06-22 18:56:18 +12:00
|
|
|
|
// Tools
|
2015-01-26 20:24:26 +13:00
|
|
|
|
ColorPicker,
|
2013-11-03 23:53:49 +13:00
|
|
|
|
ScreenColorPicker,
|
2015-06-22 18:56:18 +12:00
|
|
|
|
ImageEditor,
|
2014-05-21 10:46:06 +12:00
|
|
|
|
ImageEffects,
|
2015-06-22 18:56:18 +12:00
|
|
|
|
HashCheck,
|
|
|
|
|
DNSChanger,
|
2014-06-17 22:30:49 +12:00
|
|
|
|
QRCode,
|
2015-06-22 18:56:18 +12:00
|
|
|
|
Ruler,
|
2015-06-20 10:22:35 +12:00
|
|
|
|
Automate,
|
2015-06-22 18:56:18 +12:00
|
|
|
|
IndexFolder,
|
|
|
|
|
FTPClient,
|
|
|
|
|
TweetMessage,
|
|
|
|
|
MonitorTest,
|
|
|
|
|
// Other
|
2015-07-19 06:49:34 +12:00
|
|
|
|
DisableHotkeys,
|
2015-06-20 10:22:35 +12:00
|
|
|
|
OpenScreenshotsFolder
|
2013-11-03 23:53:49 +13:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum HotkeyStatus
|
|
|
|
|
{
|
|
|
|
|
Registered,
|
|
|
|
|
Failed,
|
|
|
|
|
NotConfigured
|
|
|
|
|
}
|
2014-01-13 01:13:52 +13:00
|
|
|
|
|
2014-10-19 06:38:34 +13:00
|
|
|
|
public enum PopUpNotificationType // Localized
|
2014-01-13 01:13:52 +13:00
|
|
|
|
{
|
|
|
|
|
None,
|
|
|
|
|
BalloonTip,
|
|
|
|
|
ToastNotification
|
|
|
|
|
}
|
2014-03-13 22:13:02 +13:00
|
|
|
|
|
2014-10-19 06:38:34 +13:00
|
|
|
|
[DefaultValue(OpenUrl)]
|
2014-03-31 02:33:44 +13:00
|
|
|
|
public enum ToastClickAction
|
|
|
|
|
{
|
2014-03-31 02:47:10 +13:00
|
|
|
|
[Description("Annotate image")]
|
|
|
|
|
AnnotateImage,
|
2014-03-31 02:33:44 +13:00
|
|
|
|
[Description("Copy image to clipboard")]
|
|
|
|
|
CopyImageToClipboard,
|
2015-07-15 02:02:06 +12:00
|
|
|
|
[Description("Copy URL")]
|
|
|
|
|
CopyUrl,
|
2014-03-31 02:33:44 +13:00
|
|
|
|
[Description("Open file")]
|
|
|
|
|
OpenFile,
|
|
|
|
|
[Description("Open folder")]
|
|
|
|
|
OpenFolder,
|
2014-03-31 02:47:10 +13:00
|
|
|
|
[Description("Open URL")]
|
|
|
|
|
OpenUrl,
|
2014-03-31 02:33:44 +13:00
|
|
|
|
[Description("Upload")]
|
2015-07-15 02:02:06 +12:00
|
|
|
|
Upload
|
2014-03-31 02:33:44 +13:00
|
|
|
|
}
|
|
|
|
|
|
2014-10-19 06:38:34 +13:00
|
|
|
|
public enum FileExistAction // Localized
|
2014-03-13 22:13:02 +13:00
|
|
|
|
{
|
|
|
|
|
Ask,
|
|
|
|
|
Overwrite,
|
2014-03-13 23:05:24 +13:00
|
|
|
|
UniqueName,
|
2014-03-13 22:13:02 +13:00
|
|
|
|
Cancel
|
|
|
|
|
}
|
2014-06-19 07:17:22 +12:00
|
|
|
|
|
|
|
|
|
public enum ImagePreviewVisibility
|
|
|
|
|
{
|
|
|
|
|
Show, Hide, Automatic
|
|
|
|
|
}
|
2015-09-08 06:34:02 +12:00
|
|
|
|
|
|
|
|
|
public enum ScreenRecordState
|
|
|
|
|
{
|
2015-09-15 19:00:38 +12:00
|
|
|
|
Waiting, BeforeStart, AfterStart, AfterRecordingStart, AfterStop
|
2015-09-08 06:34:02 +12:00
|
|
|
|
}
|
2013-11-03 23:53:49 +13:00
|
|
|
|
}
|