Add streamable config form (-resx)

This commit is contained in:
Armen Petrosian 2015-12-01 13:15:52 -05:00
parent d0d292e543
commit d5b886a2ed
2 changed files with 97 additions and 6 deletions

View file

@ -308,6 +308,7 @@ private void InitializeComponent()
this.lblLambdaUploadURL = new System.Windows.Forms.Label();
this.cbLambdaUploadURL = new System.Windows.Forms.ComboBox();
this.tpPomf = new System.Windows.Forms.TabPage();
this.btnPomfTest = new System.Windows.Forms.Button();
this.txtPomfResultURL = new System.Windows.Forms.TextBox();
this.txtPomfUploadURL = new System.Windows.Forms.TextBox();
this.lblPomfResultURL = new System.Windows.Forms.Label();
@ -499,7 +500,12 @@ private void InitializeComponent()
this.lblWidthHint = new System.Windows.Forms.Label();
this.ttlvMain = new ShareX.HelpersLib.TabToListView();
this.actRapidShareAccountType = new ShareX.UploadersLib.AccountTypeControl();
this.btnPomfTest = new System.Windows.Forms.Button();
this.tpStreamable = new System.Windows.Forms.TabPage();
this.txtStreamablePassword = new System.Windows.Forms.TextBox();
this.txtStreamableUsername = new System.Windows.Forms.TextBox();
this.lblStreamableUsername = new System.Windows.Forms.Label();
this.lblStreamablePassword = new System.Windows.Forms.Label();
this.cbStreamableAnonymous = new System.Windows.Forms.CheckBox();
this.tpOtherUploaders.SuspendLayout();
this.tcOtherUploaders.SuspendLayout();
this.tpTwitter.SuspendLayout();
@ -572,6 +578,7 @@ private void InitializeComponent()
this.tpPicasa.SuspendLayout();
this.tpChevereto.SuspendLayout();
this.tcUploaders.SuspendLayout();
this.tpStreamable.SuspendLayout();
this.SuspendLayout();
//
// txtRapidSharePremiumUserName
@ -1473,6 +1480,7 @@ private void InitializeComponent()
this.tcFileUploaders.Controls.Add(this.tpPomf);
this.tcFileUploaders.Controls.Add(this.tpUp1);
this.tcFileUploaders.Controls.Add(this.tpSeafile);
this.tcFileUploaders.Controls.Add(this.tpStreamable);
this.tcFileUploaders.Controls.Add(this.tpEmail);
this.tcFileUploaders.Controls.Add(this.tpSharedFolder);
resources.ApplyResources(this.tcFileUploaders, "tcFileUploaders");
@ -2615,6 +2623,13 @@ private void InitializeComponent()
this.tpPomf.Name = "tpPomf";
this.tpPomf.UseVisualStyleBackColor = true;
//
// btnPomfTest
//
resources.ApplyResources(this.btnPomfTest, "btnPomfTest");
this.btnPomfTest.Name = "btnPomfTest";
this.btnPomfTest.UseVisualStyleBackColor = true;
this.btnPomfTest.Click += new System.EventHandler(this.btnPomfTest_Click);
//
// txtPomfResultURL
//
resources.ApplyResources(this.txtPomfResultURL, "txtPomfResultURL");
@ -3990,12 +4005,46 @@ private void InitializeComponent()
this.actRapidShareAccountType.Name = "actRapidShareAccountType";
this.actRapidShareAccountType.SelectedAccountType = ShareX.UploadersLib.AccountType.Anonymous;
//
// btnPomfTest
// tpStreamable
//
resources.ApplyResources(this.btnPomfTest, "btnPomfTest");
this.btnPomfTest.Name = "btnPomfTest";
this.btnPomfTest.UseVisualStyleBackColor = true;
this.btnPomfTest.Click += new System.EventHandler(this.btnPomfTest_Click);
this.tpStreamable.Controls.Add(this.txtStreamablePassword);
this.tpStreamable.Controls.Add(this.txtStreamableUsername);
this.tpStreamable.Controls.Add(this.lblStreamableUsername);
this.tpStreamable.Controls.Add(this.lblStreamablePassword);
this.tpStreamable.Controls.Add(this.cbStreamableAnonymous);
resources.ApplyResources(this.tpStreamable, "tpStreamable");
this.tpStreamable.Name = "tpStreamable";
this.tpStreamable.UseVisualStyleBackColor = true;
//
// txtStreamablePassword
//
resources.ApplyResources(this.txtStreamablePassword, "txtStreamablePassword");
this.txtStreamablePassword.Name = "txtStreamablePassword";
this.txtStreamablePassword.UseSystemPasswordChar = true;
this.txtStreamablePassword.TextChanged += new System.EventHandler(this.txtStreamablePassword_TextChanged);
//
// txtStreamableUsername
//
resources.ApplyResources(this.txtStreamableUsername, "txtStreamableUsername");
this.txtStreamableUsername.Name = "txtStreamableUsername";
this.txtStreamableUsername.TextChanged += new System.EventHandler(this.txtStreamableUsername_TextChanged);
//
// lblStreamableUsername
//
resources.ApplyResources(this.lblStreamableUsername, "lblStreamableUsername");
this.lblStreamableUsername.Name = "lblStreamableUsername";
//
// lblStreamablePassword
//
resources.ApplyResources(this.lblStreamablePassword, "lblStreamablePassword");
this.lblStreamablePassword.Name = "lblStreamablePassword";
//
// cboxStreamableAnonymous
//
resources.ApplyResources(this.cbStreamableAnonymous, "cboxStreamableAnonymous");
this.cbStreamableAnonymous.Name = "cboxStreamableAnonymous";
this.cbStreamableAnonymous.UseVisualStyleBackColor = true;
this.cbStreamableAnonymous.CheckedChanged += new System.EventHandler(this.cboxStreamableAnonymous_CheckedChanged);
//
// UploadersConfigForm
//
@ -4134,6 +4183,8 @@ private void InitializeComponent()
this.tpChevereto.ResumeLayout(false);
this.tpChevereto.PerformLayout();
this.tcUploaders.ResumeLayout(false);
this.tpStreamable.ResumeLayout(false);
this.tpStreamable.PerformLayout();
this.ResumeLayout(false);
}
@ -4610,5 +4661,11 @@ private void InitializeComponent()
internal System.Windows.Forms.ColumnHeader chCustomUploaderHeadersName;
internal System.Windows.Forms.ColumnHeader chCustomUploaderHeadersValue;
private System.Windows.Forms.Button btnPomfTest;
private System.Windows.Forms.TabPage tpStreamable;
private System.Windows.Forms.TextBox txtStreamablePassword;
private System.Windows.Forms.TextBox txtStreamableUsername;
private System.Windows.Forms.Label lblStreamableUsername;
private System.Windows.Forms.Label lblStreamablePassword;
private System.Windows.Forms.CheckBox cbStreamableAnonymous;
}
}

