mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-29 17:02:05 +13:00
Adding Chrome extension support
This commit is contained in:
parent
0b650bc7b3
commit
56d45d9d51
14 changed files with 471 additions and 95 deletions
|
@ -51,6 +51,8 @@ public static class RegistryHelpers
|
|||
private static readonly string ShellExtIcon = ApplicationPath + ",0";
|
||||
private static readonly string ShellExtPath = ApplicationPath + " \"%1\"";
|
||||
|
||||
private static readonly string ChromeNativeMessagingHosts = @"SOFTWARE\Google\Chrome\NativeMessagingHosts\com.test.test";
|
||||
|
||||
public static bool CheckStartWithWindows()
|
||||
{
|
||||
try
|
||||
|
@ -145,6 +147,16 @@ public static void UnregisterShellContextMenu()
|
|||
RemoveRegistry(ShellExtMenuFolders);
|
||||
}
|
||||
|
||||
public static void RegisterChromeSupport(string filepath)
|
||||
{
|
||||
CreateRegistry(ChromeNativeMessagingHosts, filepath);
|
||||
}
|
||||
|
||||
public static void UnregisterChromeSupport()
|
||||
{
|
||||
RemoveRegistry(ChromeNativeMessagingHosts);
|
||||
}
|
||||
|
||||
public static ExternalProgram FindProgram(string name, string filename)
|
||||
{
|
||||
// First method: HKEY_CLASSES_ROOT\Applications\{filename}\shell\{command}\command
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("ShareX.IRCLib")]
|
||||
[assembly: AssemblyTitle("ShareX IRCLib")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("ShareX Team")]
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>none</DebugType>
|
||||
|
|
10
ShareX/Forms/ApplicationSettingsForm.Designer.cs
generated
10
ShareX/Forms/ApplicationSettingsForm.Designer.cs
generated
|
@ -108,6 +108,7 @@ private void InitializeComponent()
|
|||
this.tpAdvanced = new System.Windows.Forms.TabPage();
|
||||
this.pgSettings = new System.Windows.Forms.PropertyGrid();
|
||||
this.tttvMain = new ShareX.HelpersLib.TabToTreeView();
|
||||
this.btnChromeSupport = new System.Windows.Forms.Button();
|
||||
this.tcSettings.SuspendLayout();
|
||||
this.tpGeneral.SuspendLayout();
|
||||
this.tpPaths.SuspendLayout();
|
||||
|
@ -143,6 +144,7 @@ private void InitializeComponent()
|
|||
//
|
||||
// tpGeneral
|
||||
//
|
||||
this.tpGeneral.Controls.Add(this.btnChromeSupport);
|
||||
this.tpGeneral.Controls.Add(this.btnLanguages);
|
||||
this.tpGeneral.Controls.Add(this.llTranslators);
|
||||
this.tpGeneral.Controls.Add(this.lblLanguage);
|
||||
|
@ -716,6 +718,13 @@ private void InitializeComponent()
|
|||
this.tttvMain.TreeViewFont = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(162)));
|
||||
this.tttvMain.TreeViewSize = 175;
|
||||
//
|
||||
// btnChromeSupport
|
||||
//
|
||||
resources.ApplyResources(this.btnChromeSupport, "btnChromeSupport");
|
||||
this.btnChromeSupport.Name = "btnChromeSupport";
|
||||
this.btnChromeSupport.UseVisualStyleBackColor = true;
|
||||
this.btnChromeSupport.Click += new System.EventHandler(this.btnChromeSupport_Click);
|
||||
//
|
||||
// ApplicationSettingsForm
|
||||
//
|
||||
resources.ApplyResources(this, "$this");
|
||||
|
@ -838,5 +847,6 @@ private void InitializeComponent()
|
|||
private TabToTreeView tttvMain;
|
||||
private MenuButton btnLanguages;
|
||||
private System.Windows.Forms.ContextMenuStrip cmsLanguages;
|
||||
private System.Windows.Forms.Button btnChromeSupport;
|
||||
}
|
||||
}
|
|
@ -322,6 +322,11 @@ private void cbRememberMainFormSize_CheckedChanged(object sender, EventArgs e)
|
|||
Program.Settings.RememberMainFormSize = cbRememberMainFormSize.Checked;
|
||||
}
|
||||
|
||||
private void btnChromeSupport_Click(object sender, EventArgs e)
|
||||
{
|
||||
new ChromeForm().Show();
|
||||
}
|
||||
|
||||
#endregion General
|
||||
|
||||
#region Paths
|
||||
|
|
|
@ -122,6 +122,31 @@
|
|||
<value>Top, Bottom, Left, Right</value>
|
||||
</data>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="btnChromeSupport.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>8, 272</value>
|
||||
</data>
|
||||
<data name="btnChromeSupport.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>144, 24</value>
|
||||
</data>
|
||||
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="btnChromeSupport.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>12</value>
|
||||
</data>
|
||||
<data name="btnChromeSupport.Text" xml:space="preserve">
|
||||
<value>Chrome support...</value>
|
||||
</data>
|
||||
<data name=">>btnChromeSupport.Name" xml:space="preserve">
|
||||
<value>btnChromeSupport</value>
|
||||
</data>
|
||||
<data name=">>btnChromeSupport.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>btnChromeSupport.Parent" xml:space="preserve">
|
||||
<value>tpGeneral</value>
|
||||
</data>
|
||||
<data name=">>btnChromeSupport.ZOrder" xml:space="preserve">
|
||||
<value>0</value>
|
||||
</data>
|
||||
<data name="btnLanguages.ImageAlign" type="System.Drawing.ContentAlignment, System.Drawing">
|
||||
<value>MiddleLeft</value>
|
||||
</data>
|
||||
|
@ -146,7 +171,6 @@
|
|||
<data name="btnLanguages.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>224, 23</value>
|
||||
</data>
|
||||
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="btnLanguages.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>1</value>
|
||||
</data>
|
||||
|
@ -166,7 +190,7 @@
|
|||
<value>tpGeneral</value>
|
||||
</data>
|
||||
<data name=">>btnLanguages.ZOrder" xml:space="preserve">
|
||||
<value>0</value>
|
||||
<value>1</value>
|
||||
</data>
|
||||
<data name="llTranslators.AutoSize" type="System.Boolean, mscorlib">
|
||||
<value>True</value>
|
||||
|
@ -196,7 +220,7 @@
|
|||
<value>tpGeneral</value>
|
||||
</data>
|
||||
<data name=">>llTranslators.ZOrder" xml:space="preserve">
|
||||
<value>1</value>
|
||||
<value>2</value>
|
||||
</data>
|
||||
<data name="lblLanguage.AutoSize" type="System.Boolean, mscorlib">
|
||||
<value>True</value>
|
||||
|
@ -226,7 +250,7 @@
|
|||
<value>tpGeneral</value>
|
||||
</data>
|
||||
<data name=">>lblLanguage.ZOrder" xml:space="preserve">
|
||||
<value>2</value>
|
||||
<value>3</value>
|
||||
</data>
|
||||
<data name="cbRememberMainFormPosition.AutoSize" type="System.Boolean, mscorlib">
|
||||
<value>True</value>
|
||||
|
@ -256,7 +280,7 @@
|
|||
<value>tpGeneral</value>
|
||||
</data>
|
||||
<data name=">>cbRememberMainFormPosition.ZOrder" xml:space="preserve">
|
||||
<value>3</value>
|
||||
<value>4</value>
|
||||
</data>
|
||||
<data name="cbSilentRun.AutoSize" type="System.Boolean, mscorlib">
|
||||
<value>True</value>
|
||||
|
@ -286,7 +310,7 @@
|
|||
<value>tpGeneral</value>
|
||||
</data>
|
||||
<data name=">>cbSilentRun.ZOrder" xml:space="preserve">
|
||||
<value>4</value>
|
||||
<value>5</value>
|
||||
</data>
|
||||
<data name="cbRememberMainFormSize.AutoSize" type="System.Boolean, mscorlib">
|
||||
<value>True</value>
|
||||
|
@ -316,7 +340,7 @@
|
|||
<value>tpGeneral</value>
|
||||
</data>
|
||||
<data name=">>cbRememberMainFormSize.ZOrder" xml:space="preserve">
|
||||
<value>5</value>
|
||||
<value>6</value>
|
||||
</data>
|
||||
<data name="cbTaskbarProgressEnabled.AutoSize" type="System.Boolean, mscorlib">
|
||||
<value>True</value>
|
||||
|
@ -346,7 +370,7 @@
|
|||
<value>tpGeneral</value>
|
||||
</data>
|
||||
<data name=">>cbTaskbarProgressEnabled.ZOrder" xml:space="preserve">
|
||||
<value>6</value>
|
||||
<value>7</value>
|
||||
</data>
|
||||
<data name="cbTrayIconProgressEnabled.AutoSize" type="System.Boolean, mscorlib">
|
||||
<value>True</value>
|
||||
|
@ -376,7 +400,7 @@
|
|||
<value>tpGeneral</value>
|
||||
</data>
|
||||
<data name=">>cbTrayIconProgressEnabled.ZOrder" xml:space="preserve">
|
||||
<value>7</value>
|
||||
<value>8</value>
|
||||
</data>
|
||||
<data name="cbShellContextMenu.AutoSize" type="System.Boolean, mscorlib">
|
||||
<value>True</value>
|
||||
|
@ -406,7 +430,7 @@
|
|||
<value>tpGeneral</value>
|
||||
</data>
|
||||
<data name=">>cbShellContextMenu.ZOrder" xml:space="preserve">
|
||||
<value>8</value>
|
||||
<value>9</value>
|
||||
</data>
|
||||
<data name="cbStartWithWindows.AutoSize" type="System.Boolean, mscorlib">
|
||||
<value>True</value>
|
||||
|
@ -436,7 +460,7 @@
|
|||
<value>tpGeneral</value>
|
||||
</data>
|
||||
<data name=">>cbStartWithWindows.ZOrder" xml:space="preserve">
|
||||
<value>9</value>
|
||||
<value>10</value>
|
||||
</data>
|
||||
<data name="cbShowTray.AutoSize" type="System.Boolean, mscorlib">
|
||||
<value>True</value>
|
||||
|
@ -466,7 +490,7 @@
|
|||
<value>tpGeneral</value>
|
||||
</data>
|
||||
<data name=">>cbShowTray.ZOrder" xml:space="preserve">
|
||||
<value>10</value>
|
||||
<value>11</value>
|
||||
</data>
|
||||
<data name="cbSendToMenu.AutoSize" type="System.Boolean, mscorlib">
|
||||
<value>True</value>
|
||||
|
@ -496,7 +520,7 @@
|
|||
<value>tpGeneral</value>
|
||||
</data>
|
||||
<data name=">>cbSendToMenu.ZOrder" xml:space="preserve">
|
||||
<value>11</value>
|
||||
<value>12</value>
|
||||
</data>
|
||||
<data name="tpGeneral.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>4, 22</value>
|
||||
|
@ -599,7 +623,7 @@
|
|||
</data>
|
||||
<data name="lblPreviewPersonalFolderPath.Text" xml:space="preserve">
|
||||
<value>...</value>
|
||||
<comment>@Invariant</comment></data>
|
||||
</data>
|
||||
<data name=">>lblPreviewPersonalFolderPath.Name" xml:space="preserve">
|
||||
<value>lblPreviewPersonalFolderPath</value>
|
||||
</data>
|
||||
|
@ -842,7 +866,7 @@
|
|||
</data>
|
||||
<data name="lblSaveImageSubFolderPatternPreview.Text" xml:space="preserve">
|
||||
<value>...</value>
|
||||
<comment>@Invariant</comment></data>
|
||||
</data>
|
||||
<data name=">>lblSaveImageSubFolderPatternPreview.Name" xml:space="preserve">
|
||||
<value>lblSaveImageSubFolderPatternPreview</value>
|
||||
</data>
|
||||
|
|
137
ShareX/Forms/ChromeForm.Designer.cs
generated
Normal file
137
ShareX/Forms/ChromeForm.Designer.cs
generated
Normal file
|
@ -0,0 +1,137 @@
|
|||
namespace ShareX
|
||||
{
|
||||
partial class ChromeForm
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.btnRegister = new System.Windows.Forms.Button();
|
||||
this.btnUnregister = new System.Windows.Forms.Button();
|
||||
this.lbl1 = new System.Windows.Forms.Label();
|
||||
this.lbl2 = new System.Windows.Forms.Label();
|
||||
this.btnInstallExtension = new System.Windows.Forms.Button();
|
||||
this.lbl3 = new System.Windows.Forms.Label();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// btnRegister
|
||||
//
|
||||
this.btnRegister.Image = global::ShareX.Properties.Resources.tick_button;
|
||||
this.btnRegister.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
this.btnRegister.Location = new System.Drawing.Point(8, 32);
|
||||
this.btnRegister.Name = "btnRegister";
|
||||
this.btnRegister.Padding = new System.Windows.Forms.Padding(5, 0, 0, 0);
|
||||
this.btnRegister.Size = new System.Drawing.Size(192, 32);
|
||||
this.btnRegister.TabIndex = 0;
|
||||
this.btnRegister.Text = "Enable Chrome support";
|
||||
this.btnRegister.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
this.btnRegister.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
|
||||
this.btnRegister.UseVisualStyleBackColor = true;
|
||||
this.btnRegister.Click += new System.EventHandler(this.btnRegister_Click);
|
||||
//
|
||||
// btnUnregister
|
||||
//
|
||||
this.btnUnregister.Image = global::ShareX.Properties.Resources.cross_button;
|
||||
this.btnUnregister.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
this.btnUnregister.Location = new System.Drawing.Point(208, 32);
|
||||
this.btnUnregister.Name = "btnUnregister";
|
||||
this.btnUnregister.Padding = new System.Windows.Forms.Padding(5, 0, 0, 0);
|
||||
this.btnUnregister.Size = new System.Drawing.Size(192, 32);
|
||||
this.btnUnregister.TabIndex = 1;
|
||||
this.btnUnregister.Text = "Disable Chrome support";
|
||||
this.btnUnregister.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
this.btnUnregister.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
|
||||
this.btnUnregister.UseVisualStyleBackColor = true;
|
||||
this.btnUnregister.Click += new System.EventHandler(this.btnUnregister_Click);
|
||||
//
|
||||
// lbl1
|
||||
//
|
||||
this.lbl1.Location = new System.Drawing.Point(8, 8);
|
||||
this.lbl1.Name = "lbl1";
|
||||
this.lbl1.Size = new System.Drawing.Size(392, 24);
|
||||
this.lbl1.TabIndex = 2;
|
||||
this.lbl1.Text = "1. Enable Chrome support otherwise extension can\'t interact with ShareX.";
|
||||
//
|
||||
// lbl2
|
||||
//
|
||||
this.lbl2.Location = new System.Drawing.Point(8, 80);
|
||||
this.lbl2.Name = "lbl2";
|
||||
this.lbl2.Size = new System.Drawing.Size(392, 24);
|
||||
this.lbl2.TabIndex = 3;
|
||||
this.lbl2.Text = "2. Install ShareX Chrome extension from Chrome web store.";
|
||||
//
|
||||
// btnInstallExtension
|
||||
//
|
||||
this.btnInstallExtension.Image = global::ShareX.Properties.Resources.arrow_270;
|
||||
this.btnInstallExtension.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
this.btnInstallExtension.Location = new System.Drawing.Point(8, 104);
|
||||
this.btnInstallExtension.Name = "btnInstallExtension";
|
||||
this.btnInstallExtension.Padding = new System.Windows.Forms.Padding(5, 0, 0, 0);
|
||||
this.btnInstallExtension.Size = new System.Drawing.Size(392, 32);
|
||||
this.btnInstallExtension.TabIndex = 4;
|
||||
this.btnInstallExtension.Text = "Install ShareX Chrome extension";
|
||||
this.btnInstallExtension.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
this.btnInstallExtension.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
|
||||
this.btnInstallExtension.UseVisualStyleBackColor = true;
|
||||
this.btnInstallExtension.Click += new System.EventHandler(this.btnInstallExtension_Click);
|
||||
//
|
||||
// lbl3
|
||||
//
|
||||
this.lbl3.Location = new System.Drawing.Point(8, 152);
|
||||
this.lbl3.Name = "lbl3";
|
||||
this.lbl3.Size = new System.Drawing.Size(392, 40);
|
||||
this.lbl3.TabIndex = 5;
|
||||
this.lbl3.Text = "3. In Chrome right click on image or selected text and you will see \"Upload with " +
|
||||
"ShareX\" button in context menu.";
|
||||
//
|
||||
// ChromeForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(409, 195);
|
||||
this.Controls.Add(this.lbl3);
|
||||
this.Controls.Add(this.btnInstallExtension);
|
||||
this.Controls.Add(this.lbl2);
|
||||
this.Controls.Add(this.lbl1);
|
||||
this.Controls.Add(this.btnUnregister);
|
||||
this.Controls.Add(this.btnRegister);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||
this.MaximizeBox = false;
|
||||
this.Name = "ChromeForm";
|
||||
this.Text = "ShareX - Chrome support";
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Button btnRegister;
|
||||
private System.Windows.Forms.Button btnUnregister;
|
||||
private System.Windows.Forms.Label lbl1;
|
||||
private System.Windows.Forms.Label lbl2;
|
||||
private System.Windows.Forms.Button btnInstallExtension;
|
||||
private System.Windows.Forms.Label lbl3;
|
||||
}
|
||||
}
|
60
ShareX/Forms/ChromeForm.cs
Normal file
60
ShareX/Forms/ChromeForm.cs
Normal file
|
@ -0,0 +1,60 @@
|
|||
#region License Information (GPL v3)
|
||||
|
||||
/*
|
||||
ShareX - A program that allows you to take screenshots and share any file type
|
||||
Copyright (c) 2007-2015 ShareX Team
|
||||
|
||||
This program is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License
|
||||
as published by the Free Software Foundation; either version 2
|
||||
of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
Optionally you can also view the license at <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#endregion License Information (GPL v3)
|
||||
|
||||
using ShareX.HelpersLib;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace ShareX
|
||||
{
|
||||
public partial class ChromeForm : Form
|
||||
{
|
||||
public ChromeForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
Icon = ShareXResources.Icon;
|
||||
}
|
||||
|
||||
private void btnRegister_Click(object sender, EventArgs e)
|
||||
{
|
||||
RegistryHelpers.RegisterChromeSupport(Program.ChromeHostManifestPath);
|
||||
}
|
||||
|
||||
private void btnUnregister_Click(object sender, EventArgs e)
|
||||
{
|
||||
RegistryHelpers.UnregisterChromeSupport();
|
||||
}
|
||||
|
||||
private void btnInstallExtension_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
120
ShareX/Forms/ChromeForm.resx
Normal file
120
ShareX/Forms/ChromeForm.resx
Normal file
|
@ -0,0 +1,120 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
|
@ -182,13 +182,7 @@ public static string HistoryFilePath
|
|||
}
|
||||
}
|
||||
|
||||
private static string LogsFolder
|
||||
{
|
||||
get
|
||||
{
|
||||
return Path.Combine(PersonalPath, "Logs");
|
||||
}
|
||||
}
|
||||
private static string LogsFolder => Path.Combine(PersonalPath, "Logs");
|
||||
|
||||
public static string LogsFilePath
|
||||
{
|
||||
|
@ -221,27 +215,17 @@ public static string ScreenshotsFolder
|
|||
}
|
||||
}
|
||||
|
||||
public static string ScreenRecorderCacheFilePath
|
||||
{
|
||||
get
|
||||
{
|
||||
return Path.Combine(PersonalPath, "ScreenRecorder.avi");
|
||||
}
|
||||
}
|
||||
public static string ScreenRecorderCacheFilePath => Path.Combine(PersonalPath, "ScreenRecorder.avi");
|
||||
|
||||
private static string BackupFolder
|
||||
{
|
||||
get
|
||||
{
|
||||
return Path.Combine(PersonalPath, "Backup");
|
||||
}
|
||||
}
|
||||
private static string BackupFolder => Path.Combine(PersonalPath, "Backup");
|
||||
|
||||
public static string ToolsFolder
|
||||
public static string ToolsFolder => Path.Combine(PersonalPath, "Tools");
|
||||
|
||||
public static string ChromeHostManifestPath
|
||||
{
|
||||
get
|
||||
{
|
||||
return Path.Combine(PersonalPath, "Tools");
|
||||
return Path.Combine(ToolsFolder, "Chrome-host-manifest.json");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
10
ShareX/Properties/Resources.Designer.cs
generated
10
ShareX/Properties/Resources.Designer.cs
generated
|
@ -261,6 +261,16 @@ public static System.Drawing.Bitmap arrow_090 {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap arrow_270 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("arrow-270", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
|
|
|
@ -138,6 +138,9 @@ Are you sure you want to continue?</value>
|
|||
<data name="UploadTask_CreateURLShortenerTask_Shorten_URL___0__" xml:space="preserve">
|
||||
<value>Shorten URL ({0})</value>
|
||||
</data>
|
||||
<data name="layer_transparent" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\layer-transparent.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="ScreenRecordForm_StartRecording_There_is_no_valid_CLI_video_encoder_selected_" xml:space="preserve">
|
||||
<value>There is no valid CLI video encoder selected.</value>
|
||||
</data>
|
||||
|
@ -163,15 +166,15 @@ Press 'No' to cancel the current upload and disable screenshot auto uploading.</
|
|||
<data name="google_plus" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\google_plus.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="toolbox" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\toolbox.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="au" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\au.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="ScreenRecordForm_StartRecording_FFmpeg_error" xml:space="preserve">
|
||||
<value>FFmpeg error</value>
|
||||
</data>
|
||||
<data name="checkbox_check" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\checkbox_check.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="ScreenRecordForm_DownloaderForm_InstallRequested_FFmpeg_successfully_downloaded_" xml:space="preserve">
|
||||
<value>FFmpeg successfully downloaded.</value>
|
||||
</data>
|
||||
|
@ -241,6 +244,9 @@ Press 'No' to cancel the current upload and disable screenshot auto uploading.</
|
|||
<data name="UploadTask_ThreadDoWork_URL_is_empty_" xml:space="preserve">
|
||||
<value>URL is empty.</value>
|
||||
</data>
|
||||
<data name="MainForm_tsmiTestTextUpload_Click_Text_upload_test" xml:space="preserve">
|
||||
<value>Text upload test</value>
|
||||
</data>
|
||||
<data name="ApplicationSettingsForm_btnBrowsePersonalFolderPath_Click_Choose_ShareX_personal_folder_path" xml:space="preserve">
|
||||
<value>Choose ShareX personal folder path</value>
|
||||
</data>
|
||||
|
@ -260,8 +266,8 @@ Please select a different hotkey or quit the conflicting application and reopen
|
|||
<data name="AutoCaptureForm_Execute_Stop" xml:space="preserve">
|
||||
<value>Stop</value>
|
||||
</data>
|
||||
<data name="ScreenRecordForm_StartRecording_CLI_video_encoder_file_does_not_exist__" xml:space="preserve">
|
||||
<value>CLI video encoder file does not exist: </value>
|
||||
<data name="RecentManager_UpdateRecentMenu_Left_click_to_copy_URL_to_clipboard__Right_click_to_open_URL_" xml:space="preserve">
|
||||
<value>Left click to copy URL to clipboard. Right click to open URL.</value>
|
||||
</data>
|
||||
<data name="robot" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\robot.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
|
@ -302,9 +308,6 @@ Please select a different hotkey or quit the conflicting application and reopen
|
|||
<data name="MainForm_AfterShownJobs_You_can_single_left_click_the_ShareX_tray_icon_to_start_region_capture_" xml:space="preserve">
|
||||
<value>You can single left click the ShareX tray icon to start region capture.</value>
|
||||
</data>
|
||||
<data name="application_task" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\application-task.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="TaskSettingsForm_UpdateWindowTitle_Task_settings" xml:space="preserve">
|
||||
<value>Task settings</value>
|
||||
</data>
|
||||
|
@ -364,6 +367,9 @@ Press yes to open image from clipboard. Alternatively, press no to open image fi
|
|||
<data name="navigation_000_button" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\navigation-000-button.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="TaskSettingsForm_UpdateUploaderMenuNames_URL_shortener___0_" xml:space="preserve">
|
||||
<value>URL shortener: {0}</value>
|
||||
</data>
|
||||
<data name="tr" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\tr.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
|
@ -403,8 +409,8 @@ Press yes to open image from clipboard. Alternatively, press no to open image fi
|
|||
<data name="UploadManager_IsUploadConfirmed_Upload_files" xml:space="preserve">
|
||||
<value>Upload files</value>
|
||||
</data>
|
||||
<data name="document_copy" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\document-copy.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<data name="ScreenRecordForm_StartRecording_CLI_video_encoder_file_does_not_exist__" xml:space="preserve">
|
||||
<value>CLI video encoder file does not exist: </value>
|
||||
</data>
|
||||
<data name="globe_share" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\globe-share.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
|
@ -412,9 +418,6 @@ Press yes to open image from clipboard. Alternatively, press no to open image fi
|
|||
<data name="kr" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\kr.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="pencil" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\pencil.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="TaskManager_task_UploadCompleted_Error" xml:space="preserve">
|
||||
<value>Error</value>
|
||||
</data>
|
||||
|
@ -449,9 +452,6 @@ here</value>
|
|||
<data name="traffic_cone" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\traffic-cone.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="camera" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\camera.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="EncoderProgramForm_btnOK_Click_Path_can_t_be_empty_" xml:space="preserve">
|
||||
<value>Path can't be empty.</value>
|
||||
</data>
|
||||
|
@ -496,8 +496,8 @@ Please run ShareX as administrator to change personal folder path.</value>
|
|||
<data name="TaskHelpers_OpenFTPClient_FTP_client_only_supports_FTP_or_FTPS_" xml:space="preserve">
|
||||
<value>FTP client only supports FTP or FTPS.</value>
|
||||
</data>
|
||||
<data name="arrow_090" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\arrow-090.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<data name="layers_arrange" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\layers-arrange.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="WatchFolderForm_btnPathBrowse_Click_Choose_folder_path" xml:space="preserve">
|
||||
<value>Choose folder path</value>
|
||||
|
@ -512,6 +512,9 @@ Would you like to restart ShareX?</value>
|
|||
<data name="layer_shape" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\layer-shape.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="eraser" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\eraser.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="image_pencil" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\image--pencil.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
|
@ -524,6 +527,9 @@ Would you like to restart ShareX?</value>
|
|||
<data name="cn" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\cn.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="categories" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\categories.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="FileExistForm_txtNewName_TextChanged_Use_new_name__" xml:space="preserve">
|
||||
<value>Use new name: </value>
|
||||
</data>
|
||||
|
@ -569,6 +575,9 @@ Would you like to restart ShareX?</value>
|
|||
<data name="ruler_triangle" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\ruler-triangle.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="BeforeUploadForm_BeforeUploadForm__0__is_about_to_be_uploaded_to__1___You_may_choose_a_different_destination_" xml:space="preserve">
|
||||
<value>{0} is about to be uploaded to {1}. You may choose a different destination.</value>
|
||||
</data>
|
||||
<data name="AutoCaptureForm_Execute_Start" xml:space="preserve">
|
||||
<value>Start</value>
|
||||
</data>
|
||||
|
@ -587,15 +596,12 @@ Would you like to restart ShareX?</value>
|
|||
<data name="TaskSettingsForm_ConfigureEncoder_Configure_CLI_video_encoders_____" xml:space="preserve">
|
||||
<value>Configure CLI video encoders ---></value>
|
||||
</data>
|
||||
<data name="TaskSettingsForm_UpdateUploaderMenuNames_URL_shortener___0_" xml:space="preserve">
|
||||
<value>URL shortener: {0}</value>
|
||||
<data name="camera" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\camera.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="clipboard" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\clipboard.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="barcode_2d" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\barcode-2d.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Program_Run_Unable_to_create_folder_" xml:space="preserve">
|
||||
<value>Unable to create folder:</value>
|
||||
</data>
|
||||
|
@ -608,14 +614,8 @@ Would you like to restart ShareX?</value>
|
|||
<data name="film" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\film.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="ScreenColorPicker_ScreenColorPicker_Close" xml:space="preserve">
|
||||
<value>Close</value>
|
||||
</data>
|
||||
<data name="RecentManager_UpdateRecentMenu_Left_click_to_copy_URL_to_clipboard__Right_click_to_open_URL_" xml:space="preserve">
|
||||
<value>Left click to copy URL to clipboard. Right click to open URL.</value>
|
||||
</data>
|
||||
<data name="ScreenRecordForm_DownloaderForm_InstallRequested_Download_of_FFmpeg_failed_" xml:space="preserve">
|
||||
<value>Download of FFmpeg failed.</value>
|
||||
<data name="arrow_090" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\arrow-090.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="clipboard_list" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\clipboard-list.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
|
@ -632,8 +632,8 @@ Would you like to restart ShareX?</value>
|
|||
<data name="UploadManager_UploadFile_File_upload" xml:space="preserve">
|
||||
<value>File upload</value>
|
||||
</data>
|
||||
<data name="ScreenColorPicker_UpdateControls_Start_screen_color_picker" xml:space="preserve">
|
||||
<value>Start screen color picker</value>
|
||||
<data name="cross" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\cross.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="layout_select_sidebar" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\layout-select-sidebar.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
|
@ -645,9 +645,6 @@ Would you like to restart ShareX?</value>
|
|||
<value>Download failed:
|
||||
{0}</value>
|
||||
</data>
|
||||
<data name="TaskSettingsForm_UpdateUploaderMenuNames_After_upload___0_" xml:space="preserve">
|
||||
<value>After upload: {0}</value>
|
||||
</data>
|
||||
<data name="layer_shape_ellipse" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\layer-shape-ellipse.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
|
@ -672,8 +669,8 @@ Would you like to restart ShareX?</value>
|
|||
<data name="layer_shape_polygon" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\layer-shape-polygon.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="checkbox_check" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\checkbox_check.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<data name="toolbox" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\toolbox.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="UploadTask_OnUploadCompleted_Stopped" xml:space="preserve">
|
||||
<value>Stopped</value>
|
||||
|
@ -690,23 +687,26 @@ Would you like to restart ShareX?</value>
|
|||
<data name="AboutForm_AboutForm_Issues" xml:space="preserve">
|
||||
<value>Issues</value>
|
||||
</data>
|
||||
<data name="layer_transparent" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\layer-transparent.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<data name="ScreenColorPicker_ScreenColorPicker_Close" xml:space="preserve">
|
||||
<value>Close</value>
|
||||
</data>
|
||||
<data name="wrench_screwdriver" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\wrench-screwdriver.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="application_browser" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\application-browser.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="ErrorSound" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\ErrorSound.wav;System.IO.MemoryStream, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="TaskSettingsForm_txtNameFormatPatternActiveWindow_TextChanged_Preview_" xml:space="preserve">
|
||||
<value>Preview:</value>
|
||||
</data>
|
||||
<data name="MainForm_tsmiTestTextUpload_Click_Text_upload_test" xml:space="preserve">
|
||||
<value>Text upload test</value>
|
||||
<data name="document_copy" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\document-copy.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="application_browser" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\application-browser.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<data name="application_task" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\application-task.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="notebook" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\notebook.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
|
@ -744,20 +744,23 @@ Would you like to restart ShareX?</value>
|
|||
<data name="RoundedRectangle" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\RoundedRectangle.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="TaskHelpers_TweetMessage_Unable_to_find_valid_Twitter_account_" xml:space="preserve">
|
||||
<value>Unable to find valid Twitter account.</value>
|
||||
</data>
|
||||
<data name="monitor" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\monitor.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="AboutForm_AboutForm_Website" xml:space="preserve">
|
||||
<value>Website</value>
|
||||
</data>
|
||||
<data name="categories" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\categories.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<data name="pencil" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\pencil.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="layers_arrange" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\layers-arrange.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<data name="TaskSettingsForm_UpdateUploaderMenuNames_After_upload___0_" xml:space="preserve">
|
||||
<value>After upload: {0}</value>
|
||||
</data>
|
||||
<data name="eraser" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\eraser.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<data name="barcode_2d" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\barcode-2d.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Fullscreen" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Fullscreen.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
|
@ -772,13 +775,13 @@ Would you like to restart ShareX?</value>
|
|||
<value>Click to start recording.</value>
|
||||
<comment>Text must be equal or lower than 54 characters because of tray icon text length limit.</comment>
|
||||
</data>
|
||||
<data name="BeforeUploadForm_BeforeUploadForm__0__is_about_to_be_uploaded_to__1___You_may_choose_a_different_destination_" xml:space="preserve">
|
||||
<value>{0} is about to be uploaded to {1}. You may choose a different destination.</value>
|
||||
<data name="ScreenRecordForm_DownloaderForm_InstallRequested_Download_of_FFmpeg_failed_" xml:space="preserve">
|
||||
<value>Download of FFmpeg failed.</value>
|
||||
</data>
|
||||
<data name="TaskHelpers_TweetMessage_Unable_to_find_valid_Twitter_account_" xml:space="preserve">
|
||||
<value>Unable to find valid Twitter account.</value>
|
||||
<data name="ScreenColorPicker_UpdateControls_Start_screen_color_picker" xml:space="preserve">
|
||||
<value>Start screen color picker</value>
|
||||
</data>
|
||||
<data name="cross" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\cross.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
<data name="arrow-270" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\arrow-270.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
</root>
|
BIN
ShareX/Resources/arrow-270.png
Normal file
BIN
ShareX/Resources/arrow-270.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 559 B |
|
@ -98,6 +98,12 @@
|
|||
<Compile Include="Forms\BeforeUploadForm.Designer.cs">
|
||||
<DependentUpon>BeforeUploadForm.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Forms\ChromeForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Forms\ChromeForm.Designer.cs">
|
||||
<DependentUpon>ChromeForm.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Forms\ClipboardFormatForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
|
@ -473,6 +479,9 @@
|
|||
<EmbeddedResource Include="Forms\BeforeUploadForm.zh-CN.resx">
|
||||
<DependentUpon>BeforeUploadForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Forms\ChromeForm.resx">
|
||||
<DependentUpon>ChromeForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Forms\ClipboardFormatForm.de.resx">
|
||||
<DependentUpon>ClipboardFormatForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
|
@ -1009,6 +1018,7 @@
|
|||
<None Include="Resources\br.png" />
|
||||
<None Include="Resources\balloon-white.png" />
|
||||
<None Include="Resources\cross.png" />
|
||||
<None Include="Resources\arrow-270.png" />
|
||||
<Content Include="ShareX_Icon.ico" />
|
||||
<None Include="Resources\globe--pencil.png" />
|
||||
<None Include="Resources\camcorder--pencil.png" />
|
||||
|
|
Loading…
Reference in a new issue