From 64cc6f39ec6ca1ac6135790bd6c115d6c70bf7d5 Mon Sep 17 00:00:00 2001 From: osfancy Date: Mon, 12 Sep 2016 19:13:34 -0400 Subject: [PATCH] Closes #1466 - Uplea Integration (#1899) * Initial check-in to address feature enhancement request #1466. * Checking in missing constructor parameter so fork is stable. * Wrapping up Uplea integration support for #1466. * Reverted Uploader.cs to earlier version as those changes weren't actually needed. * Removed use of DataContractJsonSerializer, using JSON .NET instead. Updated the Uplea class to not store the configuration object internally, but to only pull out the API key when the config is passed through its constructor. * Incorporating recent round of refactoring changes suggested by Jaex. * Addressing issue with user workflow on the Uplea destination configuration tab. * Attempt to reconcile UploadersConfigForm.resx. * Fixing the name for an unnamed label. Updating resx formatting for base64 encoded pbDropboxLogo.Image value; since the diff on GitHub was showing a material change although VS diff ignores the formatting difference. Removed unneeded string.Format from Upload() in Uplea along with the set for IsURLExpected (since it is already true by default). * Removed extra whitespace next to the end of the value tag since GitHub diff was still showing a difference. * Removing references to label4 from resx which weren't removed by VS automatically when the control was renamed. The new entries for the renamed control lblUpleaEmailAddress already exist in the file. --- ShareX.UploadersLib/Enums.cs | 2 + ShareX.UploadersLib/Favicons/Uplea.ico | Bin 0 -> 1406 bytes ShareX.UploadersLib/FileUploaders/Uplea.cs | 230 +++++ .../Forms/UploadersConfigForm.Designer.cs | 817 ++++++++++-------- .../Forms/UploadersConfigForm.cs | 82 ++ .../Forms/UploadersConfigForm.resx | 381 ++++++++ .../Properties/Resources.Designer.cs | 10 + ShareX.UploadersLib/Properties/Resources.resx | 3 + .../ShareX.UploadersLib.csproj | 4 + ShareX.UploadersLib/UploadersConfig.cs | 9 + 10 files changed, 1196 insertions(+), 342 deletions(-) create mode 100644 ShareX.UploadersLib/Favicons/Uplea.ico create mode 100644 ShareX.UploadersLib/FileUploaders/Uplea.cs diff --git a/ShareX.UploadersLib/Enums.cs b/ShareX.UploadersLib/Enums.cs index 34df8aa12..b51db6afa 100644 --- a/ShareX.UploadersLib/Enums.cs +++ b/ShareX.UploadersLib/Enums.cs @@ -140,6 +140,8 @@ public enum FileDestination Lithiio, [Description("transfer.sh")] Transfersh, + [Description("Uplea")] + Uplea, SharedFolder, // Localized Email, // Localized CustomFileUploader // Localized diff --git a/ShareX.UploadersLib/Favicons/Uplea.ico b/ShareX.UploadersLib/Favicons/Uplea.ico new file mode 100644 index 0000000000000000000000000000000000000000..dfb72460874535640767257380463aa7fd0695a8 GIT binary patch literal 1406 zcmeH_>04A~7{+f((=-b+O-%)b8J1ZY4zn{0hA zFBLczhZZVy-iTKEApKz|9oHKzxY=yPaEpy~THJ28p(#6xbqml}o{WJSEqq60=&#np zPY)cG;cA^8fAuX!s6mfwmne^ky(q}CqLcn-vk9Gr3Un2z5u}EEcJl3L%#OyDatZgl zGcZskktfI1T8T_KTBuN+0pSJ%u3eN6zFG9BnG z)1i;L+vPxir4HVlSokP^UM$%u_`81*nMU?#A&XhPHrA^!6tJPERE4GkQOxXQRu!&P zFl!F;)#?$*li}guGCZQ5{_~i5)aasuRQDM*h68r?kc3-pcGjn{UXA8M(d;7)-or8Q zQT>$??gg2(Mk3RI!3z@Fjwi4mGcy{{aY9KJa|9ghMT0vXspvh&JQbsP(lIhJLQX6O zs&(+^(rZ!>syCv=9Y;sSjYJ+Eg6uDaV=p;9p z{qat#wB#ql%e6mOMy4Kv^(M5r;}NDmee#$*1@p#}XT?pQ6~WV^_ozUynAs_hYc7Uc z?YLZ;L{1FPO~OEJ5_xh2s0V!+oHx#BgY?|+{=fXMPQYC?***CW-JH7D+_PrAx+Hgk zdP(`rg4bQ&oLV|%`<%rSwtZL|SuaHDI3bE$(icCkPI0|#7vd9z5SvqrqUIH>%`SOG zh}o-zIJ{-kF4wQ-&1DmX_~@h%ix%c7cKwc0%|0PAtwO9=mOo=-(f2t!P2$-Tv;Y0Q z32~K4$(dvSS;hq?idQ;6H@zps{PRK_`S{)A8b{6>nejp_UoXUu71Q*S&ZSSaWQoFc zZ*CA<*PQuwVcG0oth>kRGqS$>t@@>7I}Hb?k8Wr`dn-12kIeby>95Bh{b|SBpYA?X bGuL@w<(?1TX|SDDr77hRU;U8yqUZQ8p2Kei literal 0 HcmV?d00001 diff --git a/ShareX.UploadersLib/FileUploaders/Uplea.cs b/ShareX.UploadersLib/FileUploaders/Uplea.cs new file mode 100644 index 000000000..b5f7b7ed6 --- /dev/null +++ b/ShareX.UploadersLib/FileUploaders/Uplea.cs @@ -0,0 +1,230 @@ +#region License Information (GPL v3) + +/* + ShareX - A program that allows you to take screenshots and share any file type + Copyright (c) 2007-2016 ShareX Team + + 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 . +*/ + +#endregion License Information (GPL v3) + +using System; +using System.IO; +using System.Drawing; +using System.ComponentModel; +using System.Windows.Forms; +using System.Collections.Generic; +using ShareX.UploadersLib.Properties; +using Newtonsoft.Json; + +namespace ShareX.UploadersLib.FileUploaders +{ + public class UpleaUploaderService : FileUploaderService + { + public override FileDestination EnumValue { get; } = FileDestination.Uplea; + + public override Icon ServiceIcon => Resources.Uplea; + + public override bool CheckConfig(UploadersConfig config) + { + return !string.IsNullOrEmpty(config.UpleaApiKey); + } + + public override GenericUploader CreateUploader(UploadersConfig config, TaskReferenceHelper taskInfo) + { + return new Uplea() { UpleaApiKey = config.UpleaApiKey }; + } + + public override TabPage GetUploadersConfigTabPage(UploadersConfigForm form) => form.tpUplea; + } + + [Localizable(false)] + public sealed class Uplea : FileUploader + { + private const string upleaBaseUrl = "http://api.uplea.com/api/"; + public string UpleaApiKey { get; set; } + + public UpleaGetUserInformationResponse GetUserInformation(string apiKey) + { + var upleaGetUserInformationResponse = JsonConvert.DeserializeObject(GetUpleaResponse(new UpleaGetUserInformationRequest() { ApiKey = apiKey })); + + if (upleaGetUserInformationResponse.Status) + { + return upleaGetUserInformationResponse; + } + + return new UpleaGetUserInformationResponse(); + } + + private UpleaNode GetBestNode() + { + var getBestNodeResponse = JsonConvert.DeserializeObject(SendRequest(HttpMethod.POST, upleaBaseUrl + "get-best-node")); + return new UpleaNode(getBestNodeResponse.Result.Name, getBestNodeResponse.Result.Token); + } + + public string GetApiKey(string username, string password) + { + var upleaGetApiKeyResponseStr = GetUpleaResponse(new UpleaGetApiKeyRequest() { Username = username, Password = password }); + + if (!string.IsNullOrEmpty(upleaGetApiKeyResponseStr)) + { + try + { + var upleaGetApiKeyResponse = JsonConvert.DeserializeObject(upleaGetApiKeyResponseStr); + + if (upleaGetApiKeyResponse.Status) + { + return upleaGetApiKeyResponse.Result.ApiKey; + } + } + catch (JsonSerializationException ex) + { + // For some reason the Uplea API is supposed to return a single object in the result property of the response, but when + // there is an error it returns an empty array. This is causing deserialziation to fail. Do we want to just query the JSON + // status before trying to deserialize? + + System.Diagnostics.Debug.WriteLine("Deserialization of UpleaGetApiKeyResponse failed: {0}", ex.Message); + + } + } + + return string.Empty; + } + + private string GetUpleaResponse(T upleaRequest) where T : IUpleaRequest + { + Dictionary parameters = new Dictionary(); + parameters.Add("json", JsonConvert.SerializeObject(upleaRequest)); + return SendRequestURLEncoded(upleaBaseUrl + upleaRequest.RequestType, parameters); + } + + public override UploadResult Upload(Stream stream, string fileName) + { + var upleaBestNode = GetBestNode(); + + Dictionary args = new Dictionary(); + args.Add("api_key", UpleaApiKey); + args.Add("token", upleaBestNode.Token); + args.Add("file_id[]", Guid.NewGuid().ToString()); + + UploadResult result = UploadData(stream, string.Format("http://{0}/", upleaBestNode.Name), fileName, "files[]", args); + var uploadResult = JsonConvert.DeserializeObject(result.Response); + + if (uploadResult.Files.Length > 0) + { + result.URL = uploadResult.Files[0].Url; + } + + return result; + } + + private sealed class UpleaNode + { + public UpleaNode(string name, string token) + { + Name = name; + Token = token; + } + + public string Name { get; private set; } + public string Token { get; private set; } + } + + #region Uplea Responses + private sealed class UpleaGetUpleaUploadResponse + { + public class UpleaUploadResult + { + public string Url { get; set; } + } + + public UpleaUploadResult[] Files { get; set; } + } + + private sealed class UpleaGetBestNodeResponse + { + [JsonObject] + public class UpleaGetBestNodeResult + { + public string Name { get; set; } + public string Token { get; set; } + } + + public UpleaGetBestNodeResult Result { get; set; } + public bool Status { get; set; } + } + + private sealed class UpleaGetApiKeyResponse + { + public class UpleaGetApiKeyResult + { + [JsonProperty(PropertyName = "api_key")] + public string ApiKey { get; set; } + } + + public UpleaGetApiKeyResult Result { get; set; } + public bool Status { get; set; } + } + + public sealed class UpleaGetUserInformationResponse + { + public class UpleaUserInformationResult + { + [JsonProperty(PropertyName = "mail")] + public string EmailAddress { get; set; } + [JsonProperty(PropertyName = "instant_download")] + public bool InstantDownloadEnabled { get; set; } + [JsonProperty(PropertyName = "is_premium")] + public bool IsPremiumMember { get; set; } + } + + public UpleaUserInformationResult Result { get; set; } + public bool Status { get; set; } + } + #endregion + + #region Uplea Requests + private sealed class UpleaGetApiKeyRequest : IUpleaRequest + { + [JsonProperty(PropertyName = "username")] + public string Username { get; set; } + [JsonProperty(PropertyName = "password")] + public string Password { get; set; } + + [JsonIgnore] + public string RequestType { get; } = "get-my-api-key"; + } + + private sealed class UpleaGetUserInformationRequest : IUpleaRequest + { + [JsonProperty(PropertyName = "api_key")] + public string ApiKey { get; set; } + + [JsonIgnore] + public string RequestType { get; } = "get-user-info"; + } + #endregion + + #region Uplea Request Interface + private interface IUpleaRequest + { + string RequestType { get; } + } + #endregion + } +} diff --git a/ShareX.UploadersLib/Forms/UploadersConfigForm.Designer.cs b/ShareX.UploadersLib/Forms/UploadersConfigForm.Designer.cs index e979b3a7c..3792d85b9 100644 --- a/ShareX.UploadersLib/Forms/UploadersConfigForm.Designer.cs +++ b/ShareX.UploadersLib/Forms/UploadersConfigForm.Designer.cs @@ -42,7 +42,6 @@ private void InitializeComponent() this.lblTwitterDefaultMessage = new System.Windows.Forms.Label(); this.txtTwitterDefaultMessage = new System.Windows.Forms.TextBox(); this.cbTwitterSkipMessageBox = new System.Windows.Forms.CheckBox(); - this.oauthTwitter = new ShareX.UploadersLib.OAuthControl(); this.txtTwitterDescription = new System.Windows.Forms.TextBox(); this.lblTwitterDescription = new System.Windows.Forms.Label(); this.btnTwitterRemove = new System.Windows.Forms.Button(); @@ -56,8 +55,6 @@ private void InitializeComponent() this.btnCustomUploaderRegexpUpdate = new System.Windows.Forms.Button(); this.btnCustomUploaderRegexpAdd = new System.Windows.Forms.Button(); this.btnCustomUploaderRegexpRemove = new System.Windows.Forms.Button(); - this.lvCustomUploaderRegexps = new ShareX.HelpersLib.MyListView(); - this.lvRegexpsColumn = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.tpCustomUploaderJsonParse = new System.Windows.Forms.TabPage(); this.btnCustomUploaderJsonAddSyntax = new System.Windows.Forms.Button(); this.btnCustomUploadJsonPathHelp = new System.Windows.Forms.Button(); @@ -77,18 +74,12 @@ private void InitializeComponent() this.txtCustomUploaderArgValue = new System.Windows.Forms.TextBox(); this.btnCustomUploaderArgAdd = new System.Windows.Forms.Button(); this.btnCustomUploaderArgRemove = new System.Windows.Forms.Button(); - this.lvCustomUploaderArguments = new ShareX.HelpersLib.MyListView(); - this.chCustomUploaderArgumentsName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); - this.chCustomUploaderArgumentsValue = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.tpCustomUploaderHeaders = new System.Windows.Forms.TabPage(); this.btnCustomUploaderHeaderUpdate = new System.Windows.Forms.Button(); this.txtCustomUploaderHeaderName = new System.Windows.Forms.TextBox(); this.txtCustomUploaderHeaderValue = new System.Windows.Forms.TextBox(); this.btnCustomUploaderHeaderAdd = new System.Windows.Forms.Button(); this.btnCustomUploaderHeaderRemove = new System.Windows.Forms.Button(); - this.lvCustomUploaderHeaders = new ShareX.HelpersLib.MyListView(); - this.chCustomUploaderHeadersName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); - this.chCustomUploaderHeadersValue = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.btnCustomUploaderExamples = new System.Windows.Forms.Button(); this.btnCustomUploaderHelp = new System.Windows.Forms.Button(); this.btnCustomUploaderClear = new System.Windows.Forms.Button(); @@ -106,7 +97,6 @@ private void InitializeComponent() this.gbCustomUploaders = new System.Windows.Forms.GroupBox(); this.btnCustomUploadersExportAll = new System.Windows.Forms.Button(); this.btnCustomUploaderClearUploaders = new System.Windows.Forms.Button(); - this.eiCustomUploaders = new ShareX.HelpersLib.ExportImportControl(); this.lbCustomUploaderList = new System.Windows.Forms.ListBox(); this.btnCustomUploaderRemove = new System.Windows.Forms.Button(); this.btnCustomUploaderUpdate = new System.Windows.Forms.Button(); @@ -135,10 +125,7 @@ private void InitializeComponent() this.tpBitly = new System.Windows.Forms.TabPage(); this.txtBitlyDomain = new System.Windows.Forms.TextBox(); this.lblBitlyDomain = new System.Windows.Forms.Label(); - this.oauth2Bitly = new ShareX.UploadersLib.OAuthControl(); this.tpGoogleURLShortener = new System.Windows.Forms.TabPage(); - this.oauth2GoogleURLShortener = new ShareX.UploadersLib.OAuthControl(); - this.atcGoogleURLShortenerAccountType = new ShareX.UploadersLib.AccountTypeControl(); this.tpYourls = new System.Windows.Forms.TabPage(); this.txtYourlsPassword = new System.Windows.Forms.TextBox(); this.txtYourlsUsername = new System.Windows.Forms.TextBox(); @@ -166,7 +153,6 @@ private void InitializeComponent() this.tpFileUploaders = new System.Windows.Forms.TabPage(); this.tcFileUploaders = new System.Windows.Forms.TabControl(); this.tpFTP = new System.Windows.Forms.TabPage(); - this.eiFTP = new ShareX.HelpersLib.ExportImportControl(); this.btnFtpClient = new System.Windows.Forms.Button(); this.lblFtpFiles = new System.Windows.Forms.Label(); this.lblFtpText = new System.Windows.Forms.Label(); @@ -174,9 +160,7 @@ private void InitializeComponent() this.cboFtpImages = new System.Windows.Forms.ComboBox(); this.cboFtpFiles = new System.Windows.Forms.ComboBox(); this.cboFtpText = new System.Windows.Forms.ComboBox(); - this.ucFTPAccounts = new ShareX.UploadersLib.AccountsControl(); this.tpDropbox = new System.Windows.Forms.TabPage(); - this.oauth2Dropbox = new ShareX.UploadersLib.OAuthControl(); this.cbDropboxURLType = new System.Windows.Forms.ComboBox(); this.cbDropboxAutoCreateShareableLink = new System.Windows.Forms.CheckBox(); this.pbDropboxLogo = new System.Windows.Forms.PictureBox(); @@ -188,18 +172,13 @@ private void InitializeComponent() this.tvOneDrive = new System.Windows.Forms.TreeView(); this.lblOneDriveFolderID = new System.Windows.Forms.Label(); this.cbOneDriveCreateShareableLink = new System.Windows.Forms.CheckBox(); - this.oAuth2OneDrive = new ShareX.UploadersLib.OAuthControl(); this.tpGoogleDrive = new System.Windows.Forms.TabPage(); this.cbGoogleDriveDirectLink = new System.Windows.Forms.CheckBox(); this.cbGoogleDriveUseFolder = new System.Windows.Forms.CheckBox(); this.txtGoogleDriveFolderID = new System.Windows.Forms.TextBox(); this.lblGoogleDriveFolderID = new System.Windows.Forms.Label(); - this.lvGoogleDriveFoldersList = new ShareX.HelpersLib.MyListView(); - this.chGoogleDriveTitle = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); - this.chGoogleDriveDescription = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.btnGoogleDriveRefreshFolders = new System.Windows.Forms.Button(); this.cbGoogleDriveIsPublic = new System.Windows.Forms.CheckBox(); - this.oauth2GoogleDrive = new ShareX.UploadersLib.OAuthControl(); this.tpPuush = new System.Windows.Forms.TabPage(); this.pbPuush = new System.Windows.Forms.PictureBox(); this.lblPuushAPIKey = new System.Windows.Forms.Label(); @@ -214,11 +193,8 @@ private void InitializeComponent() this.tpBox = new System.Windows.Forms.TabPage(); this.lblBoxFolderTip = new System.Windows.Forms.Label(); this.cbBoxShare = new System.Windows.Forms.CheckBox(); - this.lvBoxFolders = new ShareX.HelpersLib.MyListView(); - this.chBoxFoldersName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.lblBoxFolderID = new System.Windows.Forms.Label(); this.btnBoxRefreshFolders = new System.Windows.Forms.Button(); - this.oauth2Box = new ShareX.UploadersLib.OAuthControl(); this.tpAmazonS3 = new System.Windows.Forms.TabPage(); this.txtAmazonS3CustomDomain = new System.Windows.Forms.TextBox(); this.lblAmazonS3PathPreviewLabel = new System.Windows.Forms.Label(); @@ -280,7 +256,6 @@ private void InitializeComponent() this.lblSendSpaceUsername = new System.Windows.Forms.Label(); this.txtSendSpacePassword = new System.Windows.Forms.TextBox(); this.txtSendSpaceUserName = new System.Windows.Forms.TextBox(); - this.atcSendSpaceAccountType = new ShareX.UploadersLib.AccountTypeControl(); this.tpGe_tt = new System.Windows.Forms.TabPage(); this.lblGe_ttStatus = new System.Windows.Forms.Label(); this.lblGe_ttPassword = new System.Windows.Forms.Label(); @@ -318,7 +293,6 @@ private void InitializeComponent() this.txtJiraConfigHelp = new System.Windows.Forms.TextBox(); this.txtJiraHost = new System.Windows.Forms.TextBox(); this.lblJiraHost = new System.Windows.Forms.Label(); - this.oAuthJira = new ShareX.UploadersLib.OAuthControl(); this.tpLambda = new System.Windows.Forms.TabPage(); this.lblLambdaInfo = new System.Windows.Forms.Label(); this.lblLambdaApiKey = new System.Windows.Forms.Label(); @@ -343,10 +317,6 @@ private void InitializeComponent() this.btnSeafileLibraryPasswordValidate = new System.Windows.Forms.Button(); this.txtSeafileLibraryPassword = new System.Windows.Forms.TextBox(); this.lblSeafileLibraryPassword = new System.Windows.Forms.Label(); - this.lvSeafileLibraries = new ShareX.HelpersLib.MyListView(); - this.colSeafileLibraryName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); - this.colSeafileLibrarySize = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); - this.colSeafileLibraryEncrypted = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.btnSeafilePathValidate = new System.Windows.Forms.Button(); this.txtSeafileDirectoryPath = new System.Windows.Forms.TextBox(); this.lblSeafileWritePermNotif = new System.Windows.Forms.Label(); @@ -395,7 +365,6 @@ private void InitializeComponent() this.lblSharedFolderImages = new System.Windows.Forms.Label(); this.cboSharedFolderText = new System.Windows.Forms.ComboBox(); this.cboSharedFolderImages = new System.Windows.Forms.ComboBox(); - this.ucLocalhostAccounts = new ShareX.UploadersLib.AccountsControl(); this.tpEmail = new System.Windows.Forms.TabPage(); this.txtEmailAutomaticSendTo = new System.Windows.Forms.TextBox(); this.cbEmailAutomaticSend = new System.Windows.Forms.CheckBox(); @@ -412,6 +381,20 @@ private void InitializeComponent() this.nudEmailSmtpPort = new System.Windows.Forms.NumericUpDown(); this.lblEmailSmtpPort = new System.Windows.Forms.Label(); this.txtEmailDefaultSubject = new System.Windows.Forms.TextBox(); + this.tpUplea = new System.Windows.Forms.TabPage(); + this.gbUpleaLoginCredentials = new System.Windows.Forms.GroupBox(); + this.btnUpleaLogin = new System.Windows.Forms.Button(); + this.lblUpleaApiKey = new System.Windows.Forms.Label(); + this.txtUpleaApiKey = new System.Windows.Forms.TextBox(); + this.lblUpleaPassword = new System.Windows.Forms.Label(); + this.lblUpleaUsername = new System.Windows.Forms.Label(); + this.txtUpleaPassword = new System.Windows.Forms.TextBox(); + this.txtUpleaUsername = new System.Windows.Forms.TextBox(); + this.gbUpleaUserInformation = new System.Windows.Forms.GroupBox(); + this.lblUpleaEmailAddress = new System.Windows.Forms.Label(); + this.cbUpleaInstantDownloadEnabled = new System.Windows.Forms.CheckBox(); + this.cbUpleaIsPremium = new System.Windows.Forms.CheckBox(); + this.txtUpleaEmailAddress = new System.Windows.Forms.TextBox(); this.btnCopyShowFiles = new System.Windows.Forms.Button(); this.tpTextUploaders = new System.Windows.Forms.TabPage(); this.tcTextUploaders = new System.Windows.Forms.TabControl(); @@ -438,8 +421,6 @@ private void InitializeComponent() this.tpGist = new System.Windows.Forms.TabPage(); this.cbGistUseRawURL = new System.Windows.Forms.CheckBox(); this.cbGistPublishPublic = new System.Windows.Forms.CheckBox(); - this.oAuth2Gist = new ShareX.UploadersLib.OAuthControl(); - this.atcGistAccountType = new ShareX.UploadersLib.AccountTypeControl(); this.tpUpaste = new System.Windows.Forms.TabPage(); this.cbUpasteIsPublic = new System.Windows.Forms.CheckBox(); this.lblUpasteUserKey = new System.Windows.Forms.Label(); @@ -461,8 +442,6 @@ private void InitializeComponent() this.cbImgurUseGIFV = new System.Windows.Forms.CheckBox(); this.cbImgurUploadSelectedAlbum = new System.Windows.Forms.CheckBox(); this.cbImgurDirectLink = new System.Windows.Forms.CheckBox(); - this.atcImgurAccountType = new ShareX.UploadersLib.AccountTypeControl(); - this.oauth2Imgur = new ShareX.UploadersLib.OAuthControl(); this.lvImgurAlbumList = new System.Windows.Forms.ListView(); this.chImgurID = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.chImgurTitle = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); @@ -480,7 +459,6 @@ private void InitializeComponent() this.txtImageShackPassword = new System.Windows.Forms.TextBox(); this.lblImageShackPassword = new System.Windows.Forms.Label(); this.tpTinyPic = new System.Windows.Forms.TabPage(); - this.atcTinyPicAccountType = new ShareX.UploadersLib.AccountTypeControl(); this.btnTinyPicLogin = new System.Windows.Forms.Button(); this.txtTinyPicPassword = new System.Windows.Forms.TextBox(); this.lblTinyPicPassword = new System.Windows.Forms.Label(); @@ -521,7 +499,6 @@ private void InitializeComponent() this.chPicasaName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.chPicasaDescription = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.btnPicasaRefreshAlbumList = new System.Windows.Forms.Button(); - this.oauth2Picasa = new ShareX.UploadersLib.OAuthControl(); this.tpChevereto = new System.Windows.Forms.TabPage(); this.btnCheveretoTestAll = new System.Windows.Forms.Button(); this.lblCheveretoUploadURLExample = new System.Windows.Forms.Label(); @@ -543,6 +520,43 @@ private void InitializeComponent() this.cbSomeImageDirectURL = new System.Windows.Forms.CheckBox(); this.tcUploaders = new System.Windows.Forms.TabControl(); this.lblWidthHint = new System.Windows.Forms.Label(); + this.atcImgurAccountType = new ShareX.UploadersLib.AccountTypeControl(); + this.oauth2Imgur = new ShareX.UploadersLib.OAuthControl(); + this.atcTinyPicAccountType = new ShareX.UploadersLib.AccountTypeControl(); + this.oauth2Picasa = new ShareX.UploadersLib.OAuthControl(); + this.oAuth2Gist = new ShareX.UploadersLib.OAuthControl(); + this.atcGistAccountType = new ShareX.UploadersLib.AccountTypeControl(); + this.eiFTP = new ShareX.HelpersLib.ExportImportControl(); + this.ucFTPAccounts = new ShareX.UploadersLib.AccountsControl(); + this.oauth2Dropbox = new ShareX.UploadersLib.OAuthControl(); + this.oAuth2OneDrive = new ShareX.UploadersLib.OAuthControl(); + this.lvGoogleDriveFoldersList = new ShareX.HelpersLib.MyListView(); + this.chGoogleDriveTitle = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.chGoogleDriveDescription = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.oauth2GoogleDrive = new ShareX.UploadersLib.OAuthControl(); + this.lvBoxFolders = new ShareX.HelpersLib.MyListView(); + this.chBoxFoldersName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.oauth2Box = new ShareX.UploadersLib.OAuthControl(); + this.atcSendSpaceAccountType = new ShareX.UploadersLib.AccountTypeControl(); + this.oAuthJira = new ShareX.UploadersLib.OAuthControl(); + this.oauthTwitter = new ShareX.UploadersLib.OAuthControl(); + this.lvCustomUploaderRegexps = new ShareX.HelpersLib.MyListView(); + this.lvRegexpsColumn = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.lvCustomUploaderArguments = new ShareX.HelpersLib.MyListView(); + this.chCustomUploaderArgumentsName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.chCustomUploaderArgumentsValue = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.lvCustomUploaderHeaders = new ShareX.HelpersLib.MyListView(); + this.chCustomUploaderHeadersName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.chCustomUploaderHeadersValue = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.eiCustomUploaders = new ShareX.HelpersLib.ExportImportControl(); + this.oauth2Bitly = new ShareX.UploadersLib.OAuthControl(); + this.oauth2GoogleURLShortener = new ShareX.UploadersLib.OAuthControl(); + this.atcGoogleURLShortenerAccountType = new ShareX.UploadersLib.AccountTypeControl(); + this.lvSeafileLibraries = new ShareX.HelpersLib.MyListView(); + this.colSeafileLibraryName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.colSeafileLibrarySize = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.colSeafileLibraryEncrypted = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.ucLocalhostAccounts = new ShareX.UploadersLib.AccountsControl(); this.ttlvMain = new ShareX.HelpersLib.TabToListView(); this.actRapidShareAccountType = new ShareX.UploadersLib.AccountTypeControl(); this.tpOtherUploaders.SuspendLayout(); @@ -601,6 +615,9 @@ private void InitializeComponent() this.tpSharedFolder.SuspendLayout(); this.tpEmail.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.nudEmailSmtpPort)).BeginInit(); + this.tpUplea.SuspendLayout(); + this.gbUpleaLoginCredentials.SuspendLayout(); + this.gbUpleaUserInformation.SuspendLayout(); this.tpTextUploaders.SuspendLayout(); this.tcTextUploaders.SuspendLayout(); this.tpPastebin.SuspendLayout(); @@ -721,15 +738,6 @@ private void InitializeComponent() this.cbTwitterSkipMessageBox.UseVisualStyleBackColor = true; this.cbTwitterSkipMessageBox.CheckedChanged += new System.EventHandler(this.cbTwitterSkipMessageBox_CheckedChanged); // - // oauthTwitter - // - resources.ApplyResources(this.oauthTwitter, "oauthTwitter"); - this.oauthTwitter.IsRefreshable = false; - this.oauthTwitter.Name = "oauthTwitter"; - this.oauthTwitter.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauthTwitter_OpenButtonClicked); - this.oauthTwitter.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauthTwitter_CompleteButtonClicked); - this.oauthTwitter.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauthTwitter_ClearButtonClicked); - // // txtTwitterDescription // resources.ApplyResources(this.txtTwitterDescription, "txtTwitterDescription"); @@ -857,28 +865,6 @@ private void InitializeComponent() this.btnCustomUploaderRegexpRemove.UseVisualStyleBackColor = true; this.btnCustomUploaderRegexpRemove.Click += new System.EventHandler(this.btnCustomUploaderRegexpRemove_Click); // - // lvCustomUploaderRegexps - // - this.lvCustomUploaderRegexps.AllowDrop = true; - this.lvCustomUploaderRegexps.AllowItemDrag = true; - this.lvCustomUploaderRegexps.AutoFillColumn = true; - this.lvCustomUploaderRegexps.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { - this.lvRegexpsColumn}); - this.lvCustomUploaderRegexps.FullRowSelect = true; - this.lvCustomUploaderRegexps.GridLines = true; - this.lvCustomUploaderRegexps.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None; - this.lvCustomUploaderRegexps.HideSelection = false; - resources.ApplyResources(this.lvCustomUploaderRegexps, "lvCustomUploaderRegexps"); - this.lvCustomUploaderRegexps.MultiSelect = false; - this.lvCustomUploaderRegexps.Name = "lvCustomUploaderRegexps"; - this.lvCustomUploaderRegexps.UseCompatibleStateImageBehavior = false; - this.lvCustomUploaderRegexps.View = System.Windows.Forms.View.Details; - this.lvCustomUploaderRegexps.SelectedIndexChanged += new System.EventHandler(this.lvCustomUploaderRegexps_SelectedIndexChanged); - // - // lvRegexpsColumn - // - resources.ApplyResources(this.lvRegexpsColumn, "lvRegexpsColumn"); - // // tpCustomUploaderJsonParse // this.tpCustomUploaderJsonParse.Controls.Add(this.btnCustomUploaderJsonAddSyntax); @@ -1012,33 +998,6 @@ private void InitializeComponent() this.btnCustomUploaderArgRemove.UseVisualStyleBackColor = true; this.btnCustomUploaderArgRemove.Click += new System.EventHandler(this.btnCustomUploaderArgRemove_Click); // - // lvCustomUploaderArguments - // - this.lvCustomUploaderArguments.AllowDrop = true; - this.lvCustomUploaderArguments.AllowItemDrag = true; - this.lvCustomUploaderArguments.AutoFillColumn = true; - this.lvCustomUploaderArguments.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { - this.chCustomUploaderArgumentsName, - this.chCustomUploaderArgumentsValue}); - this.lvCustomUploaderArguments.FullRowSelect = true; - this.lvCustomUploaderArguments.GridLines = true; - this.lvCustomUploaderArguments.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable; - this.lvCustomUploaderArguments.HideSelection = false; - resources.ApplyResources(this.lvCustomUploaderArguments, "lvCustomUploaderArguments"); - this.lvCustomUploaderArguments.MultiSelect = false; - this.lvCustomUploaderArguments.Name = "lvCustomUploaderArguments"; - this.lvCustomUploaderArguments.UseCompatibleStateImageBehavior = false; - this.lvCustomUploaderArguments.View = System.Windows.Forms.View.Details; - this.lvCustomUploaderArguments.SelectedIndexChanged += new System.EventHandler(this.lvCustomUploaderArguments_SelectedIndexChanged); - // - // chCustomUploaderArgumentsName - // - resources.ApplyResources(this.chCustomUploaderArgumentsName, "chCustomUploaderArgumentsName"); - // - // chCustomUploaderArgumentsValue - // - resources.ApplyResources(this.chCustomUploaderArgumentsValue, "chCustomUploaderArgumentsValue"); - // // tpCustomUploaderHeaders // this.tpCustomUploaderHeaders.Controls.Add(this.btnCustomUploaderHeaderUpdate); @@ -1082,33 +1041,6 @@ private void InitializeComponent() this.btnCustomUploaderHeaderRemove.UseVisualStyleBackColor = true; this.btnCustomUploaderHeaderRemove.Click += new System.EventHandler(this.btnCustomUploaderHeaderRemove_Click); // - // lvCustomUploaderHeaders - // - this.lvCustomUploaderHeaders.AllowDrop = true; - this.lvCustomUploaderHeaders.AllowItemDrag = true; - this.lvCustomUploaderHeaders.AutoFillColumn = true; - this.lvCustomUploaderHeaders.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { - this.chCustomUploaderHeadersName, - this.chCustomUploaderHeadersValue}); - this.lvCustomUploaderHeaders.FullRowSelect = true; - this.lvCustomUploaderHeaders.GridLines = true; - this.lvCustomUploaderHeaders.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable; - this.lvCustomUploaderHeaders.HideSelection = false; - resources.ApplyResources(this.lvCustomUploaderHeaders, "lvCustomUploaderHeaders"); - this.lvCustomUploaderHeaders.MultiSelect = false; - this.lvCustomUploaderHeaders.Name = "lvCustomUploaderHeaders"; - this.lvCustomUploaderHeaders.UseCompatibleStateImageBehavior = false; - this.lvCustomUploaderHeaders.View = System.Windows.Forms.View.Details; - this.lvCustomUploaderHeaders.SelectedIndexChanged += new System.EventHandler(this.lvCustomUploaderHeaders_SelectedIndexChanged); - // - // chCustomUploaderHeadersName - // - resources.ApplyResources(this.chCustomUploaderHeadersName, "chCustomUploaderHeadersName"); - // - // chCustomUploaderHeadersValue - // - resources.ApplyResources(this.chCustomUploaderHeadersValue, "chCustomUploaderHeadersValue"); - // // btnCustomUploaderExamples // resources.ApplyResources(this.btnCustomUploaderExamples, "btnCustomUploaderExamples"); @@ -1226,15 +1158,6 @@ private void InitializeComponent() this.btnCustomUploaderClearUploaders.UseVisualStyleBackColor = true; this.btnCustomUploaderClearUploaders.Click += new System.EventHandler(this.btnCustomUploaderClearUploaders_Click); // - // eiCustomUploaders - // - this.eiCustomUploaders.ExportIgnoreNull = true; - resources.ApplyResources(this.eiCustomUploaders, "eiCustomUploaders"); - this.eiCustomUploaders.Name = "eiCustomUploaders"; - this.eiCustomUploaders.ObjectType = null; - this.eiCustomUploaders.ExportRequested += new ShareX.HelpersLib.ExportImportControl.ExportEventHandler(this.eiCustomUploaders_ExportRequested); - this.eiCustomUploaders.ImportRequested += new ShareX.HelpersLib.ExportImportControl.ImportEventHandler(this.eiCustomUploaders_ImportRequested); - // // lbCustomUploaderList // this.lbCustomUploaderList.FormattingEnabled = true; @@ -1415,15 +1338,6 @@ private void InitializeComponent() resources.ApplyResources(this.lblBitlyDomain, "lblBitlyDomain"); this.lblBitlyDomain.Name = "lblBitlyDomain"; // - // oauth2Bitly - // - this.oauth2Bitly.IsRefreshable = false; - resources.ApplyResources(this.oauth2Bitly, "oauth2Bitly"); - this.oauth2Bitly.Name = "oauth2Bitly"; - this.oauth2Bitly.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2Bitly_OpenButtonClicked); - this.oauth2Bitly.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2Bitly_CompleteButtonClicked); - this.oauth2Bitly.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2Bitly_ClearButtonClicked); - // // tpGoogleURLShortener // this.tpGoogleURLShortener.Controls.Add(this.oauth2GoogleURLShortener); @@ -1432,22 +1346,6 @@ private void InitializeComponent() this.tpGoogleURLShortener.Name = "tpGoogleURLShortener"; this.tpGoogleURLShortener.UseVisualStyleBackColor = true; // - // oauth2GoogleURLShortener - // - resources.ApplyResources(this.oauth2GoogleURLShortener, "oauth2GoogleURLShortener"); - this.oauth2GoogleURLShortener.Name = "oauth2GoogleURLShortener"; - this.oauth2GoogleURLShortener.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2GoogleURLShortener_OpenButtonClicked); - this.oauth2GoogleURLShortener.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2GoogleURLShortener_CompleteButtonClicked); - this.oauth2GoogleURLShortener.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2GoogleURLShortener_ClearButtonClicked); - this.oauth2GoogleURLShortener.RefreshButtonClicked += new ShareX.UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oauth2GoogleURLShortener_RefreshButtonClicked); - // - // atcGoogleURLShortenerAccountType - // - resources.ApplyResources(this.atcGoogleURLShortenerAccountType, "atcGoogleURLShortenerAccountType"); - this.atcGoogleURLShortenerAccountType.Name = "atcGoogleURLShortenerAccountType"; - this.atcGoogleURLShortenerAccountType.SelectedAccountType = ShareX.UploadersLib.AccountType.Anonymous; - this.atcGoogleURLShortenerAccountType.AccountTypeChanged += new ShareX.UploadersLib.AccountTypeControl.AccountTypeChangedEventHandler(this.atcGoogleURLShortenerAccountType_AccountTypeChanged); - // // tpYourls // this.tpYourls.Controls.Add(this.txtYourlsPassword); @@ -1640,6 +1538,7 @@ private void InitializeComponent() this.tcFileUploaders.Controls.Add(this.tpLithiio); this.tcFileUploaders.Controls.Add(this.tpSharedFolder); this.tcFileUploaders.Controls.Add(this.tpEmail); + this.tcFileUploaders.Controls.Add(this.tpUplea); resources.ApplyResources(this.tcFileUploaders, "tcFileUploaders"); this.tcFileUploaders.Multiline = true; this.tcFileUploaders.Name = "tcFileUploaders"; @@ -1660,14 +1559,6 @@ private void InitializeComponent() this.tpFTP.Name = "tpFTP"; this.tpFTP.UseVisualStyleBackColor = true; // - // eiFTP - // - resources.ApplyResources(this.eiFTP, "eiFTP"); - this.eiFTP.Name = "eiFTP"; - this.eiFTP.ObjectType = null; - this.eiFTP.ExportRequested += new ShareX.HelpersLib.ExportImportControl.ExportEventHandler(this.eiFTP_ExportRequested); - this.eiFTP.ImportRequested += new ShareX.HelpersLib.ExportImportControl.ImportEventHandler(this.eiFTP_ImportRequested); - // // btnFtpClient // resources.ApplyResources(this.btnFtpClient, "btnFtpClient"); @@ -1714,11 +1605,6 @@ private void InitializeComponent() this.cboFtpText.Name = "cboFtpText"; this.cboFtpText.SelectedIndexChanged += new System.EventHandler(this.cboFtpText_SelectedIndexChanged); // - // ucFTPAccounts - // - resources.ApplyResources(this.ucFTPAccounts, "ucFTPAccounts"); - this.ucFTPAccounts.Name = "ucFTPAccounts"; - // // tpDropbox // this.tpDropbox.Controls.Add(this.oauth2Dropbox); @@ -1733,15 +1619,6 @@ private void InitializeComponent() this.tpDropbox.Name = "tpDropbox"; this.tpDropbox.UseVisualStyleBackColor = true; // - // oauth2Dropbox - // - this.oauth2Dropbox.IsRefreshable = false; - resources.ApplyResources(this.oauth2Dropbox, "oauth2Dropbox"); - this.oauth2Dropbox.Name = "oauth2Dropbox"; - this.oauth2Dropbox.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2Dropbox_OpenButtonClicked); - this.oauth2Dropbox.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2Dropbox_CompleteButtonClicked); - this.oauth2Dropbox.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2Dropbox_ClearButtonClicked); - // // cbDropboxURLType // this.cbDropboxURLType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; @@ -1815,15 +1692,6 @@ private void InitializeComponent() this.cbOneDriveCreateShareableLink.UseVisualStyleBackColor = true; this.cbOneDriveCreateShareableLink.CheckedChanged += new System.EventHandler(this.cbOneDriveCreateShareableLink_CheckedChanged); // - // oAuth2OneDrive - // - resources.ApplyResources(this.oAuth2OneDrive, "oAuth2OneDrive"); - this.oAuth2OneDrive.Name = "oAuth2OneDrive"; - this.oAuth2OneDrive.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oAuth2OneDrive_OpenButtonClicked); - this.oAuth2OneDrive.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oAuth2OneDrive_CompleteButtonClicked); - this.oAuth2OneDrive.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oAuth2OneDrive_ClearButtonClicked); - this.oAuth2OneDrive.RefreshButtonClicked += new ShareX.UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oAuth2OneDrive_RefreshButtonClicked); - // // tpGoogleDrive // this.tpGoogleDrive.Controls.Add(this.cbGoogleDriveDirectLink); @@ -1863,28 +1731,6 @@ private void InitializeComponent() resources.ApplyResources(this.lblGoogleDriveFolderID, "lblGoogleDriveFolderID"); this.lblGoogleDriveFolderID.Name = "lblGoogleDriveFolderID"; // - // lvGoogleDriveFoldersList - // - this.lvGoogleDriveFoldersList.AutoFillColumn = true; - this.lvGoogleDriveFoldersList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { - this.chGoogleDriveTitle, - this.chGoogleDriveDescription}); - this.lvGoogleDriveFoldersList.FullRowSelect = true; - resources.ApplyResources(this.lvGoogleDriveFoldersList, "lvGoogleDriveFoldersList"); - this.lvGoogleDriveFoldersList.MultiSelect = false; - this.lvGoogleDriveFoldersList.Name = "lvGoogleDriveFoldersList"; - this.lvGoogleDriveFoldersList.UseCompatibleStateImageBehavior = false; - this.lvGoogleDriveFoldersList.View = System.Windows.Forms.View.Details; - this.lvGoogleDriveFoldersList.SelectedIndexChanged += new System.EventHandler(this.lvGoogleDriveFoldersList_SelectedIndexChanged); - // - // chGoogleDriveTitle - // - resources.ApplyResources(this.chGoogleDriveTitle, "chGoogleDriveTitle"); - // - // chGoogleDriveDescription - // - resources.ApplyResources(this.chGoogleDriveDescription, "chGoogleDriveDescription"); - // // btnGoogleDriveRefreshFolders // resources.ApplyResources(this.btnGoogleDriveRefreshFolders, "btnGoogleDriveRefreshFolders"); @@ -1899,15 +1745,6 @@ private void InitializeComponent() this.cbGoogleDriveIsPublic.UseVisualStyleBackColor = true; this.cbGoogleDriveIsPublic.CheckedChanged += new System.EventHandler(this.cbGoogleDriveIsPublic_CheckedChanged); // - // oauth2GoogleDrive - // - resources.ApplyResources(this.oauth2GoogleDrive, "oauth2GoogleDrive"); - this.oauth2GoogleDrive.Name = "oauth2GoogleDrive"; - this.oauth2GoogleDrive.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2GoogleDrive_OpenButtonClicked); - this.oauth2GoogleDrive.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2GoogleDrive_CompleteButtonClicked); - this.oauth2GoogleDrive.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2GoogleDrive_ClearButtonClicked); - this.oauth2GoogleDrive.RefreshButtonClicked += new ShareX.UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oauth2GoogleDrive_RefreshButtonClicked); - // // tpPuush // this.tpPuush.Controls.Add(this.pbPuush); @@ -2011,23 +1848,6 @@ private void InitializeComponent() this.cbBoxShare.UseVisualStyleBackColor = true; this.cbBoxShare.CheckedChanged += new System.EventHandler(this.cbBoxShare_CheckedChanged); // - // lvBoxFolders - // - this.lvBoxFolders.AutoFillColumn = true; - this.lvBoxFolders.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { - this.chBoxFoldersName}); - this.lvBoxFolders.FullRowSelect = true; - resources.ApplyResources(this.lvBoxFolders, "lvBoxFolders"); - this.lvBoxFolders.Name = "lvBoxFolders"; - this.lvBoxFolders.UseCompatibleStateImageBehavior = false; - this.lvBoxFolders.View = System.Windows.Forms.View.Details; - this.lvBoxFolders.SelectedIndexChanged += new System.EventHandler(this.lvBoxFolders_SelectedIndexChanged); - this.lvBoxFolders.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.lvBoxFolders_MouseDoubleClick); - // - // chBoxFoldersName - // - resources.ApplyResources(this.chBoxFoldersName, "chBoxFoldersName"); - // // lblBoxFolderID // resources.ApplyResources(this.lblBoxFolderID, "lblBoxFolderID"); @@ -2040,15 +1860,6 @@ private void InitializeComponent() this.btnBoxRefreshFolders.UseVisualStyleBackColor = true; this.btnBoxRefreshFolders.Click += new System.EventHandler(this.btnBoxRefreshFolders_Click); // - // oauth2Box - // - resources.ApplyResources(this.oauth2Box, "oauth2Box"); - this.oauth2Box.Name = "oauth2Box"; - this.oauth2Box.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2Box_OpenButtonClicked); - this.oauth2Box.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2Box_CompleteButtonClicked); - this.oauth2Box.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2Box_ClearButtonClicked); - this.oauth2Box.RefreshButtonClicked += new ShareX.UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oauth2Box_RefreshButtonClicked); - // // tpAmazonS3 // this.tpAmazonS3.Controls.Add(this.txtAmazonS3CustomDomain); @@ -2472,13 +2283,6 @@ private void InitializeComponent() this.txtSendSpaceUserName.Name = "txtSendSpaceUserName"; this.txtSendSpaceUserName.TextChanged += new System.EventHandler(this.txtSendSpaceUserName_TextChanged); // - // atcSendSpaceAccountType - // - resources.ApplyResources(this.atcSendSpaceAccountType, "atcSendSpaceAccountType"); - this.atcSendSpaceAccountType.Name = "atcSendSpaceAccountType"; - this.atcSendSpaceAccountType.SelectedAccountType = ShareX.UploadersLib.AccountType.Anonymous; - this.atcSendSpaceAccountType.AccountTypeChanged += new ShareX.UploadersLib.AccountTypeControl.AccountTypeChangedEventHandler(this.atcSendSpaceAccountType_AccountTypeChanged); - // // tpGe_tt // this.tpGe_tt.Controls.Add(this.lblGe_ttStatus); @@ -2734,15 +2538,6 @@ private void InitializeComponent() resources.ApplyResources(this.lblJiraHost, "lblJiraHost"); this.lblJiraHost.Name = "lblJiraHost"; // - // oAuthJira - // - resources.ApplyResources(this.oAuthJira, "oAuthJira"); - this.oAuthJira.Name = "oAuthJira"; - this.oAuthJira.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oAuthJira_OpenButtonClicked); - this.oAuthJira.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oAuthJira_CompleteButtonClicked); - this.oAuthJira.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oAuthJira_ClearButtonClicked); - this.oAuthJira.RefreshButtonClicked += new ShareX.UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oAuthJira_RefreshButtonClicked); - // // tpLambda // this.tpLambda.Controls.Add(this.lblLambdaInfo); @@ -2939,35 +2734,6 @@ private void InitializeComponent() resources.ApplyResources(this.lblSeafileLibraryPassword, "lblSeafileLibraryPassword"); this.lblSeafileLibraryPassword.Name = "lblSeafileLibraryPassword"; // - // lvSeafileLibraries - // - this.lvSeafileLibraries.AllowColumnSort = true; - this.lvSeafileLibraries.AutoFillColumn = true; - this.lvSeafileLibraries.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { - this.colSeafileLibraryName, - this.colSeafileLibrarySize, - this.colSeafileLibraryEncrypted}); - this.lvSeafileLibraries.DisableDeselect = true; - this.lvSeafileLibraries.FullRowSelect = true; - this.lvSeafileLibraries.HideSelection = false; - resources.ApplyResources(this.lvSeafileLibraries, "lvSeafileLibraries"); - this.lvSeafileLibraries.Name = "lvSeafileLibraries"; - this.lvSeafileLibraries.UseCompatibleStateImageBehavior = false; - this.lvSeafileLibraries.View = System.Windows.Forms.View.Details; - this.lvSeafileLibraries.SelectedIndexChanged += new System.EventHandler(this.lvSeafileLibraries_SelectedIndexChanged); - // - // colSeafileLibraryName - // - resources.ApplyResources(this.colSeafileLibraryName, "colSeafileLibraryName"); - // - // colSeafileLibrarySize - // - resources.ApplyResources(this.colSeafileLibrarySize, "colSeafileLibrarySize"); - // - // colSeafileLibraryEncrypted - // - resources.ApplyResources(this.colSeafileLibraryEncrypted, "colSeafileLibraryEncrypted"); - // // btnSeafilePathValidate // resources.ApplyResources(this.btnSeafilePathValidate, "btnSeafilePathValidate"); @@ -3290,11 +3056,6 @@ private void InitializeComponent() this.cboSharedFolderImages.Name = "cboSharedFolderImages"; this.cboSharedFolderImages.SelectedIndexChanged += new System.EventHandler(this.cboSharedFolderImages_SelectedIndexChanged); // - // ucLocalhostAccounts - // - resources.ApplyResources(this.ucLocalhostAccounts, "ucLocalhostAccounts"); - this.ucLocalhostAccounts.Name = "ucLocalhostAccounts"; - // // tpEmail // this.tpEmail.Controls.Add(this.txtEmailAutomaticSendTo); @@ -3413,6 +3174,102 @@ private void InitializeComponent() this.txtEmailDefaultSubject.Name = "txtEmailDefaultSubject"; this.txtEmailDefaultSubject.TextChanged += new System.EventHandler(this.txtDefaultSubject_TextChanged); // + // tpUplea + // + this.tpUplea.Controls.Add(this.gbUpleaLoginCredentials); + this.tpUplea.Controls.Add(this.gbUpleaUserInformation); + resources.ApplyResources(this.tpUplea, "tpUplea"); + this.tpUplea.Name = "tpUplea"; + this.tpUplea.UseVisualStyleBackColor = true; + // + // gbUpleaLoginCredentials + // + this.gbUpleaLoginCredentials.Controls.Add(this.btnUpleaLogin); + this.gbUpleaLoginCredentials.Controls.Add(this.lblUpleaApiKey); + this.gbUpleaLoginCredentials.Controls.Add(this.txtUpleaApiKey); + this.gbUpleaLoginCredentials.Controls.Add(this.lblUpleaPassword); + this.gbUpleaLoginCredentials.Controls.Add(this.lblUpleaUsername); + this.gbUpleaLoginCredentials.Controls.Add(this.txtUpleaPassword); + this.gbUpleaLoginCredentials.Controls.Add(this.txtUpleaUsername); + resources.ApplyResources(this.gbUpleaLoginCredentials, "gbUpleaLoginCredentials"); + this.gbUpleaLoginCredentials.Name = "gbUpleaLoginCredentials"; + this.gbUpleaLoginCredentials.TabStop = false; + // + // btnUpleaLogin + // + resources.ApplyResources(this.btnUpleaLogin, "btnUpleaLogin"); + this.btnUpleaLogin.Name = "btnUpleaLogin"; + this.btnUpleaLogin.UseVisualStyleBackColor = true; + this.btnUpleaLogin.Click += new System.EventHandler(this.btnUpleaLogin_Click); + // + // lblUpleaApiKey + // + resources.ApplyResources(this.lblUpleaApiKey, "lblUpleaApiKey"); + this.lblUpleaApiKey.Name = "lblUpleaApiKey"; + // + // txtUpleaApiKey + // + resources.ApplyResources(this.txtUpleaApiKey, "txtUpleaApiKey"); + this.txtUpleaApiKey.Name = "txtUpleaApiKey"; + this.txtUpleaApiKey.TextChanged += new System.EventHandler(this.txtUpleaApiKey_TextChanged); + // + // lblUpleaPassword + // + resources.ApplyResources(this.lblUpleaPassword, "lblUpleaPassword"); + this.lblUpleaPassword.Name = "lblUpleaPassword"; + // + // lblUpleaUsername + // + resources.ApplyResources(this.lblUpleaUsername, "lblUpleaUsername"); + this.lblUpleaUsername.Name = "lblUpleaUsername"; + // + // txtUpleaPassword + // + resources.ApplyResources(this.txtUpleaPassword, "txtUpleaPassword"); + this.txtUpleaPassword.Name = "txtUpleaPassword"; + this.txtUpleaPassword.TextChanged += new System.EventHandler(this.txtUpleaPassword_TextChanged); + // + // txtUpleaUsername + // + resources.ApplyResources(this.txtUpleaUsername, "txtUpleaUsername"); + this.txtUpleaUsername.Name = "txtUpleaUsername"; + this.txtUpleaUsername.TextChanged += new System.EventHandler(this.txtUpleaUsername_TextChanged); + // + // gbUpleaUserInformation + // + this.gbUpleaUserInformation.Controls.Add(this.lblUpleaEmailAddress); + this.gbUpleaUserInformation.Controls.Add(this.cbUpleaInstantDownloadEnabled); + this.gbUpleaUserInformation.Controls.Add(this.cbUpleaIsPremium); + this.gbUpleaUserInformation.Controls.Add(this.txtUpleaEmailAddress); + resources.ApplyResources(this.gbUpleaUserInformation, "gbUpleaUserInformation"); + this.gbUpleaUserInformation.Name = "gbUpleaUserInformation"; + this.gbUpleaUserInformation.TabStop = false; + // + // lblUpleaEmailAddress + // + resources.ApplyResources(this.lblUpleaEmailAddress, "lblUpleaEmailAddress"); + this.lblUpleaEmailAddress.Name = "lblUpleaEmailAddress"; + // + // cbUpleaInstantDownloadEnabled + // + resources.ApplyResources(this.cbUpleaInstantDownloadEnabled, "cbUpleaInstantDownloadEnabled"); + this.cbUpleaInstantDownloadEnabled.Name = "cbUpleaInstantDownloadEnabled"; + this.cbUpleaInstantDownloadEnabled.UseVisualStyleBackColor = true; + this.cbUpleaInstantDownloadEnabled.CheckedChanged += new System.EventHandler(this.cbUpleaInstantDownloadEnabled_CheckedChanged); + // + // cbUpleaIsPremium + // + resources.ApplyResources(this.cbUpleaIsPremium, "cbUpleaIsPremium"); + this.cbUpleaIsPremium.Name = "cbUpleaIsPremium"; + this.cbUpleaIsPremium.UseVisualStyleBackColor = true; + this.cbUpleaIsPremium.CheckedChanged += new System.EventHandler(this.cbUpleaIsPremium_CheckedChanged); + // + // txtUpleaEmailAddress + // + resources.ApplyResources(this.txtUpleaEmailAddress, "txtUpleaEmailAddress"); + this.txtUpleaEmailAddress.Name = "txtUpleaEmailAddress"; + this.txtUpleaEmailAddress.TextChanged += new System.EventHandler(this.txtUpleaEmailAddress_TextChanged); + // // btnCopyShowFiles // resources.ApplyResources(this.btnCopyShowFiles, "btnCopyShowFiles"); @@ -3602,22 +3459,6 @@ private void InitializeComponent() this.cbGistPublishPublic.UseVisualStyleBackColor = true; this.cbGistPublishPublic.CheckedChanged += new System.EventHandler(this.chkGistPublishPublic_CheckedChanged); // - // oAuth2Gist - // - resources.ApplyResources(this.oAuth2Gist, "oAuth2Gist"); - this.oAuth2Gist.IsRefreshable = false; - this.oAuth2Gist.Name = "oAuth2Gist"; - this.oAuth2Gist.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oAuth2Gist_OpenButtonClicked); - this.oAuth2Gist.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oAuth2Gist_CompleteButtonClicked); - this.oAuth2Gist.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oAuth2Gist_ClearButtonClicked); - // - // atcGistAccountType - // - resources.ApplyResources(this.atcGistAccountType, "atcGistAccountType"); - this.atcGistAccountType.Name = "atcGistAccountType"; - this.atcGistAccountType.SelectedAccountType = ShareX.UploadersLib.AccountType.Anonymous; - this.atcGistAccountType.AccountTypeChanged += new ShareX.UploadersLib.AccountTypeControl.AccountTypeChangedEventHandler(this.atcGistAccountType_AccountTypeChanged); - // // tpUpaste // this.tpUpaste.Controls.Add(this.cbUpasteIsPublic); @@ -3777,22 +3618,6 @@ private void InitializeComponent() this.cbImgurDirectLink.UseVisualStyleBackColor = true; this.cbImgurDirectLink.CheckedChanged += new System.EventHandler(this.cbImgurDirectLink_CheckedChanged); // - // atcImgurAccountType - // - resources.ApplyResources(this.atcImgurAccountType, "atcImgurAccountType"); - this.atcImgurAccountType.Name = "atcImgurAccountType"; - this.atcImgurAccountType.SelectedAccountType = ShareX.UploadersLib.AccountType.Anonymous; - this.atcImgurAccountType.AccountTypeChanged += new ShareX.UploadersLib.AccountTypeControl.AccountTypeChangedEventHandler(this.atcImgurAccountType_AccountTypeChanged); - // - // oauth2Imgur - // - resources.ApplyResources(this.oauth2Imgur, "oauth2Imgur"); - this.oauth2Imgur.Name = "oauth2Imgur"; - this.oauth2Imgur.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2Imgur_OpenButtonClicked); - this.oauth2Imgur.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2Imgur_CompleteButtonClicked); - this.oauth2Imgur.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2Imgur_ClearButtonClicked); - this.oauth2Imgur.RefreshButtonClicked += new ShareX.UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oauth2Imgur_RefreshButtonClicked); - // // lvImgurAlbumList // this.lvImgurAlbumList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { @@ -3919,13 +3744,6 @@ private void InitializeComponent() this.tpTinyPic.Name = "tpTinyPic"; this.tpTinyPic.UseVisualStyleBackColor = true; // - // atcTinyPicAccountType - // - resources.ApplyResources(this.atcTinyPicAccountType, "atcTinyPicAccountType"); - this.atcTinyPicAccountType.Name = "atcTinyPicAccountType"; - this.atcTinyPicAccountType.SelectedAccountType = ShareX.UploadersLib.AccountType.Anonymous; - this.atcTinyPicAccountType.AccountTypeChanged += new ShareX.UploadersLib.AccountTypeControl.AccountTypeChangedEventHandler(this.atcTinyPicAccountType_AccountTypeChanged); - // // btnTinyPicLogin // resources.ApplyResources(this.btnTinyPicLogin, "btnTinyPicLogin"); @@ -4206,15 +4024,6 @@ private void InitializeComponent() this.btnPicasaRefreshAlbumList.UseVisualStyleBackColor = true; this.btnPicasaRefreshAlbumList.Click += new System.EventHandler(this.btnPicasaRefreshAlbumList_Click); // - // oauth2Picasa - // - resources.ApplyResources(this.oauth2Picasa, "oauth2Picasa"); - this.oauth2Picasa.Name = "oauth2Picasa"; - this.oauth2Picasa.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2Picasa_OpenButtonClicked); - this.oauth2Picasa.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2Picasa_CompleteButtonClicked); - this.oauth2Picasa.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2Picasa_ClearButtonClicked); - this.oauth2Picasa.RefreshButtonClicked += new ShareX.UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oauth2Picasa_RefreshButtonClicked); - // // tpChevereto // this.tpChevereto.Controls.Add(this.btnCheveretoTestAll); @@ -4363,6 +4172,311 @@ private void InitializeComponent() resources.ApplyResources(this.lblWidthHint, "lblWidthHint"); this.lblWidthHint.Name = "lblWidthHint"; // + // atcImgurAccountType + // + resources.ApplyResources(this.atcImgurAccountType, "atcImgurAccountType"); + this.atcImgurAccountType.Name = "atcImgurAccountType"; + this.atcImgurAccountType.SelectedAccountType = ShareX.UploadersLib.AccountType.Anonymous; + this.atcImgurAccountType.AccountTypeChanged += new ShareX.UploadersLib.AccountTypeControl.AccountTypeChangedEventHandler(this.atcImgurAccountType_AccountTypeChanged); + // + // oauth2Imgur + // + resources.ApplyResources(this.oauth2Imgur, "oauth2Imgur"); + this.oauth2Imgur.Name = "oauth2Imgur"; + this.oauth2Imgur.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2Imgur_OpenButtonClicked); + this.oauth2Imgur.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2Imgur_CompleteButtonClicked); + this.oauth2Imgur.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2Imgur_ClearButtonClicked); + this.oauth2Imgur.RefreshButtonClicked += new ShareX.UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oauth2Imgur_RefreshButtonClicked); + // + // atcTinyPicAccountType + // + resources.ApplyResources(this.atcTinyPicAccountType, "atcTinyPicAccountType"); + this.atcTinyPicAccountType.Name = "atcTinyPicAccountType"; + this.atcTinyPicAccountType.SelectedAccountType = ShareX.UploadersLib.AccountType.Anonymous; + this.atcTinyPicAccountType.AccountTypeChanged += new ShareX.UploadersLib.AccountTypeControl.AccountTypeChangedEventHandler(this.atcTinyPicAccountType_AccountTypeChanged); + // + // oauth2Picasa + // + resources.ApplyResources(this.oauth2Picasa, "oauth2Picasa"); + this.oauth2Picasa.Name = "oauth2Picasa"; + this.oauth2Picasa.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2Picasa_OpenButtonClicked); + this.oauth2Picasa.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2Picasa_CompleteButtonClicked); + this.oauth2Picasa.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2Picasa_ClearButtonClicked); + this.oauth2Picasa.RefreshButtonClicked += new ShareX.UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oauth2Picasa_RefreshButtonClicked); + // + // oAuth2Gist + // + resources.ApplyResources(this.oAuth2Gist, "oAuth2Gist"); + this.oAuth2Gist.IsRefreshable = false; + this.oAuth2Gist.Name = "oAuth2Gist"; + this.oAuth2Gist.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oAuth2Gist_OpenButtonClicked); + this.oAuth2Gist.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oAuth2Gist_CompleteButtonClicked); + this.oAuth2Gist.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oAuth2Gist_ClearButtonClicked); + // + // atcGistAccountType + // + resources.ApplyResources(this.atcGistAccountType, "atcGistAccountType"); + this.atcGistAccountType.Name = "atcGistAccountType"; + this.atcGistAccountType.SelectedAccountType = ShareX.UploadersLib.AccountType.Anonymous; + this.atcGistAccountType.AccountTypeChanged += new ShareX.UploadersLib.AccountTypeControl.AccountTypeChangedEventHandler(this.atcGistAccountType_AccountTypeChanged); + // + // eiFTP + // + resources.ApplyResources(this.eiFTP, "eiFTP"); + this.eiFTP.Name = "eiFTP"; + this.eiFTP.ObjectType = null; + this.eiFTP.ExportRequested += new ShareX.HelpersLib.ExportImportControl.ExportEventHandler(this.eiFTP_ExportRequested); + this.eiFTP.ImportRequested += new ShareX.HelpersLib.ExportImportControl.ImportEventHandler(this.eiFTP_ImportRequested); + // + // ucFTPAccounts + // + resources.ApplyResources(this.ucFTPAccounts, "ucFTPAccounts"); + this.ucFTPAccounts.Name = "ucFTPAccounts"; + // + // oauth2Dropbox + // + this.oauth2Dropbox.IsRefreshable = false; + resources.ApplyResources(this.oauth2Dropbox, "oauth2Dropbox"); + this.oauth2Dropbox.Name = "oauth2Dropbox"; + this.oauth2Dropbox.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2Dropbox_OpenButtonClicked); + this.oauth2Dropbox.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2Dropbox_CompleteButtonClicked); + this.oauth2Dropbox.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2Dropbox_ClearButtonClicked); + // + // oAuth2OneDrive + // + resources.ApplyResources(this.oAuth2OneDrive, "oAuth2OneDrive"); + this.oAuth2OneDrive.Name = "oAuth2OneDrive"; + this.oAuth2OneDrive.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oAuth2OneDrive_OpenButtonClicked); + this.oAuth2OneDrive.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oAuth2OneDrive_CompleteButtonClicked); + this.oAuth2OneDrive.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oAuth2OneDrive_ClearButtonClicked); + this.oAuth2OneDrive.RefreshButtonClicked += new ShareX.UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oAuth2OneDrive_RefreshButtonClicked); + // + // lvGoogleDriveFoldersList + // + this.lvGoogleDriveFoldersList.AutoFillColumn = true; + this.lvGoogleDriveFoldersList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { + this.chGoogleDriveTitle, + this.chGoogleDriveDescription}); + this.lvGoogleDriveFoldersList.FullRowSelect = true; + resources.ApplyResources(this.lvGoogleDriveFoldersList, "lvGoogleDriveFoldersList"); + this.lvGoogleDriveFoldersList.MultiSelect = false; + this.lvGoogleDriveFoldersList.Name = "lvGoogleDriveFoldersList"; + this.lvGoogleDriveFoldersList.UseCompatibleStateImageBehavior = false; + this.lvGoogleDriveFoldersList.View = System.Windows.Forms.View.Details; + this.lvGoogleDriveFoldersList.SelectedIndexChanged += new System.EventHandler(this.lvGoogleDriveFoldersList_SelectedIndexChanged); + // + // chGoogleDriveTitle + // + resources.ApplyResources(this.chGoogleDriveTitle, "chGoogleDriveTitle"); + // + // chGoogleDriveDescription + // + resources.ApplyResources(this.chGoogleDriveDescription, "chGoogleDriveDescription"); + // + // oauth2GoogleDrive + // + resources.ApplyResources(this.oauth2GoogleDrive, "oauth2GoogleDrive"); + this.oauth2GoogleDrive.Name = "oauth2GoogleDrive"; + this.oauth2GoogleDrive.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2GoogleDrive_OpenButtonClicked); + this.oauth2GoogleDrive.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2GoogleDrive_CompleteButtonClicked); + this.oauth2GoogleDrive.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2GoogleDrive_ClearButtonClicked); + this.oauth2GoogleDrive.RefreshButtonClicked += new ShareX.UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oauth2GoogleDrive_RefreshButtonClicked); + // + // lvBoxFolders + // + this.lvBoxFolders.AutoFillColumn = true; + this.lvBoxFolders.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { + this.chBoxFoldersName}); + this.lvBoxFolders.FullRowSelect = true; + resources.ApplyResources(this.lvBoxFolders, "lvBoxFolders"); + this.lvBoxFolders.Name = "lvBoxFolders"; + this.lvBoxFolders.UseCompatibleStateImageBehavior = false; + this.lvBoxFolders.View = System.Windows.Forms.View.Details; + this.lvBoxFolders.SelectedIndexChanged += new System.EventHandler(this.lvBoxFolders_SelectedIndexChanged); + this.lvBoxFolders.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.lvBoxFolders_MouseDoubleClick); + // + // chBoxFoldersName + // + resources.ApplyResources(this.chBoxFoldersName, "chBoxFoldersName"); + // + // oauth2Box + // + resources.ApplyResources(this.oauth2Box, "oauth2Box"); + this.oauth2Box.Name = "oauth2Box"; + this.oauth2Box.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2Box_OpenButtonClicked); + this.oauth2Box.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2Box_CompleteButtonClicked); + this.oauth2Box.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2Box_ClearButtonClicked); + this.oauth2Box.RefreshButtonClicked += new ShareX.UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oauth2Box_RefreshButtonClicked); + // + // atcSendSpaceAccountType + // + resources.ApplyResources(this.atcSendSpaceAccountType, "atcSendSpaceAccountType"); + this.atcSendSpaceAccountType.Name = "atcSendSpaceAccountType"; + this.atcSendSpaceAccountType.SelectedAccountType = ShareX.UploadersLib.AccountType.Anonymous; + this.atcSendSpaceAccountType.AccountTypeChanged += new ShareX.UploadersLib.AccountTypeControl.AccountTypeChangedEventHandler(this.atcSendSpaceAccountType_AccountTypeChanged); + // + // oAuthJira + // + resources.ApplyResources(this.oAuthJira, "oAuthJira"); + this.oAuthJira.Name = "oAuthJira"; + this.oAuthJira.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oAuthJira_OpenButtonClicked); + this.oAuthJira.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oAuthJira_CompleteButtonClicked); + this.oAuthJira.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oAuthJira_ClearButtonClicked); + this.oAuthJira.RefreshButtonClicked += new ShareX.UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oAuthJira_RefreshButtonClicked); + // + // oauthTwitter + // + resources.ApplyResources(this.oauthTwitter, "oauthTwitter"); + this.oauthTwitter.IsRefreshable = false; + this.oauthTwitter.Name = "oauthTwitter"; + this.oauthTwitter.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauthTwitter_OpenButtonClicked); + this.oauthTwitter.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauthTwitter_CompleteButtonClicked); + this.oauthTwitter.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauthTwitter_ClearButtonClicked); + // + // lvCustomUploaderRegexps + // + this.lvCustomUploaderRegexps.AllowDrop = true; + this.lvCustomUploaderRegexps.AllowItemDrag = true; + this.lvCustomUploaderRegexps.AutoFillColumn = true; + this.lvCustomUploaderRegexps.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { + this.lvRegexpsColumn}); + this.lvCustomUploaderRegexps.FullRowSelect = true; + this.lvCustomUploaderRegexps.GridLines = true; + this.lvCustomUploaderRegexps.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None; + this.lvCustomUploaderRegexps.HideSelection = false; + resources.ApplyResources(this.lvCustomUploaderRegexps, "lvCustomUploaderRegexps"); + this.lvCustomUploaderRegexps.MultiSelect = false; + this.lvCustomUploaderRegexps.Name = "lvCustomUploaderRegexps"; + this.lvCustomUploaderRegexps.UseCompatibleStateImageBehavior = false; + this.lvCustomUploaderRegexps.View = System.Windows.Forms.View.Details; + this.lvCustomUploaderRegexps.SelectedIndexChanged += new System.EventHandler(this.lvCustomUploaderRegexps_SelectedIndexChanged); + // + // lvRegexpsColumn + // + resources.ApplyResources(this.lvRegexpsColumn, "lvRegexpsColumn"); + // + // lvCustomUploaderArguments + // + this.lvCustomUploaderArguments.AllowDrop = true; + this.lvCustomUploaderArguments.AllowItemDrag = true; + this.lvCustomUploaderArguments.AutoFillColumn = true; + this.lvCustomUploaderArguments.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { + this.chCustomUploaderArgumentsName, + this.chCustomUploaderArgumentsValue}); + this.lvCustomUploaderArguments.FullRowSelect = true; + this.lvCustomUploaderArguments.GridLines = true; + this.lvCustomUploaderArguments.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable; + this.lvCustomUploaderArguments.HideSelection = false; + resources.ApplyResources(this.lvCustomUploaderArguments, "lvCustomUploaderArguments"); + this.lvCustomUploaderArguments.MultiSelect = false; + this.lvCustomUploaderArguments.Name = "lvCustomUploaderArguments"; + this.lvCustomUploaderArguments.UseCompatibleStateImageBehavior = false; + this.lvCustomUploaderArguments.View = System.Windows.Forms.View.Details; + this.lvCustomUploaderArguments.SelectedIndexChanged += new System.EventHandler(this.lvCustomUploaderArguments_SelectedIndexChanged); + // + // chCustomUploaderArgumentsName + // + resources.ApplyResources(this.chCustomUploaderArgumentsName, "chCustomUploaderArgumentsName"); + // + // chCustomUploaderArgumentsValue + // + resources.ApplyResources(this.chCustomUploaderArgumentsValue, "chCustomUploaderArgumentsValue"); + // + // lvCustomUploaderHeaders + // + this.lvCustomUploaderHeaders.AllowDrop = true; + this.lvCustomUploaderHeaders.AllowItemDrag = true; + this.lvCustomUploaderHeaders.AutoFillColumn = true; + this.lvCustomUploaderHeaders.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { + this.chCustomUploaderHeadersName, + this.chCustomUploaderHeadersValue}); + this.lvCustomUploaderHeaders.FullRowSelect = true; + this.lvCustomUploaderHeaders.GridLines = true; + this.lvCustomUploaderHeaders.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable; + this.lvCustomUploaderHeaders.HideSelection = false; + resources.ApplyResources(this.lvCustomUploaderHeaders, "lvCustomUploaderHeaders"); + this.lvCustomUploaderHeaders.MultiSelect = false; + this.lvCustomUploaderHeaders.Name = "lvCustomUploaderHeaders"; + this.lvCustomUploaderHeaders.UseCompatibleStateImageBehavior = false; + this.lvCustomUploaderHeaders.View = System.Windows.Forms.View.Details; + this.lvCustomUploaderHeaders.SelectedIndexChanged += new System.EventHandler(this.lvCustomUploaderHeaders_SelectedIndexChanged); + // + // chCustomUploaderHeadersName + // + resources.ApplyResources(this.chCustomUploaderHeadersName, "chCustomUploaderHeadersName"); + // + // chCustomUploaderHeadersValue + // + resources.ApplyResources(this.chCustomUploaderHeadersValue, "chCustomUploaderHeadersValue"); + // + // eiCustomUploaders + // + this.eiCustomUploaders.ExportIgnoreNull = true; + resources.ApplyResources(this.eiCustomUploaders, "eiCustomUploaders"); + this.eiCustomUploaders.Name = "eiCustomUploaders"; + this.eiCustomUploaders.ObjectType = null; + this.eiCustomUploaders.ExportRequested += new ShareX.HelpersLib.ExportImportControl.ExportEventHandler(this.eiCustomUploaders_ExportRequested); + this.eiCustomUploaders.ImportRequested += new ShareX.HelpersLib.ExportImportControl.ImportEventHandler(this.eiCustomUploaders_ImportRequested); + // + // oauth2Bitly + // + this.oauth2Bitly.IsRefreshable = false; + resources.ApplyResources(this.oauth2Bitly, "oauth2Bitly"); + this.oauth2Bitly.Name = "oauth2Bitly"; + this.oauth2Bitly.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2Bitly_OpenButtonClicked); + this.oauth2Bitly.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2Bitly_CompleteButtonClicked); + this.oauth2Bitly.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2Bitly_ClearButtonClicked); + // + // oauth2GoogleURLShortener + // + resources.ApplyResources(this.oauth2GoogleURLShortener, "oauth2GoogleURLShortener"); + this.oauth2GoogleURLShortener.Name = "oauth2GoogleURLShortener"; + this.oauth2GoogleURLShortener.OpenButtonClicked += new ShareX.UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2GoogleURLShortener_OpenButtonClicked); + this.oauth2GoogleURLShortener.CompleteButtonClicked += new ShareX.UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2GoogleURLShortener_CompleteButtonClicked); + this.oauth2GoogleURLShortener.ClearButtonClicked += new ShareX.UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2GoogleURLShortener_ClearButtonClicked); + this.oauth2GoogleURLShortener.RefreshButtonClicked += new ShareX.UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oauth2GoogleURLShortener_RefreshButtonClicked); + // + // atcGoogleURLShortenerAccountType + // + resources.ApplyResources(this.atcGoogleURLShortenerAccountType, "atcGoogleURLShortenerAccountType"); + this.atcGoogleURLShortenerAccountType.Name = "atcGoogleURLShortenerAccountType"; + this.atcGoogleURLShortenerAccountType.SelectedAccountType = ShareX.UploadersLib.AccountType.Anonymous; + this.atcGoogleURLShortenerAccountType.AccountTypeChanged += new ShareX.UploadersLib.AccountTypeControl.AccountTypeChangedEventHandler(this.atcGoogleURLShortenerAccountType_AccountTypeChanged); + // + // lvSeafileLibraries + // + this.lvSeafileLibraries.AllowColumnSort = true; + this.lvSeafileLibraries.AutoFillColumn = true; + this.lvSeafileLibraries.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { + this.colSeafileLibraryName, + this.colSeafileLibrarySize, + this.colSeafileLibraryEncrypted}); + this.lvSeafileLibraries.DisableDeselect = true; + this.lvSeafileLibraries.FullRowSelect = true; + this.lvSeafileLibraries.HideSelection = false; + resources.ApplyResources(this.lvSeafileLibraries, "lvSeafileLibraries"); + this.lvSeafileLibraries.Name = "lvSeafileLibraries"; + this.lvSeafileLibraries.UseCompatibleStateImageBehavior = false; + this.lvSeafileLibraries.View = System.Windows.Forms.View.Details; + this.lvSeafileLibraries.SelectedIndexChanged += new System.EventHandler(this.lvSeafileLibraries_SelectedIndexChanged); + // + // colSeafileLibraryName + // + resources.ApplyResources(this.colSeafileLibraryName, "colSeafileLibraryName"); + // + // colSeafileLibrarySize + // + resources.ApplyResources(this.colSeafileLibrarySize, "colSeafileLibrarySize"); + // + // colSeafileLibraryEncrypted + // + resources.ApplyResources(this.colSeafileLibraryEncrypted, "colSeafileLibraryEncrypted"); + // + // ucLocalhostAccounts + // + resources.ApplyResources(this.ucLocalhostAccounts, "ucLocalhostAccounts"); + this.ucLocalhostAccounts.Name = "ucLocalhostAccounts"; + // // ttlvMain // resources.ApplyResources(this.ttlvMain, "ttlvMain"); @@ -4488,6 +4602,11 @@ private void InitializeComponent() this.tpEmail.ResumeLayout(false); this.tpEmail.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.nudEmailSmtpPort)).EndInit(); + this.tpUplea.ResumeLayout(false); + this.gbUpleaLoginCredentials.ResumeLayout(false); + this.gbUpleaLoginCredentials.PerformLayout(); + this.gbUpleaUserInformation.ResumeLayout(false); + this.gbUpleaUserInformation.PerformLayout(); this.tpTextUploaders.ResumeLayout(false); this.tcTextUploaders.ResumeLayout(false); this.tpPastebin.ResumeLayout(false); @@ -5048,5 +5167,19 @@ private void InitializeComponent() private System.Windows.Forms.PictureBox pbPuush; private System.Windows.Forms.CheckBox cbHastebinUseFileExtension; private System.Windows.Forms.Label lblOwnCloudHostExample; + private System.Windows.Forms.GroupBox gbUpleaLoginCredentials; + private System.Windows.Forms.Button btnUpleaLogin; + private System.Windows.Forms.Label lblUpleaApiKey; + private System.Windows.Forms.TextBox txtUpleaApiKey; + private System.Windows.Forms.Label lblUpleaPassword; + private System.Windows.Forms.Label lblUpleaUsername; + private System.Windows.Forms.TextBox txtUpleaPassword; + private System.Windows.Forms.TextBox txtUpleaUsername; + private System.Windows.Forms.GroupBox gbUpleaUserInformation; + private System.Windows.Forms.Label lblUpleaEmailAddress; + private System.Windows.Forms.CheckBox cbUpleaInstantDownloadEnabled; + private System.Windows.Forms.CheckBox cbUpleaIsPremium; + private System.Windows.Forms.TextBox txtUpleaEmailAddress; + public System.Windows.Forms.TabPage tpUplea; } } diff --git a/ShareX.UploadersLib/Forms/UploadersConfigForm.cs b/ShareX.UploadersLib/Forms/UploadersConfigForm.cs index 0393704c5..93385bcee 100644 --- a/ShareX.UploadersLib/Forms/UploadersConfigForm.cs +++ b/ShareX.UploadersLib/Forms/UploadersConfigForm.cs @@ -578,6 +578,14 @@ public void LoadSettings() txtStreamableUsername.Enabled = txtStreamablePassword.Enabled = !Config.StreamableAnonymous; cbStreamableUseDirectURL.Checked = Config.StreamableUseDirectURL; + // Uplea + txtUpleaApiKey.Text = Config.UpleaApiKey; + txtUpleaUsername.Text = Config.UpleaUsername; + txtUpleaPassword.Text = Config.UpleaPassword; + txtUpleaEmailAddress.Text = Config.UpleaEmailAddress; + cbUpleaInstantDownloadEnabled.Checked = Config.UpleaInstantDownloadEnabled; + cbUpleaIsPremium.Checked = Config.UpleaIsPremiumMember; + #endregion File uploaders #region URL shorteners @@ -2546,6 +2554,80 @@ private void cbStreamableUseDirectURL_CheckedChanged(object sender, EventArgs e) #endregion Streamable + #region Uplea + private void btnUpleaLogin_Click(object sender, EventArgs e) + { + btnUpleaLogin.Enabled = false; + + Uplea uplea = new Uplea(); + + txtUpleaApiKey.Text = string.Empty; + cbUpleaIsPremium.Checked = false; + cbUpleaInstantDownloadEnabled.Checked = false; + + try + { + string apiKey = uplea.GetApiKey(txtUpleaUsername.Text, txtUpleaPassword.Text); + + txtUpleaApiKey.Text = apiKey; + + if (!string.IsNullOrEmpty(apiKey)) + { + var upleaUserInformation = uplea.GetUserInformation(apiKey); + txtUpleaEmailAddress.Text = upleaUserInformation.Result.EmailAddress; + cbUpleaIsPremium.Checked = upleaUserInformation.Result.IsPremiumMember; + cbUpleaInstantDownloadEnabled.Checked = upleaUserInformation.Result.InstantDownloadEnabled; + } + else + { + MessageBox.Show("Unable to retrieve API key and user details from Uplea. Please check your user credentials and try again.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + finally + { + btnUpleaLogin.Enabled = true; + } + + } + + private void txtUpleaUsername_TextChanged(object sender, EventArgs e) + { + Config.UpleaUsername = (sender as TextBox).Text; + } + + private void txtUpleaPassword_TextChanged(object sender, EventArgs e) + { + Config.UpleaPassword = (sender as TextBox).Text; + } + + private void txtUpleaApiKey_TextChanged(object sender, EventArgs e) + { + Config.UpleaApiKey = (sender as TextBox).Text; + + if (string.IsNullOrEmpty(txtUpleaApiKey.Text)) + { + txtUpleaEmailAddress.Text = string.Empty; + cbUpleaIsPremium.Checked = false; + cbUpleaInstantDownloadEnabled.Checked = false; + } + } + + private void txtUpleaEmailAddress_TextChanged(object sender, EventArgs e) + { + Config.UpleaEmailAddress = (sender as TextBox).Text; + } + + private void cbUpleaIsPremium_CheckedChanged(object sender, EventArgs e) + { + Config.UpleaIsPremiumMember = (sender as CheckBox).Checked; + } + + private void cbUpleaInstantDownloadEnabled_CheckedChanged(object sender, EventArgs e) + { + Config.UpleaInstantDownloadEnabled = (sender as CheckBox).Checked; + } + #endregion + #endregion File Uploaders #region URL Shorteners diff --git a/ShareX.UploadersLib/Forms/UploadersConfigForm.resx b/ShareX.UploadersLib/Forms/UploadersConfigForm.resx index 225d0a184..0dc6d36fb 100644 --- a/ShareX.UploadersLib/Forms/UploadersConfigForm.resx +++ b/ShareX.UploadersLib/Forms/UploadersConfigForm.resx @@ -13483,4 +13483,385 @@ Using an encrypted library disables sharing. System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + btnUpleaLogin + + + gbUpleaLoginCredentials + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 0 + + + cbUpleaInstantDownloadEnabled + + + gbUpleaUserInformation + + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 1 + + + cbUpleaIsPremium + + + gbUpleaUserInformation + + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 2 + + + gbUpleaLoginCredentials + + + tpUplea + + + System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 0 + + + gbUpleaUserInformation + + + tpUplea + + + System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 1 + + + lblUpleaApiKey + + + gbUpleaLoginCredentials + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 1 + + + lblUpleaPassword + + + gbUpleaLoginCredentials + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 3 + + + lblUpleaUsername + + + gbUpleaLoginCredentials + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 4 + + + tpUplea + + + tcFileUploaders + + + System.Windows.Forms.TabPage, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 24 + + + txtUpleaApiKey + + + gbUpleaLoginCredentials + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 2 + + + txtUpleaEmailAddress + + + gbUpleaUserInformation + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 3 + + + txtUpleaPassword + + + gbUpleaLoginCredentials + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 5 + + + txtUpleaUsername + + + gbUpleaLoginCredentials + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 6 + + + NoControl + + + 81, 104 + + + 75, 23 + + + 13 + + + Login + + + True + + + False + + + NoControl + + + 102, 68 + + + 151, 17 + + + 13 + + + Instant Download Enabled + + + True + + + False + + + NoControl + + + 102, 45 + + + 118, 17 + + + 12 + + + Is Premium Member + + + 16, 14 + + + 428, 145 + + + 12 + + + Login Credentials + + + 450, 14 + + + 350, 107 + + + 11 + + + User Information + + + True + + + NoControl + + + 24, 81 + + + 51, 13 + + + 12 + + + API Key: + + + True + + + NoControl + + + 19, 55 + + + 56, 13 + + + 10 + + + Password: + + + True + + + NoControl + + + 17, 29 + + + 58, 13 + + + 9 + + + Username: + + + False + + + 81, 78 + + + 307, 20 + + + 11 + + + False + + + 102, 19 + + + 242, 20 + + + 11 + + + 81, 52 + + + * + + + 195, 20 + + + 8 + + + 81, 26 + + + 195, 20 + + + 7 + + + 4, 40 + + + 3, 3, 3, 3 + + + 972, 475 + + + 27 + + + Uplea + + + True + + + NoControl + + + 17, 22 + + + 79, 13 + + + 14 + + + Email Address: + + + lblUpleaEmailAddress + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + gbUpleaUserInformation + + + 0 + \ No newline at end of file diff --git a/ShareX.UploadersLib/Properties/Resources.Designer.cs b/ShareX.UploadersLib/Properties/Resources.Designer.cs index a03659126..126bbafba 100644 --- a/ShareX.UploadersLib/Properties/Resources.Designer.cs +++ b/ShareX.UploadersLib/Properties/Resources.Designer.cs @@ -637,6 +637,16 @@ internal static System.Drawing.Icon Upaste { } } + /// + /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon). + /// + internal static System.Drawing.Icon Uplea { + get { + object obj = ResourceManager.GetObject("Uplea", resourceCulture); + return ((System.Drawing.Icon)(obj)); + } + } + /// /// Looks up a localized string similar to Box refresh folders list failed. /// diff --git a/ShareX.UploadersLib/Properties/Resources.resx b/ShareX.UploadersLib/Properties/Resources.resx index b6864a9ec..1753b3834 100644 --- a/ShareX.UploadersLib/Properties/Resources.resx +++ b/ShareX.UploadersLib/Properties/Resources.resx @@ -392,4 +392,7 @@ Created folders: ..\Resources\server-network.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Favicons\Uplea.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + \ No newline at end of file diff --git a/ShareX.UploadersLib/ShareX.UploadersLib.csproj b/ShareX.UploadersLib/ShareX.UploadersLib.csproj index e66be08a5..44e8d5ad3 100644 --- a/ShareX.UploadersLib/ShareX.UploadersLib.csproj +++ b/ShareX.UploadersLib/ShareX.UploadersLib.csproj @@ -150,6 +150,7 @@ + Form @@ -880,6 +881,9 @@ + + + diff --git a/ShareX.UploadersLib/UploadersConfig.cs b/ShareX.UploadersLib/UploadersConfig.cs index 87c1c3126..53f28ada8 100644 --- a/ShareX.UploadersLib/UploadersConfig.cs +++ b/ShareX.UploadersLib/UploadersConfig.cs @@ -286,6 +286,15 @@ public class UploadersConfig : SettingsBase public string StreamablePassword = ""; public bool StreamableUseDirectURL = false; + // Uplea + + public string UpleaApiKey = string.Empty; + public string UpleaUsername = string.Empty; + public string UpleaPassword = string.Empty; + public string UpleaEmailAddress = string.Empty; + public bool UpleaIsPremiumMember = false; + public bool UpleaInstantDownloadEnabled = false; + #endregion File uploaders #region URL shorteners