View file

@ -108,6 +108,7 @@ private void FormSettings()
AddIconToTab(tpPomf, Resources.Pomf);
AddIconToTab(tpPushbullet, Resources.Pushbullet);
AddIconToTab(tpSeafile, Resources.Seafile);
AddIconToTab(tpStreamable, Resources.Streamable);
AddIconToTab(tpSendSpace, Resources.SendSpace);
AddIconToTab(tpSharedFolder, Resources.server_network);
AddIconToTab(tpTinyPic, Resources.TinyPic);
@ -577,6 +578,17 @@ public void LoadSettings()
txtSeafileAccInfoEmail.Text = Config.SeafileAccInfoEmail;
txtSeafileAccInfoUsage.Text = Config.SeafileAccInfoUsage;
// Streamable
cbStreamableAnonymous.Checked = Config.StreamableAnonymous;
txtStreamablePassword.Text = Config.StreamablePassword;
txtStreamableUsername.Text = Config.StreamableUsername;
if (Config.StreamableAnonymous)
{
txtStreamableUsername.Enabled = false;
txtStreamablePassword.Enabled = false;
}
#endregion File uploaders
#region URL Shorteners
@ -2347,6 +2359,27 @@ private void txtSeafileSharePassword_TextChanged(object sender, EventArgs e)
#endregion Seafile
#region Streamable
private void cboxStreamableAnonymous_CheckedChanged(object sender, EventArgs e)
{
Config.StreamableAnonymous = cbStreamableAnonymous.Checked;
txtStreamableUsername.Enabled = !Config.StreamableAnonymous;
txtStreamablePassword.Enabled = !Config.StreamableAnonymous;
}
private void txtStreamableUsername_TextChanged(object sender, EventArgs e)
{
Config.StreamableUsername = txtStreamableUsername.Text;
}
private void txtStreamablePassword_TextChanged(object sender, EventArgs e)
{
Config.StreamablePassword = txtStreamablePassword.Text;
}
#endregion Streamable
#endregion File Uploaders
#region URL Shorteners
@ -2888,5 +2921,6 @@ private void txtCustomUploaderLog_LinkClicked(object sender, LinkClickedEventArg
#endregion Custom Uploaders
#endregion Other Uploaders
}
}