#1298 Update 12 Feb 2016

- Added SomeImage.Png as resource bitmap (it's located in the
ShareX.UploadersLib\Favicons\ folder)
- Use LinkLabel instead of Label for SomeImage API Link Message
- Name of any added controls is more descriptive
This commit is contained in:
Jevan Pipitone 2016-02-12 18:15:43 +11:00
parent bd4e4da627
commit 2488cde26b
7 changed files with 42 additions and 20 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

View file

@ -528,7 +528,7 @@ private void InitializeComponent()
this.lblWidthHint = new System.Windows.Forms.Label();
this.ttlvMain = new ShareX.HelpersLib.TabToListView();
this.actRapidShareAccountType = new ShareX.UploadersLib.AccountTypeControl();
this.label1 = new System.Windows.Forms.Label();
this.linkLblSomeImageAPIKey = new System.Windows.Forms.LinkLabel();
this.tpOtherUploaders.SuspendLayout();
this.tcOtherUploaders.SuspendLayout();
this.tpTwitter.SuspendLayout();
@ -4177,7 +4177,7 @@ private void InitializeComponent()
//
// tpSomeImage
//
this.tpSomeImage.Controls.Add(this.label1);
this.tpSomeImage.Controls.Add(this.linkLblSomeImageAPIKey);
this.tpSomeImage.Controls.Add(this.txtSomeImageAPIKey);
this.tpSomeImage.Controls.Add(this.lblSomeImageAPIKey);
this.tpSomeImage.Controls.Add(this.cbSomeImageDirectURL);
@ -4234,10 +4234,12 @@ private void InitializeComponent()
this.actRapidShareAccountType.Name = "actRapidShareAccountType";
this.actRapidShareAccountType.SelectedAccountType = ShareX.UploadersLib.AccountType.Anonymous;
//
// label1
// linkLblSomeImageAPIKey
//
resources.ApplyResources(this.label1, "label1");
this.label1.Name = "label1";
resources.ApplyResources(this.linkLblSomeImageAPIKey, "linkLblSomeImageAPIKey");
this.linkLblSomeImageAPIKey.Name = "linkLblSomeImageAPIKey";
this.linkLblSomeImageAPIKey.TabStop = true;
this.linkLblSomeImageAPIKey.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLblSomeImageAPIKey_LinkClicked);
//
// UploadersConfigForm
//
@ -4891,6 +4893,6 @@ private void InitializeComponent()
private System.Windows.Forms.CheckBox cbSomeImageDirectURL;
private System.Windows.Forms.TextBox txtSomeImageAPIKey;
private System.Windows.Forms.Label lblSomeImageAPIKey;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.LinkLabel linkLblSomeImageAPIKey;
}
}

View file

@ -114,6 +114,7 @@ private void FormSettings()
AddIconToTab(tpStreamable, Resources.Streamable);
AddIconToTab(tpSendSpace, Resources.SendSpace);
AddIconToTab(tpSharedFolder, Resources.server_network);
AddIconToTab(tpSomeImage, Resources.SomeImage);
AddIconToTab(tpTinyPic, Resources.TinyPic);
AddIconToTab(tpTwitter, Resources.Twitter);
AddIconToTab(tpUp1, Resources.Up1);
@ -1010,6 +1011,11 @@ private void cbSomeImageDirectURL_CheckedChanged(object sender, EventArgs e)
Config.SomeImageDirectURL = cbSomeImageDirectURL.Checked;
}
private void linkLblSomeImageAPIKey_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start("https://someimage.com/api");
}
#endregion SomeImage
#endregion Image Uploaders

View file

@ -14113,31 +14113,31 @@ Using an encrypted library disables sharing.</value>
<data name="&gt;&gt;tpChevereto.ZOrder" xml:space="preserve">
<value>6</value>
</data>
<data name="label1.AutoSize" type="System.Boolean, mscorlib">
<data name="linkLblSomeImageAPIKey.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="label1.Location" type="System.Drawing.Point, System.Drawing">
<value>378, 46</value>
<data name="linkLblSomeImageAPIKey.Location" type="System.Drawing.Point, System.Drawing">
<value>376, 46</value>
</data>
<data name="label1.Size" type="System.Drawing.Size, System.Drawing">
<data name="linkLblSomeImageAPIKey.Size" type="System.Drawing.Size, System.Drawing">
<value>300, 17</value>
</data>
<data name="label1.TabIndex" type="System.Int32, mscorlib">
<value>3</value>
<data name="linkLblSomeImageAPIKey.TabIndex" type="System.Int32, mscorlib">
<value>4</value>
</data>
<data name="label1.Text" xml:space="preserve">
<data name="linkLblSomeImageAPIKey.Text" xml:space="preserve">
<value>To get API key visit https://someimage.com/api</value>
</data>
<data name="&gt;&gt;label1.Name" xml:space="preserve">
<value>label1</value>
<data name="&gt;&gt;linkLblSomeImageAPIKey.Name" xml:space="preserve">
<value>linkLblSomeImageAPIKey</value>
</data>
<data name="&gt;&gt;label1.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<data name="&gt;&gt;linkLblSomeImageAPIKey.Type" xml:space="preserve">
<value>System.Windows.Forms.LinkLabel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;label1.Parent" xml:space="preserve">
<data name="&gt;&gt;linkLblSomeImageAPIKey.Parent" xml:space="preserve">
<value>tpSomeImage</value>
</data>
<data name="&gt;&gt;label1.ZOrder" xml:space="preserve">
<data name="&gt;&gt;linkLblSomeImageAPIKey.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="txtSomeImageAPIKey.Location" type="System.Drawing.Point, System.Drawing">

View file

@ -906,6 +906,16 @@ internal class Resources {
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap SomeImage {
get {
object obj = ResourceManager.GetObject("SomeImage", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
/// </summary>

View file

@ -371,7 +371,7 @@ Created folders:</value>
<data name="Seafile" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Favicons\Seafile.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Sul" type="System.Resources.ResXFileRef, System.Windows.Forms">
<data name="Sul" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Favicons\Sul.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="UploadersConfigForm_MinusUpdateControls_Not_logged_in_" xml:space="preserve">
@ -443,6 +443,9 @@ Created folders:</value>
<data name="Chevereto" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Favicons\Chevereto.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="SomeImage" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Favicons\SomeImage.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="AmazonS3" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Favicons\AmazonS3.ico;System.Drawing.Icon, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>

View file

@ -884,6 +884,7 @@
<None Include="Resources\question-button.png" />
</ItemGroup>
<ItemGroup>
<Content Include="Favicons\SomeImage.png" />
<Content Include="Favicons\Sul.png" />
</ItemGroup>
<ItemGroup>