mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-04 04:06:05 +13:00
Imgur non direct link support
This commit is contained in:
parent
fabf2997f6
commit
de4a040d33
5 changed files with 288 additions and 246 deletions
|
@ -654,14 +654,6 @@ public UploadResult UploadImage(Stream stream, string fileName)
|
||||||
|
|
||||||
switch (Info.TaskSettings.ImageDestination)
|
switch (Info.TaskSettings.ImageDestination)
|
||||||
{
|
{
|
||||||
case ImageDestination.ImageShack:
|
|
||||||
Program.UploadersConfig.ImageShackSettings.ThumbnailWidth = Info.TaskSettings.AdvancedSettings.ThumbnailPreferredWidth;
|
|
||||||
Program.UploadersConfig.ImageShackSettings.ThumbnailHeight = Info.TaskSettings.AdvancedSettings.ThumbnailPreferredHeight;
|
|
||||||
imageUploader = new ImageShackUploader(APIKeys.ImageShackKey, Program.UploadersConfig.ImageShackSettings);
|
|
||||||
break;
|
|
||||||
case ImageDestination.TinyPic:
|
|
||||||
imageUploader = new TinyPicUploader(APIKeys.TinyPicID, APIKeys.TinyPicKey, Program.UploadersConfig.TinyPicAccountType, Program.UploadersConfig.TinyPicRegistrationCode);
|
|
||||||
break;
|
|
||||||
case ImageDestination.Imgur:
|
case ImageDestination.Imgur:
|
||||||
if (Program.UploadersConfig.ImgurOAuth2Info == null)
|
if (Program.UploadersConfig.ImgurOAuth2Info == null)
|
||||||
{
|
{
|
||||||
|
@ -671,10 +663,19 @@ public UploadResult UploadImage(Stream stream, string fileName)
|
||||||
imageUploader = new Imgur_v3(Program.UploadersConfig.ImgurOAuth2Info)
|
imageUploader = new Imgur_v3(Program.UploadersConfig.ImgurOAuth2Info)
|
||||||
{
|
{
|
||||||
UploadMethod = Program.UploadersConfig.ImgurAccountType,
|
UploadMethod = Program.UploadersConfig.ImgurAccountType,
|
||||||
|
DirectLink = Program.UploadersConfig.ImgurDirectLink,
|
||||||
ThumbnailType = Program.UploadersConfig.ImgurThumbnailType,
|
ThumbnailType = Program.UploadersConfig.ImgurThumbnailType,
|
||||||
UploadAlbumID = Program.UploadersConfig.ImgurAlbumID
|
UploadAlbumID = Program.UploadersConfig.ImgurAlbumID
|
||||||
};
|
};
|
||||||
break;
|
break;
|
||||||
|
case ImageDestination.ImageShack:
|
||||||
|
Program.UploadersConfig.ImageShackSettings.ThumbnailWidth = Info.TaskSettings.AdvancedSettings.ThumbnailPreferredWidth;
|
||||||
|
Program.UploadersConfig.ImageShackSettings.ThumbnailHeight = Info.TaskSettings.AdvancedSettings.ThumbnailPreferredHeight;
|
||||||
|
imageUploader = new ImageShackUploader(APIKeys.ImageShackKey, Program.UploadersConfig.ImageShackSettings);
|
||||||
|
break;
|
||||||
|
case ImageDestination.TinyPic:
|
||||||
|
imageUploader = new TinyPicUploader(APIKeys.TinyPicID, APIKeys.TinyPicKey, Program.UploadersConfig.TinyPicAccountType, Program.UploadersConfig.TinyPicRegistrationCode);
|
||||||
|
break;
|
||||||
case ImageDestination.Flickr:
|
case ImageDestination.Flickr:
|
||||||
imageUploader = new FlickrUploader(APIKeys.FlickrKey, APIKeys.FlickrSecret, Program.UploadersConfig.FlickrAuthInfo, Program.UploadersConfig.FlickrSettings);
|
imageUploader = new FlickrUploader(APIKeys.FlickrKey, APIKeys.FlickrSecret, Program.UploadersConfig.FlickrAuthInfo, Program.UploadersConfig.FlickrSettings);
|
||||||
break;
|
break;
|
||||||
|
|
448
UploadersLib/Forms/UploadersConfigForm.Designer.cs
generated
448
UploadersLib/Forms/UploadersConfigForm.Designer.cs
generated
|
@ -94,12 +94,16 @@ private void InitializeComponent()
|
||||||
this.txtCustomUploaderArgName = new System.Windows.Forms.TextBox();
|
this.txtCustomUploaderArgName = new System.Windows.Forms.TextBox();
|
||||||
this.tpTwitter = new System.Windows.Forms.TabPage();
|
this.tpTwitter = new System.Windows.Forms.TabPage();
|
||||||
this.btnTwitterLogin = new System.Windows.Forms.Button();
|
this.btnTwitterLogin = new System.Windows.Forms.Button();
|
||||||
|
this.ucTwitterAccounts = new UploadersLib.AccountsControl();
|
||||||
this.tpURLShorteners = new System.Windows.Forms.TabPage();
|
this.tpURLShorteners = new System.Windows.Forms.TabPage();
|
||||||
this.tcURLShorteners = new System.Windows.Forms.TabControl();
|
this.tcURLShorteners = new System.Windows.Forms.TabControl();
|
||||||
this.tpBitly = new System.Windows.Forms.TabPage();
|
this.tpBitly = new System.Windows.Forms.TabPage();
|
||||||
this.txtBitlyDomain = new System.Windows.Forms.TextBox();
|
this.txtBitlyDomain = new System.Windows.Forms.TextBox();
|
||||||
this.lblBitlyDomain = new System.Windows.Forms.Label();
|
this.lblBitlyDomain = new System.Windows.Forms.Label();
|
||||||
|
this.oauth2Bitly = new UploadersLib.OAuthControl();
|
||||||
this.tpGoogleURLShortener = new System.Windows.Forms.TabPage();
|
this.tpGoogleURLShortener = new System.Windows.Forms.TabPage();
|
||||||
|
this.oauth2GoogleURLShortener = new UploadersLib.OAuthControl();
|
||||||
|
this.atcGoogleURLShortenerAccountType = new UploadersLib.AccountTypeControl();
|
||||||
this.tpYourls = new System.Windows.Forms.TabPage();
|
this.tpYourls = new System.Windows.Forms.TabPage();
|
||||||
this.txtYourlsPassword = new System.Windows.Forms.TextBox();
|
this.txtYourlsPassword = new System.Windows.Forms.TextBox();
|
||||||
this.txtYourlsUsername = new System.Windows.Forms.TextBox();
|
this.txtYourlsUsername = new System.Windows.Forms.TextBox();
|
||||||
|
@ -111,6 +115,7 @@ private void InitializeComponent()
|
||||||
this.txtYourlsAPIURL = new System.Windows.Forms.TextBox();
|
this.txtYourlsAPIURL = new System.Windows.Forms.TextBox();
|
||||||
this.lblYourlsAPIURL = new System.Windows.Forms.Label();
|
this.lblYourlsAPIURL = new System.Windows.Forms.Label();
|
||||||
this.tpAdFly = new System.Windows.Forms.TabPage();
|
this.tpAdFly = new System.Windows.Forms.TabPage();
|
||||||
|
this.llAdflyLink = new System.Windows.Forms.LinkLabel();
|
||||||
this.txtAdflyAPIUID = new System.Windows.Forms.TextBox();
|
this.txtAdflyAPIUID = new System.Windows.Forms.TextBox();
|
||||||
this.lblAdflyAPIUID = new System.Windows.Forms.Label();
|
this.lblAdflyAPIUID = new System.Windows.Forms.Label();
|
||||||
this.txtAdflyAPIKEY = new System.Windows.Forms.TextBox();
|
this.txtAdflyAPIKEY = new System.Windows.Forms.TextBox();
|
||||||
|
@ -118,6 +123,7 @@ private void InitializeComponent()
|
||||||
this.tpFileUploaders = new System.Windows.Forms.TabPage();
|
this.tpFileUploaders = new System.Windows.Forms.TabPage();
|
||||||
this.tcFileUploaders = new System.Windows.Forms.TabControl();
|
this.tcFileUploaders = new System.Windows.Forms.TabControl();
|
||||||
this.tpDropbox = new System.Windows.Forms.TabPage();
|
this.tpDropbox = new System.Windows.Forms.TabPage();
|
||||||
|
this.oauth2Dropbox = new UploadersLib.OAuthControl();
|
||||||
this.cbDropboxURLType = new System.Windows.Forms.ComboBox();
|
this.cbDropboxURLType = new System.Windows.Forms.ComboBox();
|
||||||
this.cbDropboxAutoCreateShareableLink = new System.Windows.Forms.CheckBox();
|
this.cbDropboxAutoCreateShareableLink = new System.Windows.Forms.CheckBox();
|
||||||
this.btnDropboxShowFiles = new System.Windows.Forms.Button();
|
this.btnDropboxShowFiles = new System.Windows.Forms.Button();
|
||||||
|
@ -135,6 +141,7 @@ private void InitializeComponent()
|
||||||
this.lblCopyStatus = new System.Windows.Forms.Label();
|
this.lblCopyStatus = new System.Windows.Forms.Label();
|
||||||
this.lblCopyPath = new System.Windows.Forms.Label();
|
this.lblCopyPath = new System.Windows.Forms.Label();
|
||||||
this.txtCopyPath = new System.Windows.Forms.TextBox();
|
this.txtCopyPath = new System.Windows.Forms.TextBox();
|
||||||
|
this.oAuthCopy = new UploadersLib.OAuthControl();
|
||||||
this.tpFTP = new System.Windows.Forms.TabPage();
|
this.tpFTP = new System.Windows.Forms.TabPage();
|
||||||
this.eiFTP = new HelpersLib.ExportImportControl();
|
this.eiFTP = new HelpersLib.ExportImportControl();
|
||||||
this.btnFtpClient = new System.Windows.Forms.Button();
|
this.btnFtpClient = new System.Windows.Forms.Button();
|
||||||
|
@ -144,6 +151,7 @@ private void InitializeComponent()
|
||||||
this.cboFtpImages = new System.Windows.Forms.ComboBox();
|
this.cboFtpImages = new System.Windows.Forms.ComboBox();
|
||||||
this.cboFtpFiles = new System.Windows.Forms.ComboBox();
|
this.cboFtpFiles = new System.Windows.Forms.ComboBox();
|
||||||
this.cboFtpText = new System.Windows.Forms.ComboBox();
|
this.cboFtpText = new System.Windows.Forms.ComboBox();
|
||||||
|
this.ucFTPAccounts = new UploadersLib.AccountsControl();
|
||||||
this.tpMega = new System.Windows.Forms.TabPage();
|
this.tpMega = new System.Windows.Forms.TabPage();
|
||||||
this.btnMegaRefreshFolders = new System.Windows.Forms.Button();
|
this.btnMegaRefreshFolders = new System.Windows.Forms.Button();
|
||||||
this.lblMegaStatus = new System.Windows.Forms.Label();
|
this.lblMegaStatus = new System.Windows.Forms.Label();
|
||||||
|
@ -181,6 +189,7 @@ private void InitializeComponent()
|
||||||
this.chGoogleDriveDescription = ((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.btnGoogleDriveRefreshFolders = new System.Windows.Forms.Button();
|
||||||
this.cbGoogleDriveIsPublic = new System.Windows.Forms.CheckBox();
|
this.cbGoogleDriveIsPublic = new System.Windows.Forms.CheckBox();
|
||||||
|
this.oauth2GoogleDrive = new UploadersLib.OAuthControl();
|
||||||
this.tpOwnCloud = new System.Windows.Forms.TabPage();
|
this.tpOwnCloud = new System.Windows.Forms.TabPage();
|
||||||
this.cbOwnCloudDirectLink = new System.Windows.Forms.CheckBox();
|
this.cbOwnCloudDirectLink = new System.Windows.Forms.CheckBox();
|
||||||
this.cbOwnCloudCreateShare = new System.Windows.Forms.CheckBox();
|
this.cbOwnCloudCreateShare = new System.Windows.Forms.CheckBox();
|
||||||
|
@ -205,6 +214,7 @@ private void InitializeComponent()
|
||||||
this.chBoxFoldersName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
this.chBoxFoldersName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||||
this.lblBoxFolderID = new System.Windows.Forms.Label();
|
this.lblBoxFolderID = new System.Windows.Forms.Label();
|
||||||
this.btnBoxRefreshFolders = new System.Windows.Forms.Button();
|
this.btnBoxRefreshFolders = new System.Windows.Forms.Button();
|
||||||
|
this.oauth2Box = new UploadersLib.OAuthControl();
|
||||||
this.tpRapidShare = new System.Windows.Forms.TabPage();
|
this.tpRapidShare = new System.Windows.Forms.TabPage();
|
||||||
this.txtRapidShareFolderID = new System.Windows.Forms.TextBox();
|
this.txtRapidShareFolderID = new System.Windows.Forms.TextBox();
|
||||||
this.lblRapidShareFolderID = new System.Windows.Forms.Label();
|
this.lblRapidShareFolderID = new System.Windows.Forms.Label();
|
||||||
|
@ -220,6 +230,7 @@ private void InitializeComponent()
|
||||||
this.lblSendSpaceUsername = new System.Windows.Forms.Label();
|
this.lblSendSpaceUsername = new System.Windows.Forms.Label();
|
||||||
this.txtSendSpacePassword = new System.Windows.Forms.TextBox();
|
this.txtSendSpacePassword = new System.Windows.Forms.TextBox();
|
||||||
this.txtSendSpaceUserName = new System.Windows.Forms.TextBox();
|
this.txtSendSpaceUserName = new System.Windows.Forms.TextBox();
|
||||||
|
this.atcSendSpaceAccountType = new UploadersLib.AccountTypeControl();
|
||||||
this.tpGe_tt = new System.Windows.Forms.TabPage();
|
this.tpGe_tt = new System.Windows.Forms.TabPage();
|
||||||
this.lblGe_ttStatus = new System.Windows.Forms.Label();
|
this.lblGe_ttStatus = new System.Windows.Forms.Label();
|
||||||
this.lblGe_ttPassword = new System.Windows.Forms.Label();
|
this.lblGe_ttPassword = new System.Windows.Forms.Label();
|
||||||
|
@ -257,6 +268,7 @@ private void InitializeComponent()
|
||||||
this.txtJiraConfigHelp = new System.Windows.Forms.TextBox();
|
this.txtJiraConfigHelp = new System.Windows.Forms.TextBox();
|
||||||
this.txtJiraHost = new System.Windows.Forms.TextBox();
|
this.txtJiraHost = new System.Windows.Forms.TextBox();
|
||||||
this.lblJiraHost = new System.Windows.Forms.Label();
|
this.lblJiraHost = new System.Windows.Forms.Label();
|
||||||
|
this.oAuthJira = new UploadersLib.OAuthControl();
|
||||||
this.tpEmail = new System.Windows.Forms.TabPage();
|
this.tpEmail = new System.Windows.Forms.TabPage();
|
||||||
this.chkEmailConfirm = new System.Windows.Forms.CheckBox();
|
this.chkEmailConfirm = new System.Windows.Forms.CheckBox();
|
||||||
this.lblEmailSmtpServer = new System.Windows.Forms.Label();
|
this.lblEmailSmtpServer = new System.Windows.Forms.Label();
|
||||||
|
@ -279,6 +291,7 @@ private void InitializeComponent()
|
||||||
this.lblSharedFolderImages = new System.Windows.Forms.Label();
|
this.lblSharedFolderImages = new System.Windows.Forms.Label();
|
||||||
this.cboSharedFolderText = new System.Windows.Forms.ComboBox();
|
this.cboSharedFolderText = new System.Windows.Forms.ComboBox();
|
||||||
this.cboSharedFolderImages = new System.Windows.Forms.ComboBox();
|
this.cboSharedFolderImages = new System.Windows.Forms.ComboBox();
|
||||||
|
this.ucLocalhostAccounts = new UploadersLib.AccountsControl();
|
||||||
this.btnCopyShowFiles = new System.Windows.Forms.Button();
|
this.btnCopyShowFiles = new System.Windows.Forms.Button();
|
||||||
this.tpTextUploaders = new System.Windows.Forms.TabPage();
|
this.tpTextUploaders = new System.Windows.Forms.TabPage();
|
||||||
this.tcTextUploaders = new System.Windows.Forms.TabControl();
|
this.tcTextUploaders = new System.Windows.Forms.TabControl();
|
||||||
|
@ -290,6 +303,8 @@ private void InitializeComponent()
|
||||||
this.txtPaste_eeUserAPIKey = new System.Windows.Forms.TextBox();
|
this.txtPaste_eeUserAPIKey = new System.Windows.Forms.TextBox();
|
||||||
this.tpGist = new System.Windows.Forms.TabPage();
|
this.tpGist = new System.Windows.Forms.TabPage();
|
||||||
this.chkGistPublishPublic = new System.Windows.Forms.CheckBox();
|
this.chkGistPublishPublic = new System.Windows.Forms.CheckBox();
|
||||||
|
this.oAuth2Gist = new UploadersLib.OAuthControl();
|
||||||
|
this.atcGistAccountType = new UploadersLib.AccountTypeControl();
|
||||||
this.tpUpaste = new System.Windows.Forms.TabPage();
|
this.tpUpaste = new System.Windows.Forms.TabPage();
|
||||||
this.cbUpasteIsPublic = new System.Windows.Forms.CheckBox();
|
this.cbUpasteIsPublic = new System.Windows.Forms.CheckBox();
|
||||||
this.lblUpasteUserKey = new System.Windows.Forms.Label();
|
this.lblUpasteUserKey = new System.Windows.Forms.Label();
|
||||||
|
@ -297,6 +312,8 @@ private void InitializeComponent()
|
||||||
this.tpImageUploaders = new System.Windows.Forms.TabPage();
|
this.tpImageUploaders = new System.Windows.Forms.TabPage();
|
||||||
this.tcImageUploaders = new System.Windows.Forms.TabControl();
|
this.tcImageUploaders = new System.Windows.Forms.TabControl();
|
||||||
this.tpImgur = new System.Windows.Forms.TabPage();
|
this.tpImgur = new System.Windows.Forms.TabPage();
|
||||||
|
this.atcImgurAccountType = new UploadersLib.AccountTypeControl();
|
||||||
|
this.oauth2Imgur = new UploadersLib.OAuthControl();
|
||||||
this.txtImgurAlbumID = new System.Windows.Forms.TextBox();
|
this.txtImgurAlbumID = new System.Windows.Forms.TextBox();
|
||||||
this.lblImgurAlbumID = new System.Windows.Forms.Label();
|
this.lblImgurAlbumID = new System.Windows.Forms.Label();
|
||||||
this.lvImgurAlbumList = new System.Windows.Forms.ListView();
|
this.lvImgurAlbumList = new System.Windows.Forms.ListView();
|
||||||
|
@ -316,6 +333,7 @@ private void InitializeComponent()
|
||||||
this.txtImageShackPassword = new System.Windows.Forms.TextBox();
|
this.txtImageShackPassword = new System.Windows.Forms.TextBox();
|
||||||
this.lblImageShackPassword = new System.Windows.Forms.Label();
|
this.lblImageShackPassword = new System.Windows.Forms.Label();
|
||||||
this.tpTinyPic = new System.Windows.Forms.TabPage();
|
this.tpTinyPic = new System.Windows.Forms.TabPage();
|
||||||
|
this.atcTinyPicAccountType = new UploadersLib.AccountTypeControl();
|
||||||
this.btnTinyPicLogin = new System.Windows.Forms.Button();
|
this.btnTinyPicLogin = new System.Windows.Forms.Button();
|
||||||
this.txtTinyPicPassword = new System.Windows.Forms.TextBox();
|
this.txtTinyPicPassword = new System.Windows.Forms.TextBox();
|
||||||
this.lblTinyPicPassword = new System.Windows.Forms.Label();
|
this.lblTinyPicPassword = new System.Windows.Forms.Label();
|
||||||
|
@ -356,29 +374,12 @@ private void InitializeComponent()
|
||||||
this.chPicasaName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
this.chPicasaName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||||
this.chPicasaDescription = ((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.btnPicasaRefreshAlbumList = new System.Windows.Forms.Button();
|
||||||
|
this.oauth2Picasa = new UploadersLib.OAuthControl();
|
||||||
this.tcUploaders = new System.Windows.Forms.TabControl();
|
this.tcUploaders = new System.Windows.Forms.TabControl();
|
||||||
this.ttlvMain = new HelpersLib.TabToListView();
|
this.ttlvMain = new HelpersLib.TabToListView();
|
||||||
this.lblWidthHint = new System.Windows.Forms.Label();
|
this.lblWidthHint = new System.Windows.Forms.Label();
|
||||||
this.llAdflyLink = new System.Windows.Forms.LinkLabel();
|
|
||||||
this.atcImgurAccountType = new UploadersLib.AccountTypeControl();
|
|
||||||
this.oauth2Imgur = new UploadersLib.OAuthControl();
|
|
||||||
this.atcTinyPicAccountType = new UploadersLib.AccountTypeControl();
|
|
||||||
this.oauth2Picasa = new UploadersLib.OAuthControl();
|
|
||||||
this.oAuth2Gist = new UploadersLib.OAuthControl();
|
|
||||||
this.atcGistAccountType = new UploadersLib.AccountTypeControl();
|
|
||||||
this.oauth2Dropbox = new UploadersLib.OAuthControl();
|
|
||||||
this.oAuthCopy = new UploadersLib.OAuthControl();
|
|
||||||
this.ucFTPAccounts = new UploadersLib.AccountsControl();
|
|
||||||
this.oauth2GoogleDrive = new UploadersLib.OAuthControl();
|
|
||||||
this.oauth2Box = new UploadersLib.OAuthControl();
|
|
||||||
this.atcSendSpaceAccountType = new UploadersLib.AccountTypeControl();
|
|
||||||
this.oAuthJira = new UploadersLib.OAuthControl();
|
|
||||||
this.ucLocalhostAccounts = new UploadersLib.AccountsControl();
|
|
||||||
this.oauth2Bitly = new UploadersLib.OAuthControl();
|
|
||||||
this.oauth2GoogleURLShortener = new UploadersLib.OAuthControl();
|
|
||||||
this.atcGoogleURLShortenerAccountType = new UploadersLib.AccountTypeControl();
|
|
||||||
this.ucTwitterAccounts = new UploadersLib.AccountsControl();
|
|
||||||
this.actRapidShareAccountType = new UploadersLib.AccountTypeControl();
|
this.actRapidShareAccountType = new UploadersLib.AccountTypeControl();
|
||||||
|
this.cbImgurDirectLink = new System.Windows.Forms.CheckBox();
|
||||||
this.tpOtherUploaders.SuspendLayout();
|
this.tpOtherUploaders.SuspendLayout();
|
||||||
this.tcOtherUploaders.SuspendLayout();
|
this.tcOtherUploaders.SuspendLayout();
|
||||||
this.tpCustomUploaders.SuspendLayout();
|
this.tpCustomUploaders.SuspendLayout();
|
||||||
|
@ -1092,6 +1093,15 @@ private void InitializeComponent()
|
||||||
this.btnTwitterLogin.UseVisualStyleBackColor = true;
|
this.btnTwitterLogin.UseVisualStyleBackColor = true;
|
||||||
this.btnTwitterLogin.Click += new System.EventHandler(this.btnTwitterLogin_Click);
|
this.btnTwitterLogin.Click += new System.EventHandler(this.btnTwitterLogin_Click);
|
||||||
//
|
//
|
||||||
|
// ucTwitterAccounts
|
||||||
|
//
|
||||||
|
this.ucTwitterAccounts.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.ucTwitterAccounts.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.ucTwitterAccounts.Margin = new System.Windows.Forms.Padding(0);
|
||||||
|
this.ucTwitterAccounts.Name = "ucTwitterAccounts";
|
||||||
|
this.ucTwitterAccounts.Size = new System.Drawing.Size(972, 493);
|
||||||
|
this.ucTwitterAccounts.TabIndex = 0;
|
||||||
|
//
|
||||||
// tpURLShorteners
|
// tpURLShorteners
|
||||||
//
|
//
|
||||||
this.tpURLShorteners.Controls.Add(this.tcURLShorteners);
|
this.tpURLShorteners.Controls.Add(this.tcURLShorteners);
|
||||||
|
@ -1146,6 +1156,17 @@ private void InitializeComponent()
|
||||||
this.lblBitlyDomain.TabIndex = 1;
|
this.lblBitlyDomain.TabIndex = 1;
|
||||||
this.lblBitlyDomain.Text = "Domain:";
|
this.lblBitlyDomain.Text = "Domain:";
|
||||||
//
|
//
|
||||||
|
// oauth2Bitly
|
||||||
|
//
|
||||||
|
this.oauth2Bitly.IsRefreshable = false;
|
||||||
|
this.oauth2Bitly.Location = new System.Drawing.Point(16, 16);
|
||||||
|
this.oauth2Bitly.Name = "oauth2Bitly";
|
||||||
|
this.oauth2Bitly.Size = new System.Drawing.Size(328, 208);
|
||||||
|
this.oauth2Bitly.TabIndex = 0;
|
||||||
|
this.oauth2Bitly.OpenButtonClicked += new UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2Bitly_OpenButtonClicked);
|
||||||
|
this.oauth2Bitly.CompleteButtonClicked += new UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2Bitly_CompleteButtonClicked);
|
||||||
|
this.oauth2Bitly.ClearButtonClicked += new UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2Bitly_ClearButtonClicked);
|
||||||
|
//
|
||||||
// tpGoogleURLShortener
|
// tpGoogleURLShortener
|
||||||
//
|
//
|
||||||
this.tpGoogleURLShortener.Controls.Add(this.oauth2GoogleURLShortener);
|
this.tpGoogleURLShortener.Controls.Add(this.oauth2GoogleURLShortener);
|
||||||
|
@ -1158,6 +1179,26 @@ private void InitializeComponent()
|
||||||
this.tpGoogleURLShortener.Text = "Google";
|
this.tpGoogleURLShortener.Text = "Google";
|
||||||
this.tpGoogleURLShortener.UseVisualStyleBackColor = true;
|
this.tpGoogleURLShortener.UseVisualStyleBackColor = true;
|
||||||
//
|
//
|
||||||
|
// oauth2GoogleURLShortener
|
||||||
|
//
|
||||||
|
this.oauth2GoogleURLShortener.Location = new System.Drawing.Point(16, 56);
|
||||||
|
this.oauth2GoogleURLShortener.Name = "oauth2GoogleURLShortener";
|
||||||
|
this.oauth2GoogleURLShortener.Size = new System.Drawing.Size(328, 240);
|
||||||
|
this.oauth2GoogleURLShortener.TabIndex = 1;
|
||||||
|
this.oauth2GoogleURLShortener.OpenButtonClicked += new UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2GoogleURLShortener_OpenButtonClicked);
|
||||||
|
this.oauth2GoogleURLShortener.CompleteButtonClicked += new UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2GoogleURLShortener_CompleteButtonClicked);
|
||||||
|
this.oauth2GoogleURLShortener.ClearButtonClicked += new UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2GoogleURLShortener_ClearButtonClicked);
|
||||||
|
this.oauth2GoogleURLShortener.RefreshButtonClicked += new UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oauth2GoogleURLShortener_RefreshButtonClicked);
|
||||||
|
//
|
||||||
|
// atcGoogleURLShortenerAccountType
|
||||||
|
//
|
||||||
|
this.atcGoogleURLShortenerAccountType.Location = new System.Drawing.Point(8, 16);
|
||||||
|
this.atcGoogleURLShortenerAccountType.Name = "atcGoogleURLShortenerAccountType";
|
||||||
|
this.atcGoogleURLShortenerAccountType.SelectedAccountType = UploadersLib.AccountType.Anonymous;
|
||||||
|
this.atcGoogleURLShortenerAccountType.Size = new System.Drawing.Size(214, 29);
|
||||||
|
this.atcGoogleURLShortenerAccountType.TabIndex = 0;
|
||||||
|
this.atcGoogleURLShortenerAccountType.AccountTypeChanged += new UploadersLib.AccountTypeControl.AccountTypeChangedEventHandler(this.atcGoogleURLShortenerAccountType_AccountTypeChanged);
|
||||||
|
//
|
||||||
// tpYourls
|
// tpYourls
|
||||||
//
|
//
|
||||||
this.tpYourls.Controls.Add(this.txtYourlsPassword);
|
this.tpYourls.Controls.Add(this.txtYourlsPassword);
|
||||||
|
@ -1271,6 +1312,17 @@ private void InitializeComponent()
|
||||||
this.tpAdFly.Text = "adf.ly";
|
this.tpAdFly.Text = "adf.ly";
|
||||||
this.tpAdFly.UseVisualStyleBackColor = true;
|
this.tpAdFly.UseVisualStyleBackColor = true;
|
||||||
//
|
//
|
||||||
|
// llAdflyLink
|
||||||
|
//
|
||||||
|
this.llAdflyLink.AutoSize = true;
|
||||||
|
this.llAdflyLink.Location = new System.Drawing.Point(16, 15);
|
||||||
|
this.llAdflyLink.Name = "llAdflyLink";
|
||||||
|
this.llAdflyLink.Size = new System.Drawing.Size(208, 13);
|
||||||
|
this.llAdflyLink.TabIndex = 8;
|
||||||
|
this.llAdflyLink.TabStop = true;
|
||||||
|
this.llAdflyLink.Text = "You can find your API key and UID in here";
|
||||||
|
this.llAdflyLink.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.llAdflyLink_LinkClicked);
|
||||||
|
//
|
||||||
// txtAdflyAPIUID
|
// txtAdflyAPIUID
|
||||||
//
|
//
|
||||||
this.txtAdflyAPIUID.Location = new System.Drawing.Point(70, 60);
|
this.txtAdflyAPIUID.Location = new System.Drawing.Point(70, 60);
|
||||||
|
@ -1364,6 +1416,17 @@ private void InitializeComponent()
|
||||||
this.tpDropbox.Text = "Dropbox";
|
this.tpDropbox.Text = "Dropbox";
|
||||||
this.tpDropbox.UseVisualStyleBackColor = true;
|
this.tpDropbox.UseVisualStyleBackColor = true;
|
||||||
//
|
//
|
||||||
|
// oauth2Dropbox
|
||||||
|
//
|
||||||
|
this.oauth2Dropbox.IsRefreshable = false;
|
||||||
|
this.oauth2Dropbox.Location = new System.Drawing.Point(16, 88);
|
||||||
|
this.oauth2Dropbox.Name = "oauth2Dropbox";
|
||||||
|
this.oauth2Dropbox.Size = new System.Drawing.Size(328, 200);
|
||||||
|
this.oauth2Dropbox.TabIndex = 1;
|
||||||
|
this.oauth2Dropbox.OpenButtonClicked += new UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2Dropbox_OpenButtonClicked);
|
||||||
|
this.oauth2Dropbox.CompleteButtonClicked += new UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2Dropbox_CompleteButtonClicked);
|
||||||
|
this.oauth2Dropbox.ClearButtonClicked += new UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2Dropbox_ClearButtonClicked);
|
||||||
|
//
|
||||||
// cbDropboxURLType
|
// cbDropboxURLType
|
||||||
//
|
//
|
||||||
this.cbDropboxURLType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
this.cbDropboxURLType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||||
|
@ -1539,6 +1602,17 @@ private void InitializeComponent()
|
||||||
this.txtCopyPath.TabIndex = 3;
|
this.txtCopyPath.TabIndex = 3;
|
||||||
this.txtCopyPath.TextChanged += new System.EventHandler(this.txtCopyPath_TextChanged);
|
this.txtCopyPath.TextChanged += new System.EventHandler(this.txtCopyPath_TextChanged);
|
||||||
//
|
//
|
||||||
|
// oAuthCopy
|
||||||
|
//
|
||||||
|
this.oAuthCopy.IsRefreshable = false;
|
||||||
|
this.oAuthCopy.Location = new System.Drawing.Point(16, 88);
|
||||||
|
this.oAuthCopy.Name = "oAuthCopy";
|
||||||
|
this.oAuthCopy.Size = new System.Drawing.Size(328, 208);
|
||||||
|
this.oAuthCopy.TabIndex = 1;
|
||||||
|
this.oAuthCopy.OpenButtonClicked += new UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oAuthCopy_OpenButtonClicked);
|
||||||
|
this.oAuthCopy.CompleteButtonClicked += new UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oAuthCopy_CompleteButtonClicked);
|
||||||
|
this.oAuthCopy.ClearButtonClicked += new UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oAuthCopy_ClearButtonClicked);
|
||||||
|
//
|
||||||
// tpFTP
|
// tpFTP
|
||||||
//
|
//
|
||||||
this.tpFTP.Controls.Add(this.eiFTP);
|
this.tpFTP.Controls.Add(this.eiFTP);
|
||||||
|
@ -1635,6 +1709,16 @@ private void InitializeComponent()
|
||||||
this.cboFtpText.TabIndex = 3;
|
this.cboFtpText.TabIndex = 3;
|
||||||
this.cboFtpText.SelectedIndexChanged += new System.EventHandler(this.cboFtpText_SelectedIndexChanged);
|
this.cboFtpText.SelectedIndexChanged += new System.EventHandler(this.cboFtpText_SelectedIndexChanged);
|
||||||
//
|
//
|
||||||
|
// ucFTPAccounts
|
||||||
|
//
|
||||||
|
this.ucFTPAccounts.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||||
|
| System.Windows.Forms.AnchorStyles.Left)));
|
||||||
|
this.ucFTPAccounts.Location = new System.Drawing.Point(8, 40);
|
||||||
|
this.ucFTPAccounts.Margin = new System.Windows.Forms.Padding(4);
|
||||||
|
this.ucFTPAccounts.Name = "ucFTPAccounts";
|
||||||
|
this.ucFTPAccounts.Size = new System.Drawing.Size(792, 448);
|
||||||
|
this.ucFTPAccounts.TabIndex = 6;
|
||||||
|
//
|
||||||
// tpMega
|
// tpMega
|
||||||
//
|
//
|
||||||
this.tpMega.Controls.Add(this.btnMegaRefreshFolders);
|
this.tpMega.Controls.Add(this.btnMegaRefreshFolders);
|
||||||
|
@ -2021,6 +2105,17 @@ private void InitializeComponent()
|
||||||
this.cbGoogleDriveIsPublic.UseVisualStyleBackColor = true;
|
this.cbGoogleDriveIsPublic.UseVisualStyleBackColor = true;
|
||||||
this.cbGoogleDriveIsPublic.CheckedChanged += new System.EventHandler(this.cbGoogleDriveIsPublic_CheckedChanged);
|
this.cbGoogleDriveIsPublic.CheckedChanged += new System.EventHandler(this.cbGoogleDriveIsPublic_CheckedChanged);
|
||||||
//
|
//
|
||||||
|
// oauth2GoogleDrive
|
||||||
|
//
|
||||||
|
this.oauth2GoogleDrive.Location = new System.Drawing.Point(16, 16);
|
||||||
|
this.oauth2GoogleDrive.Name = "oauth2GoogleDrive";
|
||||||
|
this.oauth2GoogleDrive.Size = new System.Drawing.Size(328, 240);
|
||||||
|
this.oauth2GoogleDrive.TabIndex = 0;
|
||||||
|
this.oauth2GoogleDrive.OpenButtonClicked += new UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2GoogleDrive_OpenButtonClicked);
|
||||||
|
this.oauth2GoogleDrive.CompleteButtonClicked += new UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2GoogleDrive_CompleteButtonClicked);
|
||||||
|
this.oauth2GoogleDrive.ClearButtonClicked += new UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2GoogleDrive_ClearButtonClicked);
|
||||||
|
this.oauth2GoogleDrive.RefreshButtonClicked += new UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oauth2GoogleDrive_RefreshButtonClicked);
|
||||||
|
//
|
||||||
// tpOwnCloud
|
// tpOwnCloud
|
||||||
//
|
//
|
||||||
this.tpOwnCloud.Controls.Add(this.cbOwnCloudDirectLink);
|
this.tpOwnCloud.Controls.Add(this.cbOwnCloudDirectLink);
|
||||||
|
@ -2272,6 +2367,17 @@ private void InitializeComponent()
|
||||||
this.btnBoxRefreshFolders.UseVisualStyleBackColor = true;
|
this.btnBoxRefreshFolders.UseVisualStyleBackColor = true;
|
||||||
this.btnBoxRefreshFolders.Click += new System.EventHandler(this.btnBoxRefreshFolders_Click);
|
this.btnBoxRefreshFolders.Click += new System.EventHandler(this.btnBoxRefreshFolders_Click);
|
||||||
//
|
//
|
||||||
|
// oauth2Box
|
||||||
|
//
|
||||||
|
this.oauth2Box.Location = new System.Drawing.Point(16, 16);
|
||||||
|
this.oauth2Box.Name = "oauth2Box";
|
||||||
|
this.oauth2Box.Size = new System.Drawing.Size(328, 240);
|
||||||
|
this.oauth2Box.TabIndex = 0;
|
||||||
|
this.oauth2Box.OpenButtonClicked += new UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2Box_OpenButtonClicked);
|
||||||
|
this.oauth2Box.CompleteButtonClicked += new UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2Box_CompleteButtonClicked);
|
||||||
|
this.oauth2Box.ClearButtonClicked += new UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2Box_ClearButtonClicked);
|
||||||
|
this.oauth2Box.RefreshButtonClicked += new UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oauth2Box_RefreshButtonClicked);
|
||||||
|
//
|
||||||
// tpRapidShare
|
// tpRapidShare
|
||||||
//
|
//
|
||||||
this.tpRapidShare.Controls.Add(this.txtRapidShareFolderID);
|
this.tpRapidShare.Controls.Add(this.txtRapidShareFolderID);
|
||||||
|
@ -2421,6 +2527,15 @@ private void InitializeComponent()
|
||||||
this.txtSendSpaceUserName.TabIndex = 2;
|
this.txtSendSpaceUserName.TabIndex = 2;
|
||||||
this.txtSendSpaceUserName.TextChanged += new System.EventHandler(this.txtSendSpaceUserName_TextChanged);
|
this.txtSendSpaceUserName.TextChanged += new System.EventHandler(this.txtSendSpaceUserName_TextChanged);
|
||||||
//
|
//
|
||||||
|
// atcSendSpaceAccountType
|
||||||
|
//
|
||||||
|
this.atcSendSpaceAccountType.Location = new System.Drawing.Point(8, 16);
|
||||||
|
this.atcSendSpaceAccountType.Name = "atcSendSpaceAccountType";
|
||||||
|
this.atcSendSpaceAccountType.SelectedAccountType = UploadersLib.AccountType.Anonymous;
|
||||||
|
this.atcSendSpaceAccountType.Size = new System.Drawing.Size(214, 29);
|
||||||
|
this.atcSendSpaceAccountType.TabIndex = 0;
|
||||||
|
this.atcSendSpaceAccountType.AccountTypeChanged += new UploadersLib.AccountTypeControl.AccountTypeChangedEventHandler(this.atcSendSpaceAccountType_AccountTypeChanged);
|
||||||
|
//
|
||||||
// tpGe_tt
|
// tpGe_tt
|
||||||
//
|
//
|
||||||
this.tpGe_tt.Controls.Add(this.lblGe_ttStatus);
|
this.tpGe_tt.Controls.Add(this.lblGe_ttStatus);
|
||||||
|
@ -2799,6 +2914,17 @@ private void InitializeComponent()
|
||||||
this.lblJiraHost.TabIndex = 0;
|
this.lblJiraHost.TabIndex = 0;
|
||||||
this.lblJiraHost.Text = "Jira host: ";
|
this.lblJiraHost.Text = "Jira host: ";
|
||||||
//
|
//
|
||||||
|
// oAuthJira
|
||||||
|
//
|
||||||
|
this.oAuthJira.Location = new System.Drawing.Point(473, 13);
|
||||||
|
this.oAuthJira.Name = "oAuthJira";
|
||||||
|
this.oAuthJira.Size = new System.Drawing.Size(328, 243);
|
||||||
|
this.oAuthJira.TabIndex = 1;
|
||||||
|
this.oAuthJira.OpenButtonClicked += new UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oAuthJira_OpenButtonClicked);
|
||||||
|
this.oAuthJira.CompleteButtonClicked += new UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oAuthJira_CompleteButtonClicked);
|
||||||
|
this.oAuthJira.ClearButtonClicked += new UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oAuthJira_ClearButtonClicked);
|
||||||
|
this.oAuthJira.RefreshButtonClicked += new UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oAuthJira_RefreshButtonClicked);
|
||||||
|
//
|
||||||
// tpEmail
|
// tpEmail
|
||||||
//
|
//
|
||||||
this.tpEmail.Controls.Add(this.chkEmailConfirm);
|
this.tpEmail.Controls.Add(this.chkEmailConfirm);
|
||||||
|
@ -3034,6 +3160,16 @@ private void InitializeComponent()
|
||||||
this.cboSharedFolderImages.TabIndex = 1;
|
this.cboSharedFolderImages.TabIndex = 1;
|
||||||
this.cboSharedFolderImages.SelectedIndexChanged += new System.EventHandler(this.cboSharedFolderImages_SelectedIndexChanged);
|
this.cboSharedFolderImages.SelectedIndexChanged += new System.EventHandler(this.cboSharedFolderImages_SelectedIndexChanged);
|
||||||
//
|
//
|
||||||
|
// ucLocalhostAccounts
|
||||||
|
//
|
||||||
|
this.ucLocalhostAccounts.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||||
|
| System.Windows.Forms.AnchorStyles.Left)));
|
||||||
|
this.ucLocalhostAccounts.Location = new System.Drawing.Point(8, 40);
|
||||||
|
this.ucLocalhostAccounts.Margin = new System.Windows.Forms.Padding(4);
|
||||||
|
this.ucLocalhostAccounts.Name = "ucLocalhostAccounts";
|
||||||
|
this.ucLocalhostAccounts.Size = new System.Drawing.Size(792, 448);
|
||||||
|
this.ucLocalhostAccounts.TabIndex = 6;
|
||||||
|
//
|
||||||
// btnCopyShowFiles
|
// btnCopyShowFiles
|
||||||
//
|
//
|
||||||
this.btnCopyShowFiles.Location = new System.Drawing.Point(0, 0);
|
this.btnCopyShowFiles.Location = new System.Drawing.Point(0, 0);
|
||||||
|
@ -3150,6 +3286,27 @@ private void InitializeComponent()
|
||||||
this.chkGistPublishPublic.UseVisualStyleBackColor = true;
|
this.chkGistPublishPublic.UseVisualStyleBackColor = true;
|
||||||
this.chkGistPublishPublic.CheckedChanged += new System.EventHandler(this.chkGistPublishPublic_CheckedChanged);
|
this.chkGistPublishPublic.CheckedChanged += new System.EventHandler(this.chkGistPublishPublic_CheckedChanged);
|
||||||
//
|
//
|
||||||
|
// oAuth2Gist
|
||||||
|
//
|
||||||
|
this.oAuth2Gist.Enabled = false;
|
||||||
|
this.oAuth2Gist.IsRefreshable = false;
|
||||||
|
this.oAuth2Gist.Location = new System.Drawing.Point(16, 51);
|
||||||
|
this.oAuth2Gist.Name = "oAuth2Gist";
|
||||||
|
this.oAuth2Gist.Size = new System.Drawing.Size(328, 205);
|
||||||
|
this.oAuth2Gist.TabIndex = 2;
|
||||||
|
this.oAuth2Gist.OpenButtonClicked += new UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oAuth2Gist_OpenButtonClicked);
|
||||||
|
this.oAuth2Gist.CompleteButtonClicked += new UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oAuth2Gist_CompleteButtonClicked);
|
||||||
|
this.oAuth2Gist.ClearButtonClicked += new UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oAuth2Gist_ClearButtonClicked);
|
||||||
|
//
|
||||||
|
// atcGistAccountType
|
||||||
|
//
|
||||||
|
this.atcGistAccountType.Location = new System.Drawing.Point(15, 16);
|
||||||
|
this.atcGistAccountType.Name = "atcGistAccountType";
|
||||||
|
this.atcGistAccountType.SelectedAccountType = UploadersLib.AccountType.Anonymous;
|
||||||
|
this.atcGistAccountType.Size = new System.Drawing.Size(214, 29);
|
||||||
|
this.atcGistAccountType.TabIndex = 0;
|
||||||
|
this.atcGistAccountType.AccountTypeChanged += new UploadersLib.AccountTypeControl.AccountTypeChangedEventHandler(this.atcGistAccountType_AccountTypeChanged);
|
||||||
|
//
|
||||||
// tpUpaste
|
// tpUpaste
|
||||||
//
|
//
|
||||||
this.tpUpaste.Controls.Add(this.cbUpasteIsPublic);
|
this.tpUpaste.Controls.Add(this.cbUpasteIsPublic);
|
||||||
|
@ -3221,6 +3378,7 @@ private void InitializeComponent()
|
||||||
//
|
//
|
||||||
// tpImgur
|
// tpImgur
|
||||||
//
|
//
|
||||||
|
this.tpImgur.Controls.Add(this.cbImgurDirectLink);
|
||||||
this.tpImgur.Controls.Add(this.atcImgurAccountType);
|
this.tpImgur.Controls.Add(this.atcImgurAccountType);
|
||||||
this.tpImgur.Controls.Add(this.oauth2Imgur);
|
this.tpImgur.Controls.Add(this.oauth2Imgur);
|
||||||
this.tpImgur.Controls.Add(this.txtImgurAlbumID);
|
this.tpImgur.Controls.Add(this.txtImgurAlbumID);
|
||||||
|
@ -3237,6 +3395,26 @@ private void InitializeComponent()
|
||||||
this.tpImgur.Text = "Imgur";
|
this.tpImgur.Text = "Imgur";
|
||||||
this.tpImgur.UseVisualStyleBackColor = true;
|
this.tpImgur.UseVisualStyleBackColor = true;
|
||||||
//
|
//
|
||||||
|
// atcImgurAccountType
|
||||||
|
//
|
||||||
|
this.atcImgurAccountType.Location = new System.Drawing.Point(8, 260);
|
||||||
|
this.atcImgurAccountType.Name = "atcImgurAccountType";
|
||||||
|
this.atcImgurAccountType.SelectedAccountType = UploadersLib.AccountType.Anonymous;
|
||||||
|
this.atcImgurAccountType.Size = new System.Drawing.Size(208, 32);
|
||||||
|
this.atcImgurAccountType.TabIndex = 1;
|
||||||
|
this.atcImgurAccountType.AccountTypeChanged += new UploadersLib.AccountTypeControl.AccountTypeChangedEventHandler(this.atcImgurAccountType_AccountTypeChanged);
|
||||||
|
//
|
||||||
|
// oauth2Imgur
|
||||||
|
//
|
||||||
|
this.oauth2Imgur.Location = new System.Drawing.Point(16, 16);
|
||||||
|
this.oauth2Imgur.Name = "oauth2Imgur";
|
||||||
|
this.oauth2Imgur.Size = new System.Drawing.Size(328, 240);
|
||||||
|
this.oauth2Imgur.TabIndex = 0;
|
||||||
|
this.oauth2Imgur.OpenButtonClicked += new UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2Imgur_OpenButtonClicked);
|
||||||
|
this.oauth2Imgur.CompleteButtonClicked += new UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2Imgur_CompleteButtonClicked);
|
||||||
|
this.oauth2Imgur.ClearButtonClicked += new UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2Imgur_ClearButtonClicked);
|
||||||
|
this.oauth2Imgur.RefreshButtonClicked += new UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oauth2Imgur_RefreshButtonClicked);
|
||||||
|
//
|
||||||
// txtImgurAlbumID
|
// txtImgurAlbumID
|
||||||
//
|
//
|
||||||
this.txtImgurAlbumID.Location = new System.Drawing.Point(592, 13);
|
this.txtImgurAlbumID.Location = new System.Drawing.Point(592, 13);
|
||||||
|
@ -3300,7 +3478,7 @@ private void InitializeComponent()
|
||||||
//
|
//
|
||||||
this.cbImgurThumbnailType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
this.cbImgurThumbnailType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||||
this.cbImgurThumbnailType.FormattingEnabled = true;
|
this.cbImgurThumbnailType.FormattingEnabled = true;
|
||||||
this.cbImgurThumbnailType.Location = new System.Drawing.Point(104, 296);
|
this.cbImgurThumbnailType.Location = new System.Drawing.Point(104, 324);
|
||||||
this.cbImgurThumbnailType.Name = "cbImgurThumbnailType";
|
this.cbImgurThumbnailType.Name = "cbImgurThumbnailType";
|
||||||
this.cbImgurThumbnailType.Size = new System.Drawing.Size(136, 21);
|
this.cbImgurThumbnailType.Size = new System.Drawing.Size(136, 21);
|
||||||
this.cbImgurThumbnailType.TabIndex = 3;
|
this.cbImgurThumbnailType.TabIndex = 3;
|
||||||
|
@ -3309,7 +3487,7 @@ private void InitializeComponent()
|
||||||
// lblImgurThumbnailType
|
// lblImgurThumbnailType
|
||||||
//
|
//
|
||||||
this.lblImgurThumbnailType.AutoSize = true;
|
this.lblImgurThumbnailType.AutoSize = true;
|
||||||
this.lblImgurThumbnailType.Location = new System.Drawing.Point(16, 300);
|
this.lblImgurThumbnailType.Location = new System.Drawing.Point(16, 328);
|
||||||
this.lblImgurThumbnailType.Name = "lblImgurThumbnailType";
|
this.lblImgurThumbnailType.Name = "lblImgurThumbnailType";
|
||||||
this.lblImgurThumbnailType.Size = new System.Drawing.Size(82, 13);
|
this.lblImgurThumbnailType.Size = new System.Drawing.Size(82, 13);
|
||||||
this.lblImgurThumbnailType.TabIndex = 2;
|
this.lblImgurThumbnailType.TabIndex = 2;
|
||||||
|
@ -3426,6 +3604,15 @@ private void InitializeComponent()
|
||||||
this.tpTinyPic.Text = "TinyPic";
|
this.tpTinyPic.Text = "TinyPic";
|
||||||
this.tpTinyPic.UseVisualStyleBackColor = true;
|
this.tpTinyPic.UseVisualStyleBackColor = true;
|
||||||
//
|
//
|
||||||
|
// atcTinyPicAccountType
|
||||||
|
//
|
||||||
|
this.atcTinyPicAccountType.Location = new System.Drawing.Point(8, 8);
|
||||||
|
this.atcTinyPicAccountType.Name = "atcTinyPicAccountType";
|
||||||
|
this.atcTinyPicAccountType.SelectedAccountType = UploadersLib.AccountType.Anonymous;
|
||||||
|
this.atcTinyPicAccountType.Size = new System.Drawing.Size(272, 29);
|
||||||
|
this.atcTinyPicAccountType.TabIndex = 0;
|
||||||
|
this.atcTinyPicAccountType.AccountTypeChanged += new UploadersLib.AccountTypeControl.AccountTypeChangedEventHandler(this.atcTinyPicAccountType_AccountTypeChanged);
|
||||||
|
//
|
||||||
// btnTinyPicLogin
|
// btnTinyPicLogin
|
||||||
//
|
//
|
||||||
this.btnTinyPicLogin.Location = new System.Drawing.Point(296, 74);
|
this.btnTinyPicLogin.Location = new System.Drawing.Point(296, 74);
|
||||||
|
@ -3822,6 +4009,17 @@ private void InitializeComponent()
|
||||||
this.btnPicasaRefreshAlbumList.UseVisualStyleBackColor = true;
|
this.btnPicasaRefreshAlbumList.UseVisualStyleBackColor = true;
|
||||||
this.btnPicasaRefreshAlbumList.Click += new System.EventHandler(this.btnPicasaRefreshAlbumList_Click);
|
this.btnPicasaRefreshAlbumList.Click += new System.EventHandler(this.btnPicasaRefreshAlbumList_Click);
|
||||||
//
|
//
|
||||||
|
// oauth2Picasa
|
||||||
|
//
|
||||||
|
this.oauth2Picasa.Location = new System.Drawing.Point(16, 16);
|
||||||
|
this.oauth2Picasa.Name = "oauth2Picasa";
|
||||||
|
this.oauth2Picasa.Size = new System.Drawing.Size(328, 240);
|
||||||
|
this.oauth2Picasa.TabIndex = 0;
|
||||||
|
this.oauth2Picasa.OpenButtonClicked += new UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2Picasa_OpenButtonClicked);
|
||||||
|
this.oauth2Picasa.CompleteButtonClicked += new UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2Picasa_CompleteButtonClicked);
|
||||||
|
this.oauth2Picasa.ClearButtonClicked += new UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2Picasa_ClearButtonClicked);
|
||||||
|
this.oauth2Picasa.RefreshButtonClicked += new UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oauth2Picasa_RefreshButtonClicked);
|
||||||
|
//
|
||||||
// tcUploaders
|
// tcUploaders
|
||||||
//
|
//
|
||||||
this.tcUploaders.Controls.Add(this.tpImageUploaders);
|
this.tcUploaders.Controls.Add(this.tpImageUploaders);
|
||||||
|
@ -3858,202 +4056,6 @@ private void InitializeComponent()
|
||||||
this.lblWidthHint.TabIndex = 1;
|
this.lblWidthHint.TabIndex = 1;
|
||||||
this.lblWidthHint.Visible = false;
|
this.lblWidthHint.Visible = false;
|
||||||
//
|
//
|
||||||
// llAdflyLink
|
|
||||||
//
|
|
||||||
this.llAdflyLink.AutoSize = true;
|
|
||||||
this.llAdflyLink.Location = new System.Drawing.Point(16, 15);
|
|
||||||
this.llAdflyLink.Name = "llAdflyLink";
|
|
||||||
this.llAdflyLink.Size = new System.Drawing.Size(208, 13);
|
|
||||||
this.llAdflyLink.TabIndex = 8;
|
|
||||||
this.llAdflyLink.TabStop = true;
|
|
||||||
this.llAdflyLink.Text = "You can find your API key and UID in here";
|
|
||||||
this.llAdflyLink.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.llAdflyLink_LinkClicked);
|
|
||||||
//
|
|
||||||
// atcImgurAccountType
|
|
||||||
//
|
|
||||||
this.atcImgurAccountType.Location = new System.Drawing.Point(8, 260);
|
|
||||||
this.atcImgurAccountType.Name = "atcImgurAccountType";
|
|
||||||
this.atcImgurAccountType.SelectedAccountType = UploadersLib.AccountType.Anonymous;
|
|
||||||
this.atcImgurAccountType.Size = new System.Drawing.Size(208, 32);
|
|
||||||
this.atcImgurAccountType.TabIndex = 1;
|
|
||||||
this.atcImgurAccountType.AccountTypeChanged += new UploadersLib.AccountTypeControl.AccountTypeChangedEventHandler(this.atcImgurAccountType_AccountTypeChanged);
|
|
||||||
//
|
|
||||||
// oauth2Imgur
|
|
||||||
//
|
|
||||||
this.oauth2Imgur.Location = new System.Drawing.Point(16, 16);
|
|
||||||
this.oauth2Imgur.Name = "oauth2Imgur";
|
|
||||||
this.oauth2Imgur.Size = new System.Drawing.Size(328, 240);
|
|
||||||
this.oauth2Imgur.TabIndex = 0;
|
|
||||||
this.oauth2Imgur.OpenButtonClicked += new UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2Imgur_OpenButtonClicked);
|
|
||||||
this.oauth2Imgur.CompleteButtonClicked += new UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2Imgur_CompleteButtonClicked);
|
|
||||||
this.oauth2Imgur.ClearButtonClicked += new UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2Imgur_ClearButtonClicked);
|
|
||||||
this.oauth2Imgur.RefreshButtonClicked += new UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oauth2Imgur_RefreshButtonClicked);
|
|
||||||
//
|
|
||||||
// atcTinyPicAccountType
|
|
||||||
//
|
|
||||||
this.atcTinyPicAccountType.Location = new System.Drawing.Point(8, 8);
|
|
||||||
this.atcTinyPicAccountType.Name = "atcTinyPicAccountType";
|
|
||||||
this.atcTinyPicAccountType.SelectedAccountType = UploadersLib.AccountType.Anonymous;
|
|
||||||
this.atcTinyPicAccountType.Size = new System.Drawing.Size(272, 29);
|
|
||||||
this.atcTinyPicAccountType.TabIndex = 0;
|
|
||||||
this.atcTinyPicAccountType.AccountTypeChanged += new UploadersLib.AccountTypeControl.AccountTypeChangedEventHandler(this.atcTinyPicAccountType_AccountTypeChanged);
|
|
||||||
//
|
|
||||||
// oauth2Picasa
|
|
||||||
//
|
|
||||||
this.oauth2Picasa.Location = new System.Drawing.Point(16, 16);
|
|
||||||
this.oauth2Picasa.Name = "oauth2Picasa";
|
|
||||||
this.oauth2Picasa.Size = new System.Drawing.Size(328, 240);
|
|
||||||
this.oauth2Picasa.TabIndex = 0;
|
|
||||||
this.oauth2Picasa.OpenButtonClicked += new UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2Picasa_OpenButtonClicked);
|
|
||||||
this.oauth2Picasa.CompleteButtonClicked += new UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2Picasa_CompleteButtonClicked);
|
|
||||||
this.oauth2Picasa.ClearButtonClicked += new UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2Picasa_ClearButtonClicked);
|
|
||||||
this.oauth2Picasa.RefreshButtonClicked += new UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oauth2Picasa_RefreshButtonClicked);
|
|
||||||
//
|
|
||||||
// oAuth2Gist
|
|
||||||
//
|
|
||||||
this.oAuth2Gist.Enabled = false;
|
|
||||||
this.oAuth2Gist.IsRefreshable = false;
|
|
||||||
this.oAuth2Gist.Location = new System.Drawing.Point(16, 51);
|
|
||||||
this.oAuth2Gist.Name = "oAuth2Gist";
|
|
||||||
this.oAuth2Gist.Size = new System.Drawing.Size(328, 205);
|
|
||||||
this.oAuth2Gist.TabIndex = 2;
|
|
||||||
this.oAuth2Gist.OpenButtonClicked += new UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oAuth2Gist_OpenButtonClicked);
|
|
||||||
this.oAuth2Gist.CompleteButtonClicked += new UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oAuth2Gist_CompleteButtonClicked);
|
|
||||||
this.oAuth2Gist.ClearButtonClicked += new UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oAuth2Gist_ClearButtonClicked);
|
|
||||||
//
|
|
||||||
// atcGistAccountType
|
|
||||||
//
|
|
||||||
this.atcGistAccountType.Location = new System.Drawing.Point(15, 16);
|
|
||||||
this.atcGistAccountType.Name = "atcGistAccountType";
|
|
||||||
this.atcGistAccountType.SelectedAccountType = UploadersLib.AccountType.Anonymous;
|
|
||||||
this.atcGistAccountType.Size = new System.Drawing.Size(214, 29);
|
|
||||||
this.atcGistAccountType.TabIndex = 0;
|
|
||||||
this.atcGistAccountType.AccountTypeChanged += new UploadersLib.AccountTypeControl.AccountTypeChangedEventHandler(this.atcGistAccountType_AccountTypeChanged);
|
|
||||||
//
|
|
||||||
// oauth2Dropbox
|
|
||||||
//
|
|
||||||
this.oauth2Dropbox.IsRefreshable = false;
|
|
||||||
this.oauth2Dropbox.Location = new System.Drawing.Point(16, 88);
|
|
||||||
this.oauth2Dropbox.Name = "oauth2Dropbox";
|
|
||||||
this.oauth2Dropbox.Size = new System.Drawing.Size(328, 200);
|
|
||||||
this.oauth2Dropbox.TabIndex = 1;
|
|
||||||
this.oauth2Dropbox.OpenButtonClicked += new UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2Dropbox_OpenButtonClicked);
|
|
||||||
this.oauth2Dropbox.CompleteButtonClicked += new UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2Dropbox_CompleteButtonClicked);
|
|
||||||
this.oauth2Dropbox.ClearButtonClicked += new UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2Dropbox_ClearButtonClicked);
|
|
||||||
//
|
|
||||||
// oAuthCopy
|
|
||||||
//
|
|
||||||
this.oAuthCopy.IsRefreshable = false;
|
|
||||||
this.oAuthCopy.Location = new System.Drawing.Point(16, 88);
|
|
||||||
this.oAuthCopy.Name = "oAuthCopy";
|
|
||||||
this.oAuthCopy.Size = new System.Drawing.Size(328, 208);
|
|
||||||
this.oAuthCopy.TabIndex = 1;
|
|
||||||
this.oAuthCopy.OpenButtonClicked += new UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oAuthCopy_OpenButtonClicked);
|
|
||||||
this.oAuthCopy.CompleteButtonClicked += new UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oAuthCopy_CompleteButtonClicked);
|
|
||||||
this.oAuthCopy.ClearButtonClicked += new UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oAuthCopy_ClearButtonClicked);
|
|
||||||
//
|
|
||||||
// ucFTPAccounts
|
|
||||||
//
|
|
||||||
this.ucFTPAccounts.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
|
||||||
| System.Windows.Forms.AnchorStyles.Left)));
|
|
||||||
this.ucFTPAccounts.Location = new System.Drawing.Point(8, 40);
|
|
||||||
this.ucFTPAccounts.Margin = new System.Windows.Forms.Padding(4);
|
|
||||||
this.ucFTPAccounts.Name = "ucFTPAccounts";
|
|
||||||
this.ucFTPAccounts.Size = new System.Drawing.Size(792, 448);
|
|
||||||
this.ucFTPAccounts.TabIndex = 6;
|
|
||||||
//
|
|
||||||
// oauth2GoogleDrive
|
|
||||||
//
|
|
||||||
this.oauth2GoogleDrive.Location = new System.Drawing.Point(16, 16);
|
|
||||||
this.oauth2GoogleDrive.Name = "oauth2GoogleDrive";
|
|
||||||
this.oauth2GoogleDrive.Size = new System.Drawing.Size(328, 240);
|
|
||||||
this.oauth2GoogleDrive.TabIndex = 0;
|
|
||||||
this.oauth2GoogleDrive.OpenButtonClicked += new UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2GoogleDrive_OpenButtonClicked);
|
|
||||||
this.oauth2GoogleDrive.CompleteButtonClicked += new UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2GoogleDrive_CompleteButtonClicked);
|
|
||||||
this.oauth2GoogleDrive.ClearButtonClicked += new UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2GoogleDrive_ClearButtonClicked);
|
|
||||||
this.oauth2GoogleDrive.RefreshButtonClicked += new UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oauth2GoogleDrive_RefreshButtonClicked);
|
|
||||||
//
|
|
||||||
// oauth2Box
|
|
||||||
//
|
|
||||||
this.oauth2Box.Location = new System.Drawing.Point(16, 16);
|
|
||||||
this.oauth2Box.Name = "oauth2Box";
|
|
||||||
this.oauth2Box.Size = new System.Drawing.Size(328, 240);
|
|
||||||
this.oauth2Box.TabIndex = 0;
|
|
||||||
this.oauth2Box.OpenButtonClicked += new UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2Box_OpenButtonClicked);
|
|
||||||
this.oauth2Box.CompleteButtonClicked += new UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2Box_CompleteButtonClicked);
|
|
||||||
this.oauth2Box.ClearButtonClicked += new UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2Box_ClearButtonClicked);
|
|
||||||
this.oauth2Box.RefreshButtonClicked += new UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oauth2Box_RefreshButtonClicked);
|
|
||||||
//
|
|
||||||
// atcSendSpaceAccountType
|
|
||||||
//
|
|
||||||
this.atcSendSpaceAccountType.Location = new System.Drawing.Point(8, 16);
|
|
||||||
this.atcSendSpaceAccountType.Name = "atcSendSpaceAccountType";
|
|
||||||
this.atcSendSpaceAccountType.SelectedAccountType = UploadersLib.AccountType.Anonymous;
|
|
||||||
this.atcSendSpaceAccountType.Size = new System.Drawing.Size(214, 29);
|
|
||||||
this.atcSendSpaceAccountType.TabIndex = 0;
|
|
||||||
this.atcSendSpaceAccountType.AccountTypeChanged += new UploadersLib.AccountTypeControl.AccountTypeChangedEventHandler(this.atcSendSpaceAccountType_AccountTypeChanged);
|
|
||||||
//
|
|
||||||
// oAuthJira
|
|
||||||
//
|
|
||||||
this.oAuthJira.Location = new System.Drawing.Point(473, 13);
|
|
||||||
this.oAuthJira.Name = "oAuthJira";
|
|
||||||
this.oAuthJira.Size = new System.Drawing.Size(328, 243);
|
|
||||||
this.oAuthJira.TabIndex = 1;
|
|
||||||
this.oAuthJira.OpenButtonClicked += new UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oAuthJira_OpenButtonClicked);
|
|
||||||
this.oAuthJira.CompleteButtonClicked += new UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oAuthJira_CompleteButtonClicked);
|
|
||||||
this.oAuthJira.ClearButtonClicked += new UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oAuthJira_ClearButtonClicked);
|
|
||||||
this.oAuthJira.RefreshButtonClicked += new UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oAuthJira_RefreshButtonClicked);
|
|
||||||
//
|
|
||||||
// ucLocalhostAccounts
|
|
||||||
//
|
|
||||||
this.ucLocalhostAccounts.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
|
||||||
| System.Windows.Forms.AnchorStyles.Left)));
|
|
||||||
this.ucLocalhostAccounts.Location = new System.Drawing.Point(8, 40);
|
|
||||||
this.ucLocalhostAccounts.Margin = new System.Windows.Forms.Padding(4);
|
|
||||||
this.ucLocalhostAccounts.Name = "ucLocalhostAccounts";
|
|
||||||
this.ucLocalhostAccounts.Size = new System.Drawing.Size(792, 448);
|
|
||||||
this.ucLocalhostAccounts.TabIndex = 6;
|
|
||||||
//
|
|
||||||
// oauth2Bitly
|
|
||||||
//
|
|
||||||
this.oauth2Bitly.IsRefreshable = false;
|
|
||||||
this.oauth2Bitly.Location = new System.Drawing.Point(16, 16);
|
|
||||||
this.oauth2Bitly.Name = "oauth2Bitly";
|
|
||||||
this.oauth2Bitly.Size = new System.Drawing.Size(328, 208);
|
|
||||||
this.oauth2Bitly.TabIndex = 0;
|
|
||||||
this.oauth2Bitly.OpenButtonClicked += new UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2Bitly_OpenButtonClicked);
|
|
||||||
this.oauth2Bitly.CompleteButtonClicked += new UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2Bitly_CompleteButtonClicked);
|
|
||||||
this.oauth2Bitly.ClearButtonClicked += new UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2Bitly_ClearButtonClicked);
|
|
||||||
//
|
|
||||||
// oauth2GoogleURLShortener
|
|
||||||
//
|
|
||||||
this.oauth2GoogleURLShortener.Location = new System.Drawing.Point(16, 56);
|
|
||||||
this.oauth2GoogleURLShortener.Name = "oauth2GoogleURLShortener";
|
|
||||||
this.oauth2GoogleURLShortener.Size = new System.Drawing.Size(328, 240);
|
|
||||||
this.oauth2GoogleURLShortener.TabIndex = 1;
|
|
||||||
this.oauth2GoogleURLShortener.OpenButtonClicked += new UploadersLib.OAuthControl.OpenButtonClickedEventHandler(this.oauth2GoogleURLShortener_OpenButtonClicked);
|
|
||||||
this.oauth2GoogleURLShortener.CompleteButtonClicked += new UploadersLib.OAuthControl.CompleteButtonClickedEventHandler(this.oauth2GoogleURLShortener_CompleteButtonClicked);
|
|
||||||
this.oauth2GoogleURLShortener.ClearButtonClicked += new UploadersLib.OAuthControl.ClearButtonclickedEventHandler(this.oauth2GoogleURLShortener_ClearButtonClicked);
|
|
||||||
this.oauth2GoogleURLShortener.RefreshButtonClicked += new UploadersLib.OAuthControl.RefreshButtonClickedEventHandler(this.oauth2GoogleURLShortener_RefreshButtonClicked);
|
|
||||||
//
|
|
||||||
// atcGoogleURLShortenerAccountType
|
|
||||||
//
|
|
||||||
this.atcGoogleURLShortenerAccountType.Location = new System.Drawing.Point(8, 16);
|
|
||||||
this.atcGoogleURLShortenerAccountType.Name = "atcGoogleURLShortenerAccountType";
|
|
||||||
this.atcGoogleURLShortenerAccountType.SelectedAccountType = UploadersLib.AccountType.Anonymous;
|
|
||||||
this.atcGoogleURLShortenerAccountType.Size = new System.Drawing.Size(214, 29);
|
|
||||||
this.atcGoogleURLShortenerAccountType.TabIndex = 0;
|
|
||||||
this.atcGoogleURLShortenerAccountType.AccountTypeChanged += new UploadersLib.AccountTypeControl.AccountTypeChangedEventHandler(this.atcGoogleURLShortenerAccountType_AccountTypeChanged);
|
|
||||||
//
|
|
||||||
// ucTwitterAccounts
|
|
||||||
//
|
|
||||||
this.ucTwitterAccounts.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
||||||
this.ucTwitterAccounts.Location = new System.Drawing.Point(0, 0);
|
|
||||||
this.ucTwitterAccounts.Margin = new System.Windows.Forms.Padding(0);
|
|
||||||
this.ucTwitterAccounts.Name = "ucTwitterAccounts";
|
|
||||||
this.ucTwitterAccounts.Size = new System.Drawing.Size(972, 493);
|
|
||||||
this.ucTwitterAccounts.TabIndex = 0;
|
|
||||||
//
|
|
||||||
// actRapidShareAccountType
|
// actRapidShareAccountType
|
||||||
//
|
//
|
||||||
this.actRapidShareAccountType.Location = new System.Drawing.Point(8, 16);
|
this.actRapidShareAccountType.Location = new System.Drawing.Point(8, 16);
|
||||||
|
@ -4062,6 +4064,17 @@ private void InitializeComponent()
|
||||||
this.actRapidShareAccountType.Size = new System.Drawing.Size(214, 29);
|
this.actRapidShareAccountType.Size = new System.Drawing.Size(214, 29);
|
||||||
this.actRapidShareAccountType.TabIndex = 16;
|
this.actRapidShareAccountType.TabIndex = 16;
|
||||||
//
|
//
|
||||||
|
// cbImgurDirectLink
|
||||||
|
//
|
||||||
|
this.cbImgurDirectLink.AutoSize = true;
|
||||||
|
this.cbImgurDirectLink.Location = new System.Drawing.Point(19, 296);
|
||||||
|
this.cbImgurDirectLink.Name = "cbImgurDirectLink";
|
||||||
|
this.cbImgurDirectLink.Size = new System.Drawing.Size(93, 17);
|
||||||
|
this.cbImgurDirectLink.TabIndex = 8;
|
||||||
|
this.cbImgurDirectLink.Text = "Use direct link";
|
||||||
|
this.cbImgurDirectLink.UseVisualStyleBackColor = true;
|
||||||
|
this.cbImgurDirectLink.CheckedChanged += new System.EventHandler(this.cbImgurDirectLink_CheckedChanged);
|
||||||
|
//
|
||||||
// UploadersConfigForm
|
// UploadersConfigForm
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
|
@ -4529,5 +4542,6 @@ private void InitializeComponent()
|
||||||
private System.Windows.Forms.TextBox txtAdflyAPIKEY;
|
private System.Windows.Forms.TextBox txtAdflyAPIKEY;
|
||||||
private System.Windows.Forms.Label lblAdflyAPIKEY;
|
private System.Windows.Forms.Label lblAdflyAPIKEY;
|
||||||
private System.Windows.Forms.LinkLabel llAdflyLink;
|
private System.Windows.Forms.LinkLabel llAdflyLink;
|
||||||
|
private System.Windows.Forms.CheckBox cbImgurDirectLink;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -179,6 +179,7 @@ public void LoadSettings(UploadersConfig uploadersConfig)
|
||||||
// Imgur
|
// Imgur
|
||||||
|
|
||||||
atcImgurAccountType.SelectedAccountType = Config.ImgurAccountType;
|
atcImgurAccountType.SelectedAccountType = Config.ImgurAccountType;
|
||||||
|
cbImgurDirectLink.Checked = Config.ImgurDirectLink;
|
||||||
cbImgurThumbnailType.Items.Clear();
|
cbImgurThumbnailType.Items.Clear();
|
||||||
cbImgurThumbnailType.Items.AddRange(Helpers.GetEnumDescriptions<ImgurThumbnailType>());
|
cbImgurThumbnailType.Items.AddRange(Helpers.GetEnumDescriptions<ImgurThumbnailType>());
|
||||||
cbImgurThumbnailType.SelectedIndex = (int)Config.ImgurThumbnailType;
|
cbImgurThumbnailType.SelectedIndex = (int)Config.ImgurThumbnailType;
|
||||||
|
@ -550,6 +551,11 @@ private void atcImgurAccountType_AccountTypeChanged(AccountType accountType)
|
||||||
Config.ImgurAccountType = accountType;
|
Config.ImgurAccountType = accountType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void cbImgurDirectLink_CheckedChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Config.ImgurDirectLink = cbImgurDirectLink.Checked;
|
||||||
|
}
|
||||||
|
|
||||||
private void cbImgurThumbnailType_SelectedIndexChanged(object sender, EventArgs e)
|
private void cbImgurThumbnailType_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
Config.ImgurThumbnailType = (ImgurThumbnailType)cbImgurThumbnailType.SelectedIndex;
|
Config.ImgurThumbnailType = (ImgurThumbnailType)cbImgurThumbnailType.SelectedIndex;
|
||||||
|
|
|
@ -24,6 +24,7 @@ You should have received a copy of the GNU General Public License
|
||||||
#endregion License Information (GPL v3)
|
#endregion License Information (GPL v3)
|
||||||
|
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Collections.Specialized;
|
using System.Collections.Specialized;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
|
@ -34,17 +35,17 @@ namespace UploadersLib.ImageUploaders
|
||||||
{
|
{
|
||||||
public enum ImgurThumbnailType
|
public enum ImgurThumbnailType
|
||||||
{
|
{
|
||||||
[Description("Small Square")]
|
[Description("Small square")]
|
||||||
Small_Square,
|
Small_Square,
|
||||||
[Description("Big Square")]
|
[Description("Big square")]
|
||||||
Big_Square,
|
Big_Square,
|
||||||
[Description("Small Thumbnail")]
|
[Description("Small thumbnail")]
|
||||||
Small_Thumbnail,
|
Small_Thumbnail,
|
||||||
[Description("Medium Thumbnail")]
|
[Description("Medium thumbnail")]
|
||||||
Medium_Thumbnail,
|
Medium_Thumbnail,
|
||||||
[Description("Large Thumbnail")]
|
[Description("Large thumbnail")]
|
||||||
Large_Thumbnail,
|
Large_Thumbnail,
|
||||||
[Description("Huge Thumbnail")]
|
[Description("Huge thumbnail")]
|
||||||
Huge_Thumbnail
|
Huge_Thumbnail
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -54,6 +55,7 @@ public sealed class Imgur_v3 : ImageUploader, IOAuth2
|
||||||
public OAuth2Info AuthInfo { get; set; }
|
public OAuth2Info AuthInfo { get; set; }
|
||||||
public ImgurThumbnailType ThumbnailType { get; set; }
|
public ImgurThumbnailType ThumbnailType { get; set; }
|
||||||
public string UploadAlbumID { get; set; }
|
public string UploadAlbumID { get; set; }
|
||||||
|
public bool DirectLink { get; set; }
|
||||||
|
|
||||||
public Imgur_v3(OAuth2Info oauth)
|
public Imgur_v3(OAuth2Info oauth)
|
||||||
{
|
{
|
||||||
|
@ -202,15 +204,27 @@ public override UploadResult Upload(Stream stream, string fileName)
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(result.Response))
|
if (!string.IsNullOrEmpty(result.Response))
|
||||||
{
|
{
|
||||||
ImgurUpload upload = JsonConvert.DeserializeObject<ImgurUpload>(result.Response);
|
JToken jsonResponse = JToken.Parse(result.Response);
|
||||||
|
|
||||||
if (upload != null)
|
if (jsonResponse != null)
|
||||||
{
|
{
|
||||||
if (upload.success)
|
bool success = jsonResponse["success"].Value<bool>();
|
||||||
|
int status = jsonResponse["status"].Value<int>();
|
||||||
|
|
||||||
|
if (success && status == 200)
|
||||||
{
|
{
|
||||||
if (upload.data != null && !string.IsNullOrEmpty(upload.data.link))
|
ImgurUploadData uploadData = jsonResponse["data"].ToObject<ImgurUploadData>();
|
||||||
|
|
||||||
|
if (uploadData != null && !string.IsNullOrEmpty(uploadData.link))
|
||||||
{
|
{
|
||||||
result.URL = upload.data.link;
|
if (DirectLink)
|
||||||
|
{
|
||||||
|
result.URL = uploadData.link;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
result.URL = "http://imgur.com/" + uploadData.id;
|
||||||
|
}
|
||||||
|
|
||||||
int index = result.URL.LastIndexOf('.');
|
int index = result.URL.LastIndexOf('.');
|
||||||
string thumbnail = string.Empty;
|
string thumbnail = string.Empty;
|
||||||
|
@ -237,13 +251,19 @@ public override UploadResult Upload(Stream stream, string fileName)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
result.ThumbnailURL = result.URL.Remove(index) + thumbnail + result.URL.Substring(index);
|
result.ThumbnailURL = string.Format("http://i.imgur.com/{0}{1}.jpg", uploadData.id, thumbnail); // Thumbnails always jpg
|
||||||
result.DeletionURL = "http://imgur.com/delete/" + upload.data.deletehash;
|
result.DeletionURL = "http://imgur.com/delete/" + uploadData.deletehash;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Errors.Add("Imgur upload failed. Status code: " + upload.status);
|
ImgurErrorData errorData = jsonResponse["data"].ToObject<ImgurErrorData>();
|
||||||
|
|
||||||
|
if (errorData != null && !string.IsNullOrEmpty(errorData.error))
|
||||||
|
{
|
||||||
|
string errorMessage = string.Format("Status: {0}, Error: {1}", status, errorData.error);
|
||||||
|
Errors.Add(errorMessage);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -259,13 +279,6 @@ public class ImgurUploadData
|
||||||
public string link { get; set; }
|
public string link { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class ImgurUpload
|
|
||||||
{
|
|
||||||
public ImgurUploadData data { get; set; }
|
|
||||||
public bool success { get; set; }
|
|
||||||
public int status { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class ImgurAlbumData
|
public class ImgurAlbumData
|
||||||
{
|
{
|
||||||
public string id { get; set; }
|
public string id { get; set; }
|
||||||
|
@ -282,6 +295,13 @@ public class ImgurAlbumData
|
||||||
public int order { get; set; }
|
public int order { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class ImgurErrorData
|
||||||
|
{
|
||||||
|
public string error { get; set; }
|
||||||
|
public string request { get; set; }
|
||||||
|
public string method { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
public class ImgurAlbums
|
public class ImgurAlbums
|
||||||
{
|
{
|
||||||
public List<ImgurAlbumData> data { get; set; }
|
public List<ImgurAlbumData> data { get; set; }
|
||||||
|
|
|
@ -42,6 +42,7 @@ public class UploadersConfig : SettingsBase<UploadersConfig>
|
||||||
// Imgur
|
// Imgur
|
||||||
|
|
||||||
public AccountType ImgurAccountType = AccountType.Anonymous;
|
public AccountType ImgurAccountType = AccountType.Anonymous;
|
||||||
|
public bool ImgurDirectLink = true;
|
||||||
public ImgurThumbnailType ImgurThumbnailType = ImgurThumbnailType.Large_Thumbnail;
|
public ImgurThumbnailType ImgurThumbnailType = ImgurThumbnailType.Large_Thumbnail;
|
||||||
public OAuth2Info ImgurOAuth2Info = null;
|
public OAuth2Info ImgurOAuth2Info = null;
|
||||||
public string ImgurAlbumID = string.Empty;
|
public string ImgurAlbumID = string.Empty;
|
||||||
|
|
Loading…
Reference in a new issue