mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-02 21:20:28 +12:00
#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:
parent
bd4e4da627
commit
2488cde26b
BIN
ShareX.UploadersLib/Favicons/SomeImage.png
Normal file
BIN
ShareX.UploadersLib/Favicons/SomeImage.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3 KiB |
|
@ -528,7 +528,7 @@ private void InitializeComponent()
|
||||||
this.lblWidthHint = new System.Windows.Forms.Label();
|
this.lblWidthHint = new System.Windows.Forms.Label();
|
||||||
this.ttlvMain = new ShareX.HelpersLib.TabToListView();
|
this.ttlvMain = new ShareX.HelpersLib.TabToListView();
|
||||||
this.actRapidShareAccountType = new ShareX.UploadersLib.AccountTypeControl();
|
this.actRapidShareAccountType = new ShareX.UploadersLib.AccountTypeControl();
|
||||||
this.label1 = new System.Windows.Forms.Label();
|
this.linkLblSomeImageAPIKey = new System.Windows.Forms.LinkLabel();
|
||||||
this.tpOtherUploaders.SuspendLayout();
|
this.tpOtherUploaders.SuspendLayout();
|
||||||
this.tcOtherUploaders.SuspendLayout();
|
this.tcOtherUploaders.SuspendLayout();
|
||||||
this.tpTwitter.SuspendLayout();
|
this.tpTwitter.SuspendLayout();
|
||||||
|
@ -4177,7 +4177,7 @@ private void InitializeComponent()
|
||||||
//
|
//
|
||||||
// tpSomeImage
|
// tpSomeImage
|
||||||
//
|
//
|
||||||
this.tpSomeImage.Controls.Add(this.label1);
|
this.tpSomeImage.Controls.Add(this.linkLblSomeImageAPIKey);
|
||||||
this.tpSomeImage.Controls.Add(this.txtSomeImageAPIKey);
|
this.tpSomeImage.Controls.Add(this.txtSomeImageAPIKey);
|
||||||
this.tpSomeImage.Controls.Add(this.lblSomeImageAPIKey);
|
this.tpSomeImage.Controls.Add(this.lblSomeImageAPIKey);
|
||||||
this.tpSomeImage.Controls.Add(this.cbSomeImageDirectURL);
|
this.tpSomeImage.Controls.Add(this.cbSomeImageDirectURL);
|
||||||
|
@ -4234,10 +4234,12 @@ private void InitializeComponent()
|
||||||
this.actRapidShareAccountType.Name = "actRapidShareAccountType";
|
this.actRapidShareAccountType.Name = "actRapidShareAccountType";
|
||||||
this.actRapidShareAccountType.SelectedAccountType = ShareX.UploadersLib.AccountType.Anonymous;
|
this.actRapidShareAccountType.SelectedAccountType = ShareX.UploadersLib.AccountType.Anonymous;
|
||||||
//
|
//
|
||||||
// label1
|
// linkLblSomeImageAPIKey
|
||||||
//
|
//
|
||||||
resources.ApplyResources(this.label1, "label1");
|
resources.ApplyResources(this.linkLblSomeImageAPIKey, "linkLblSomeImageAPIKey");
|
||||||
this.label1.Name = "label1";
|
this.linkLblSomeImageAPIKey.Name = "linkLblSomeImageAPIKey";
|
||||||
|
this.linkLblSomeImageAPIKey.TabStop = true;
|
||||||
|
this.linkLblSomeImageAPIKey.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLblSomeImageAPIKey_LinkClicked);
|
||||||
//
|
//
|
||||||
// UploadersConfigForm
|
// UploadersConfigForm
|
||||||
//
|
//
|
||||||
|
@ -4891,6 +4893,6 @@ private void InitializeComponent()
|
||||||
private System.Windows.Forms.CheckBox cbSomeImageDirectURL;
|
private System.Windows.Forms.CheckBox cbSomeImageDirectURL;
|
||||||
private System.Windows.Forms.TextBox txtSomeImageAPIKey;
|
private System.Windows.Forms.TextBox txtSomeImageAPIKey;
|
||||||
private System.Windows.Forms.Label lblSomeImageAPIKey;
|
private System.Windows.Forms.Label lblSomeImageAPIKey;
|
||||||
private System.Windows.Forms.Label label1;
|
private System.Windows.Forms.LinkLabel linkLblSomeImageAPIKey;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -114,6 +114,7 @@ private void FormSettings()
|
||||||
AddIconToTab(tpStreamable, Resources.Streamable);
|
AddIconToTab(tpStreamable, Resources.Streamable);
|
||||||
AddIconToTab(tpSendSpace, Resources.SendSpace);
|
AddIconToTab(tpSendSpace, Resources.SendSpace);
|
||||||
AddIconToTab(tpSharedFolder, Resources.server_network);
|
AddIconToTab(tpSharedFolder, Resources.server_network);
|
||||||
|
AddIconToTab(tpSomeImage, Resources.SomeImage);
|
||||||
AddIconToTab(tpTinyPic, Resources.TinyPic);
|
AddIconToTab(tpTinyPic, Resources.TinyPic);
|
||||||
AddIconToTab(tpTwitter, Resources.Twitter);
|
AddIconToTab(tpTwitter, Resources.Twitter);
|
||||||
AddIconToTab(tpUp1, Resources.Up1);
|
AddIconToTab(tpUp1, Resources.Up1);
|
||||||
|
@ -1010,6 +1011,11 @@ private void cbSomeImageDirectURL_CheckedChanged(object sender, EventArgs e)
|
||||||
Config.SomeImageDirectURL = cbSomeImageDirectURL.Checked;
|
Config.SomeImageDirectURL = cbSomeImageDirectURL.Checked;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void linkLblSomeImageAPIKey_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||||
|
{
|
||||||
|
System.Diagnostics.Process.Start("https://someimage.com/api");
|
||||||
|
}
|
||||||
|
|
||||||
#endregion SomeImage
|
#endregion SomeImage
|
||||||
|
|
||||||
#endregion Image Uploaders
|
#endregion Image Uploaders
|
||||||
|
|
|
@ -14113,31 +14113,31 @@ Using an encrypted library disables sharing.</value>
|
||||||
<data name=">>tpChevereto.ZOrder" xml:space="preserve">
|
<data name=">>tpChevereto.ZOrder" xml:space="preserve">
|
||||||
<value>6</value>
|
<value>6</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label1.AutoSize" type="System.Boolean, mscorlib">
|
<data name="linkLblSomeImageAPIKey.AutoSize" type="System.Boolean, mscorlib">
|
||||||
<value>True</value>
|
<value>True</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label1.Location" type="System.Drawing.Point, System.Drawing">
|
<data name="linkLblSomeImageAPIKey.Location" type="System.Drawing.Point, System.Drawing">
|
||||||
<value>378, 46</value>
|
<value>376, 46</value>
|
||||||
</data>
|
</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>
|
<value>300, 17</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label1.TabIndex" type="System.Int32, mscorlib">
|
<data name="linkLblSomeImageAPIKey.TabIndex" type="System.Int32, mscorlib">
|
||||||
<value>3</value>
|
<value>4</value>
|
||||||
</data>
|
</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>
|
<value>To get API key visit https://someimage.com/api</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label1.Name" xml:space="preserve">
|
<data name=">>linkLblSomeImageAPIKey.Name" xml:space="preserve">
|
||||||
<value>label1</value>
|
<value>linkLblSomeImageAPIKey</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label1.Type" xml:space="preserve">
|
<data name=">>linkLblSomeImageAPIKey.Type" xml:space="preserve">
|
||||||
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Windows.Forms.LinkLabel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label1.Parent" xml:space="preserve">
|
<data name=">>linkLblSomeImageAPIKey.Parent" xml:space="preserve">
|
||||||
<value>tpSomeImage</value>
|
<value>tpSomeImage</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>label1.ZOrder" xml:space="preserve">
|
<data name=">>linkLblSomeImageAPIKey.ZOrder" xml:space="preserve">
|
||||||
<value>0</value>
|
<value>0</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="txtSomeImageAPIKey.Location" type="System.Drawing.Point, System.Drawing">
|
<data name="txtSomeImageAPIKey.Location" type="System.Drawing.Point, System.Drawing">
|
||||||
|
|
10
ShareX.UploadersLib/Properties/Resources.Designer.cs
generated
10
ShareX.UploadersLib/Properties/Resources.Designer.cs
generated
|
@ -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>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
|
/// Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -371,7 +371,7 @@ Created folders:</value>
|
||||||
<data name="Seafile" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<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>
|
<value>..\Favicons\Seafile.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</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>
|
<value>..\Favicons\Sul.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="UploadersConfigForm_MinusUpdateControls_Not_logged_in_" xml:space="preserve">
|
<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">
|
<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>
|
<value>..\Favicons\Chevereto.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</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">
|
<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>
|
<value>..\Favicons\AmazonS3.ico;System.Drawing.Icon, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
|
|
|
@ -884,6 +884,7 @@
|
||||||
<None Include="Resources\question-button.png" />
|
<None Include="Resources\question-button.png" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Content Include="Favicons\SomeImage.png" />
|
||||||
<Content Include="Favicons\Sul.png" />
|
<Content Include="Favicons\Sul.png" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
Loading…
Reference in a new issue