Settings, bug fixes and extra functionalities
This commit is contained in:
parent
334359ac96
commit
b7911a5b87
18 changed files with 1296 additions and 191 deletions
74
trunk/Tools/IncludeExportSettings.Designer.cs
generated
Normal file
74
trunk/Tools/IncludeExportSettings.Designer.cs
generated
Normal file
|
@ -0,0 +1,74 @@
|
|||
namespace LSLEditor.Tools
|
||||
{
|
||||
partial class IncludeExportSettings
|
||||
{
|
||||
/// <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 Component 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.groupBoxIncludeExportSettings = new System.Windows.Forms.GroupBox();
|
||||
this.checkBox1 = new System.Windows.Forms.CheckBox();
|
||||
this.groupBoxIncludeExportSettings.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// groupBoxIncludeExportSettings
|
||||
//
|
||||
this.groupBoxIncludeExportSettings.Controls.Add(this.checkBox1);
|
||||
this.groupBoxIncludeExportSettings.Location = new System.Drawing.Point(3, 3);
|
||||
this.groupBoxIncludeExportSettings.Name = "groupBoxIncludeExportSettings";
|
||||
this.groupBoxIncludeExportSettings.Size = new System.Drawing.Size(380, 64);
|
||||
this.groupBoxIncludeExportSettings.TabIndex = 0;
|
||||
this.groupBoxIncludeExportSettings.TabStop = false;
|
||||
this.groupBoxIncludeExportSettings.Text = "Include export settings";
|
||||
//
|
||||
// checkBox1
|
||||
//
|
||||
this.checkBox1.AutoSize = true;
|
||||
this.checkBox1.Location = new System.Drawing.Point(16, 28);
|
||||
this.checkBox1.Name = "checkBox1";
|
||||
this.checkBox1.Size = new System.Drawing.Size(184, 17);
|
||||
this.checkBox1.TabIndex = 0;
|
||||
this.checkBox1.Text = "Show include metadata on export";
|
||||
this.checkBox1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// IncludeExportSettings
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.Controls.Add(this.groupBoxIncludeExportSettings);
|
||||
this.Name = "IncludeExportSettings";
|
||||
this.Size = new System.Drawing.Size(386, 266);
|
||||
this.groupBoxIncludeExportSettings.ResumeLayout(false);
|
||||
this.groupBoxIncludeExportSettings.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.GroupBox groupBoxIncludeExportSettings;
|
||||
private System.Windows.Forms.CheckBox checkBox1;
|
||||
}
|
||||
}
|
25
trunk/Tools/IncludeExportSettings.cs
Normal file
25
trunk/Tools/IncludeExportSettings.cs
Normal file
|
@ -0,0 +1,25 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace LSLEditor.Tools
|
||||
{
|
||||
public partial class IncludeExportSettings : UserControl, ICommit
|
||||
{
|
||||
public IncludeExportSettings()
|
||||
{
|
||||
InitializeComponent();
|
||||
checkBox1.Checked = Properties.Settings.Default.ShowIncludeMetaData;
|
||||
}
|
||||
|
||||
public void Commit()
|
||||
{
|
||||
Properties.Settings.Default.ShowIncludeMetaData = checkBox1.Checked;
|
||||
}
|
||||
}
|
||||
}
|
120
trunk/Tools/IncludeExportSettings.resx
Normal file
120
trunk/Tools/IncludeExportSettings.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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
139
trunk/Tools/ProjectIncludes.Designer.cs
generated
Normal file
139
trunk/Tools/ProjectIncludes.Designer.cs
generated
Normal file
|
@ -0,0 +1,139 @@
|
|||
namespace LSLEditor.Tools
|
||||
{
|
||||
partial class ProjectIncludes
|
||||
{
|
||||
/// <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 Component 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.textBoxAddIncludeDir = new System.Windows.Forms.TextBox();
|
||||
this.groupBoxIncludeDirs = new System.Windows.Forms.GroupBox();
|
||||
this.buttonRemove = new System.Windows.Forms.Button();
|
||||
this.buttonAddIncludeDir = new System.Windows.Forms.Button();
|
||||
this.listBoxIncludeDirs = new System.Windows.Forms.ListBox();
|
||||
this.buttonBrowseDirs = new System.Windows.Forms.Button();
|
||||
this.labelIncludeDirs = new System.Windows.Forms.Label();
|
||||
this.folderBrowserDialogSelectIncludeDir = new System.Windows.Forms.FolderBrowserDialog();
|
||||
this.groupBoxIncludeDirs.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// textBoxAddIncludeDir
|
||||
//
|
||||
this.textBoxAddIncludeDir.Location = new System.Drawing.Point(16, 40);
|
||||
this.textBoxAddIncludeDir.Name = "textBoxAddIncludeDir";
|
||||
this.textBoxAddIncludeDir.Size = new System.Drawing.Size(270, 20);
|
||||
this.textBoxAddIncludeDir.TabIndex = 0;
|
||||
this.textBoxAddIncludeDir.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBoxAddIncludeDir_KeyPress);
|
||||
//
|
||||
// groupBoxIncludeDirs
|
||||
//
|
||||
this.groupBoxIncludeDirs.Controls.Add(this.buttonRemove);
|
||||
this.groupBoxIncludeDirs.Controls.Add(this.buttonAddIncludeDir);
|
||||
this.groupBoxIncludeDirs.Controls.Add(this.listBoxIncludeDirs);
|
||||
this.groupBoxIncludeDirs.Controls.Add(this.buttonBrowseDirs);
|
||||
this.groupBoxIncludeDirs.Controls.Add(this.labelIncludeDirs);
|
||||
this.groupBoxIncludeDirs.Location = new System.Drawing.Point(3, 3);
|
||||
this.groupBoxIncludeDirs.Name = "groupBoxIncludeDirs";
|
||||
this.groupBoxIncludeDirs.Size = new System.Drawing.Size(386, 266);
|
||||
this.groupBoxIncludeDirs.TabIndex = 1;
|
||||
this.groupBoxIncludeDirs.TabStop = false;
|
||||
this.groupBoxIncludeDirs.Text = "Include directories";
|
||||
//
|
||||
// buttonRemove
|
||||
//
|
||||
this.buttonRemove.Location = new System.Drawing.Point(290, 229);
|
||||
this.buttonRemove.Name = "buttonRemove";
|
||||
this.buttonRemove.Size = new System.Drawing.Size(75, 23);
|
||||
this.buttonRemove.TabIndex = 4;
|
||||
this.buttonRemove.Text = "Remove";
|
||||
this.buttonRemove.UseVisualStyleBackColor = true;
|
||||
this.buttonRemove.Click += new System.EventHandler(this.buttonRemove_Click);
|
||||
//
|
||||
// buttonAddIncludeDir
|
||||
//
|
||||
this.buttonAddIncludeDir.Location = new System.Drawing.Point(331, 36);
|
||||
this.buttonAddIncludeDir.Name = "buttonAddIncludeDir";
|
||||
this.buttonAddIncludeDir.Size = new System.Drawing.Size(34, 23);
|
||||
this.buttonAddIncludeDir.TabIndex = 3;
|
||||
this.buttonAddIncludeDir.Text = "Add";
|
||||
this.buttonAddIncludeDir.UseVisualStyleBackColor = true;
|
||||
this.buttonAddIncludeDir.Click += new System.EventHandler(this.buttonAddIncludeDir_Click);
|
||||
//
|
||||
// listBoxIncludeDirs
|
||||
//
|
||||
this.listBoxIncludeDirs.FormattingEnabled = true;
|
||||
this.listBoxIncludeDirs.HorizontalScrollbar = true;
|
||||
this.listBoxIncludeDirs.Location = new System.Drawing.Point(13, 76);
|
||||
this.listBoxIncludeDirs.Name = "listBoxIncludeDirs";
|
||||
this.listBoxIncludeDirs.Size = new System.Drawing.Size(352, 147);
|
||||
this.listBoxIncludeDirs.TabIndex = 2;
|
||||
this.listBoxIncludeDirs.KeyUp += new System.Windows.Forms.KeyEventHandler(this.listBoxIncludeDirs_KeyUp);
|
||||
//
|
||||
// buttonBrowseDirs
|
||||
//
|
||||
this.buttonBrowseDirs.Location = new System.Drawing.Point(292, 36);
|
||||
this.buttonBrowseDirs.Name = "buttonBrowseDirs";
|
||||
this.buttonBrowseDirs.Size = new System.Drawing.Size(32, 23);
|
||||
this.buttonBrowseDirs.TabIndex = 1;
|
||||
this.buttonBrowseDirs.Text = "...";
|
||||
this.buttonBrowseDirs.UseVisualStyleBackColor = true;
|
||||
this.buttonBrowseDirs.Click += new System.EventHandler(this.buttonBrowseDirs_Click);
|
||||
//
|
||||
// labelIncludeDirs
|
||||
//
|
||||
this.labelIncludeDirs.AutoSize = true;
|
||||
this.labelIncludeDirs.Location = new System.Drawing.Point(14, 20);
|
||||
this.labelIncludeDirs.Name = "labelIncludeDirs";
|
||||
this.labelIncludeDirs.Size = new System.Drawing.Size(109, 13);
|
||||
this.labelIncludeDirs.TabIndex = 0;
|
||||
this.labelIncludeDirs.Text = "Add include directory:";
|
||||
//
|
||||
// ProjectIncludes
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.Controls.Add(this.textBoxAddIncludeDir);
|
||||
this.Controls.Add(this.groupBoxIncludeDirs);
|
||||
this.Name = "ProjectIncludes";
|
||||
this.Size = new System.Drawing.Size(392, 272);
|
||||
this.groupBoxIncludeDirs.ResumeLayout(false);
|
||||
this.groupBoxIncludeDirs.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.TextBox textBoxAddIncludeDir;
|
||||
private System.Windows.Forms.GroupBox groupBoxIncludeDirs;
|
||||
private System.Windows.Forms.Label labelIncludeDirs;
|
||||
private System.Windows.Forms.Button buttonBrowseDirs;
|
||||
private System.Windows.Forms.ListBox listBoxIncludeDirs;
|
||||
private System.Windows.Forms.Button buttonAddIncludeDir;
|
||||
private System.Windows.Forms.Button buttonRemove;
|
||||
private System.Windows.Forms.FolderBrowserDialog folderBrowserDialogSelectIncludeDir;
|
||||
}
|
||||
}
|
107
trunk/Tools/ProjectIncludes.cs
Normal file
107
trunk/Tools/ProjectIncludes.cs
Normal file
|
@ -0,0 +1,107 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using System.IO;
|
||||
|
||||
namespace LSLEditor.Tools
|
||||
{
|
||||
public partial class ProjectIncludes : UserControl, ICommit
|
||||
{
|
||||
public ProjectIncludes()
|
||||
{
|
||||
InitializeComponent();
|
||||
listBoxIncludeDirs.Items.Clear();
|
||||
listBoxIncludeDirs.Items.AddRange(Properties.Settings.Default.IncludeDirectories.ToArray());
|
||||
}
|
||||
|
||||
private bool AddToIncludeDirs(string path)
|
||||
{
|
||||
// Check if it can find the directory
|
||||
if(Directory.Exists(path))
|
||||
{
|
||||
// Put directory seperator after path
|
||||
path = path.LastOrDefault() == '\\' || path.LastOrDefault() == '/' ? path : path + '\\';
|
||||
|
||||
// Check if it's already in the settings
|
||||
if(!Properties.Settings.Default.IncludeDirectories.Contains(path))
|
||||
{
|
||||
// Add to listbox
|
||||
listBoxIncludeDirs.Items.Add(path);
|
||||
return true;
|
||||
}
|
||||
} else
|
||||
{
|
||||
MessageBox.Show("The given directory was not found. \n\"" + path + "\"", "Oops...", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private bool RemoveFromIncludeDirs()
|
||||
{
|
||||
if(listBoxIncludeDirs.SelectedItem != null)
|
||||
{
|
||||
listBoxIncludeDirs.Items.Remove(listBoxIncludeDirs.SelectedItem);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public void Commit()
|
||||
{
|
||||
List<string> items = new List<string>();
|
||||
// Add to settings
|
||||
foreach(Object item in listBoxIncludeDirs.Items)
|
||||
{
|
||||
items.Add(item.ToString());
|
||||
}
|
||||
|
||||
Properties.Settings.Default.IncludeDirectories = items;
|
||||
}
|
||||
|
||||
private void buttonAddIncludeDir_Click(object sender, EventArgs e)
|
||||
{
|
||||
if(textBoxAddIncludeDir.Text != "")
|
||||
{
|
||||
AddToIncludeDirs(textBoxAddIncludeDir.Text);
|
||||
}
|
||||
}
|
||||
|
||||
private void textBoxAddIncludeDir_KeyPress(object sender, KeyPressEventArgs e)
|
||||
{
|
||||
if(e.KeyChar == (char)Keys.Enter)
|
||||
{
|
||||
if (textBoxAddIncludeDir.Text != "")
|
||||
{
|
||||
AddToIncludeDirs(textBoxAddIncludeDir.Text);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void buttonBrowseDirs_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.folderBrowserDialogSelectIncludeDir.RootFolder = Environment.SpecialFolder.MyComputer;
|
||||
if (this.folderBrowserDialogSelectIncludeDir.ShowDialog(this) == DialogResult.OK)
|
||||
{
|
||||
AddToIncludeDirs(this.folderBrowserDialogSelectIncludeDir.SelectedPath);
|
||||
}
|
||||
}
|
||||
|
||||
private void buttonRemove_Click(object sender, EventArgs e)
|
||||
{
|
||||
RemoveFromIncludeDirs();
|
||||
}
|
||||
|
||||
private void listBoxIncludeDirs_KeyUp(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode == Keys.Delete || e.KeyCode == Keys.Back)
|
||||
{
|
||||
RemoveFromIncludeDirs();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
123
trunk/Tools/ProjectIncludes.resx
Normal file
123
trunk/Tools/ProjectIncludes.resx
Normal file
|
@ -0,0 +1,123 @@
|
|||
<?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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="folderBrowserDialogSelectIncludeDir.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
</root>
|
Loading…
Add table
Add a link
Reference in a new issue