Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
DataEditorX
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
DataEditorX
Commits
47183ee5
Commit
47183ee5
authored
Jan 12, 2022
by
JoyJ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use Avalon Editor
parent
fce39f6b
Changes
14
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
1817 additions
and
15 deletions
+1817
-15
DataEditorX/CodeEditForm_Avalon.Designer.cs
DataEditorX/CodeEditForm_Avalon.Designer.cs
+387
-0
DataEditorX/CodeEditForm_Avalon.cs
DataEditorX/CodeEditForm_Avalon.cs
+695
-0
DataEditorX/CodeEditForm_Avalon.resx
DataEditorX/CodeEditForm_Avalon.resx
+126
-0
DataEditorX/Config/MyConfig.cs
DataEditorX/Config/MyConfig.cs
+4
-0
DataEditorX/DataEditorX.csproj
DataEditorX/DataEditorX.csproj
+15
-0
DataEditorX/FindReplaceForm.Designer.cs
DataEditorX/FindReplaceForm.Designer.cs
+148
-0
DataEditorX/FindReplaceForm.cs
DataEditorX/FindReplaceForm.cs
+34
-0
DataEditorX/FindReplaceForm.resx
DataEditorX/FindReplaceForm.resx
+120
-0
DataEditorX/MainForm.cs
DataEditorX/MainForm.cs
+29
-10
DataEditorX/Program.cs
DataEditorX/Program.cs
+1
-1
DataEditorX/app.config
DataEditorX/app.config
+2
-1
DataEditorX/changed.txt
DataEditorX/changed.txt
+3
-3
DataEditorX/data/avalon.xshd
DataEditorX/data/avalon.xshd
+227
-0
DataEditorX/data/language_chinese.txt
DataEditorX/data/language_chinese.txt
+26
-0
No files found.
DataEditorX/CodeEditForm_Avalon.Designer.cs
0 → 100644
View file @
47183ee5
This diff is collapsed.
Click to expand it.
DataEditorX/CodeEditForm_Avalon.cs
0 → 100644
View file @
47183ee5
This diff is collapsed.
Click to expand it.
DataEditorX/CodeEditForm_Avalon.resx
0 → 100644
View file @
47183ee5
<?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>
<metadata
name=
"mainMenu.TrayLocation"
type=
"System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
>
<value>
17, 17
</value>
</metadata>
<metadata
name=
"toolTip1.TrayLocation"
type=
"System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
>
<value>
306, 17
</value>
</metadata>
</root>
\ No newline at end of file
DataEditorX/Config/MyConfig.cs
View file @
47183ee5
...
@@ -125,6 +125,10 @@ public class MyConfig : XMLReader
...
@@ -125,6 +125,10 @@ public class MyConfig : XMLReader
/// </summary>
/// </summary>
public
const
string
TAG_FONT_NAME
=
"fontname"
;
public
const
string
TAG_FONT_NAME
=
"fontname"
;
/// <summary>
/// <summary>
/// 使用的编辑器
/// </summary>
public
const
string
USE_EDITOR
=
"editor"
;
/// <summary>
/// 字体大小
/// 字体大小
/// </summary>
/// </summary>
public
const
string
TAG_FONT_SIZE
=
"fontsize"
;
public
const
string
TAG_FONT_SIZE
=
"fontsize"
;
...
...
DataEditorX/DataEditorX.csproj
View file @
47183ee5
...
@@ -73,6 +73,8 @@
...
@@ -73,6 +73,8 @@
<Reference
Include=
"Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL"
>
<Reference
Include=
"Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL"
>
<HintPath>
..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll
</HintPath>
<HintPath>
..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll
</HintPath>
</Reference>
</Reference>
<Reference
Include=
"PresentationCore"
/>
<Reference
Include=
"PresentationFramework"
/>
<Reference
Include=
"System"
/>
<Reference
Include=
"System"
/>
<Reference
Include=
"System.ComponentModel.DataAnnotations"
/>
<Reference
Include=
"System.ComponentModel.DataAnnotations"
/>
<Reference
Include=
"System.configuration"
/>
<Reference
Include=
"System.configuration"
/>
...
@@ -98,6 +100,7 @@
...
@@ -98,6 +100,7 @@
<HintPath>
..\packages\DockPanelSuite.ThemeVS2015.3.0.6\lib\net40\WeifenLuo.WinFormsUI.Docking.ThemeVS2015.dll
</HintPath>
<HintPath>
..\packages\DockPanelSuite.ThemeVS2015.3.0.6\lib\net40\WeifenLuo.WinFormsUI.Docking.ThemeVS2015.dll
</HintPath>
</Reference>
</Reference>
<Reference
Include=
"WindowsBase"
/>
<Reference
Include=
"WindowsBase"
/>
<Reference
Include=
"WindowsFormsIntegration"
/>
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
<Compile
Include=
"CodeEditForm_Avalon.cs"
>
<Compile
Include=
"CodeEditForm_Avalon.cs"
>
...
@@ -182,6 +185,12 @@
...
@@ -182,6 +185,12 @@
<Compile
Include=
"EffectCreatorForm.Designer.cs"
>
<Compile
Include=
"EffectCreatorForm.Designer.cs"
>
<DependentUpon>
EffectCreatorForm.cs
</DependentUpon>
<DependentUpon>
EffectCreatorForm.cs
</DependentUpon>
</Compile>
</Compile>
<Compile
Include=
"FindReplaceForm.cs"
>
<SubType>
Form
</SubType>
</Compile>
<Compile
Include=
"FindReplaceForm.Designer.cs"
>
<DependentUpon>
FindReplaceForm.cs
</DependentUpon>
</Compile>
<Compile
Include=
"PositionForm.cs"
>
<Compile
Include=
"PositionForm.cs"
>
<SubType>
Form
</SubType>
<SubType>
Form
</SubType>
</Compile>
</Compile>
...
@@ -216,6 +225,9 @@
...
@@ -216,6 +225,9 @@
<Content
Include=
"data\mse_Chinese-Traditional.txt"
>
<Content
Include=
"data\mse_Chinese-Traditional.txt"
>
<CopyToOutputDirectory>
PreserveNewest
</CopyToOutputDirectory>
<CopyToOutputDirectory>
PreserveNewest
</CopyToOutputDirectory>
</Content>
</Content>
<None
Include=
"data\avalon.xshd"
>
<CopyToOutputDirectory>
PreserveNewest
</CopyToOutputDirectory>
</None>
<Content
Include=
"readme_english.txt"
>
<Content
Include=
"readme_english.txt"
>
<CopyToOutputDirectory>
PreserveNewest
</CopyToOutputDirectory>
<CopyToOutputDirectory>
PreserveNewest
</CopyToOutputDirectory>
</Content>
</Content>
...
@@ -285,6 +297,9 @@
...
@@ -285,6 +297,9 @@
<EmbeddedResource
Include=
"EffectCreatorForm.resx"
>
<EmbeddedResource
Include=
"EffectCreatorForm.resx"
>
<DependentUpon>
EffectCreatorForm.cs
</DependentUpon>
<DependentUpon>
EffectCreatorForm.cs
</DependentUpon>
</EmbeddedResource>
</EmbeddedResource>
<EmbeddedResource
Include=
"FindReplaceForm.resx"
>
<DependentUpon>
FindReplaceForm.cs
</DependentUpon>
</EmbeddedResource>
<EmbeddedResource
Include=
"MainForm.resx"
>
<EmbeddedResource
Include=
"MainForm.resx"
>
<DependentUpon>
MainForm.cs
</DependentUpon>
<DependentUpon>
MainForm.cs
</DependentUpon>
</EmbeddedResource>
</EmbeddedResource>
...
...
DataEditorX/FindReplaceForm.Designer.cs
0 → 100644
View file @
47183ee5
namespace
DataEditorX
{
partial
class
FindReplaceForm
{
/// <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
.
lbFind
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
txtFind
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
txtReplace
=
new
System
.
Windows
.
Forms
.
TextBox
();
this
.
lbReplace
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
btnClose
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnReplaceAll
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnFind
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
btnReplace
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
SuspendLayout
();
//
// lbFind
//
this
.
lbFind
.
AutoSize
=
true
;
this
.
lbFind
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
33
);
this
.
lbFind
.
Name
=
"lbFind"
;
this
.
lbFind
.
Size
=
new
System
.
Drawing
.
Size
(
27
,
12
);
this
.
lbFind
.
TabIndex
=
0
;
this
.
lbFind
.
Text
=
"Find"
;
//
// txtFind
//
this
.
txtFind
.
Location
=
new
System
.
Drawing
.
Point
(
64
,
30
);
this
.
txtFind
.
Name
=
"txtFind"
;
this
.
txtFind
.
Size
=
new
System
.
Drawing
.
Size
(
431
,
19
);
this
.
txtFind
.
TabIndex
=
1
;
//
// txtReplace
//
this
.
txtReplace
.
Location
=
new
System
.
Drawing
.
Point
(
64
,
66
);
this
.
txtReplace
.
Name
=
"txtReplace"
;
this
.
txtReplace
.
Size
=
new
System
.
Drawing
.
Size
(
431
,
19
);
this
.
txtReplace
.
TabIndex
=
3
;
//
// lbReplace
//
this
.
lbReplace
.
AutoSize
=
true
;
this
.
lbReplace
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
69
);
this
.
lbReplace
.
Name
=
"lbReplace"
;
this
.
lbReplace
.
Size
=
new
System
.
Drawing
.
Size
(
46
,
12
);
this
.
lbReplace
.
TabIndex
=
2
;
this
.
lbReplace
.
Text
=
"Replace"
;
//
// btnClose
//
this
.
btnClose
.
Location
=
new
System
.
Drawing
.
Point
(
420
,
104
);
this
.
btnClose
.
Name
=
"btnClose"
;
this
.
btnClose
.
Size
=
new
System
.
Drawing
.
Size
(
75
,
23
);
this
.
btnClose
.
TabIndex
=
4
;
this
.
btnClose
.
Text
=
"Close"
;
this
.
btnClose
.
UseVisualStyleBackColor
=
true
;
this
.
btnClose
.
Click
+=
new
System
.
EventHandler
(
this
.
btnClose_Click
);
//
// btnReplaceAll
//
this
.
btnReplaceAll
.
Location
=
new
System
.
Drawing
.
Point
(
339
,
104
);
this
.
btnReplaceAll
.
Name
=
"btnReplaceAll"
;
this
.
btnReplaceAll
.
Size
=
new
System
.
Drawing
.
Size
(
75
,
23
);
this
.
btnReplaceAll
.
TabIndex
=
5
;
this
.
btnReplaceAll
.
Text
=
"Replace All"
;
this
.
btnReplaceAll
.
UseVisualStyleBackColor
=
true
;
//
// btnFind
//
this
.
btnFind
.
Location
=
new
System
.
Drawing
.
Point
(
177
,
104
);
this
.
btnFind
.
Name
=
"btnFind"
;
this
.
btnFind
.
Size
=
new
System
.
Drawing
.
Size
(
75
,
23
);
this
.
btnFind
.
TabIndex
=
6
;
this
.
btnFind
.
Text
=
"Find"
;
this
.
btnFind
.
UseVisualStyleBackColor
=
true
;
//
// btnReplace
//
this
.
btnReplace
.
Location
=
new
System
.
Drawing
.
Point
(
258
,
104
);
this
.
btnReplace
.
Name
=
"btnReplace"
;
this
.
btnReplace
.
Size
=
new
System
.
Drawing
.
Size
(
75
,
23
);
this
.
btnReplace
.
TabIndex
=
7
;
this
.
btnReplace
.
Text
=
"Replace"
;
this
.
btnReplace
.
UseVisualStyleBackColor
=
true
;
//
// FindReplaceForm
//
this
.
AcceptButton
=
this
.
btnFind
;
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
6F
,
12F
);
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
CancelButton
=
this
.
btnClose
;
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
512
,
139
);
this
.
Controls
.
Add
(
this
.
btnReplace
);
this
.
Controls
.
Add
(
this
.
btnFind
);
this
.
Controls
.
Add
(
this
.
btnReplaceAll
);
this
.
Controls
.
Add
(
this
.
btnClose
);
this
.
Controls
.
Add
(
this
.
txtReplace
);
this
.
Controls
.
Add
(
this
.
lbReplace
);
this
.
Controls
.
Add
(
this
.
txtFind
);
this
.
Controls
.
Add
(
this
.
lbFind
);
this
.
FormBorderStyle
=
System
.
Windows
.
Forms
.
FormBorderStyle
.
FixedToolWindow
;
this
.
MaximizeBox
=
false
;
this
.
MinimizeBox
=
false
;
this
.
Name
=
"FindReplaceForm"
;
this
.
StartPosition
=
System
.
Windows
.
Forms
.
FormStartPosition
.
CenterParent
;
this
.
Text
=
"Find and Replace"
;
this
.
KeyDown
+=
new
System
.
Windows
.
Forms
.
KeyEventHandler
(
this
.
FindReplaceForm_KeyDown
);
this
.
ResumeLayout
(
false
);
this
.
PerformLayout
();
}
#
endregion
private
System
.
Windows
.
Forms
.
Label
lbFind
;
private
System
.
Windows
.
Forms
.
Label
lbReplace
;
public
System
.
Windows
.
Forms
.
TextBox
txtFind
;
public
System
.
Windows
.
Forms
.
TextBox
txtReplace
;
public
System
.
Windows
.
Forms
.
Button
btnClose
;
public
System
.
Windows
.
Forms
.
Button
btnReplaceAll
;
public
System
.
Windows
.
Forms
.
Button
btnFind
;
public
System
.
Windows
.
Forms
.
Button
btnReplace
;
}
}
\ No newline at end of file
DataEditorX/FindReplaceForm.cs
0 → 100644
View file @
47183ee5
using
System
;
using
System.Collections.Generic
;
using
System.ComponentModel
;
using
System.Data
;
using
System.Drawing
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
using
System.Windows.Forms
;
namespace
DataEditorX
{
public
partial
class
FindReplaceForm
:
Form
{
public
FindReplaceForm
()
{
InitializeComponent
();
}
private
void
btnClose_Click
(
object
sender
,
EventArgs
e
)
{
DialogResult
=
DialogResult
.
Cancel
;
Close
();
}
private
void
FindReplaceForm_KeyDown
(
object
sender
,
KeyEventArgs
e
)
{
if
(
e
.
KeyCode
==
Keys
.
Escape
)
{
Close
();
}
}
}
}
DataEditorX/FindReplaceForm.resx
0 → 100644
View file @
47183ee5
<?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>
\ No newline at end of file
DataEditorX/MainForm.cs
View file @
47183ee5
...
@@ -179,6 +179,19 @@ protected override void DefWndProc(ref Message m)
...
@@ -179,6 +179,19 @@ protected override void DefWndProc(ref Message m)
#
region
打开文件
#
region
打开文件
//打开脚本
//打开脚本
void
OpenScript
(
string
file
)
void
OpenScript
(
string
file
)
{
if
(
MyConfig
.
ReadString
(
MyConfig
.
USE_EDITOR
)
==
"Avalon"
)
{
CodeEditForm_Avalon
cf
=
new
CodeEditForm_Avalon
();
//设置界面语言
LanguageHelper
.
SetFormLabel
(
cf
);
//初始化函数提示
cf
.
InitTooltip
(
this
.
codecfg
);
//打开文件
cf
.
Open
(
file
);
cf
.
Show
(
this
.
dockPanel
,
DockState
.
Document
);
}
else
{
{
CodeEditForm
cf
=
new
CodeEditForm
();
CodeEditForm
cf
=
new
CodeEditForm
();
//设置界面语言
//设置界面语言
...
@@ -191,6 +204,7 @@ void OpenScript(string file)
...
@@ -191,6 +204,7 @@ void OpenScript(string file)
cf
.
Open
(
file
);
cf
.
Open
(
file
);
cf
.
Show
(
this
.
dockPanel
,
DockState
.
Document
);
cf
.
Show
(
this
.
dockPanel
,
DockState
.
Document
);
}
}
}
//打开数据库
//打开数据库
void
OpenDataBase
(
string
file
)
void
OpenDataBase
(
string
file
)
{
{
...
@@ -416,6 +430,11 @@ void Menuitem_newClick(object sender, EventArgs e)
...
@@ -416,6 +430,11 @@ void Menuitem_newClick(object sender, EventArgs e)
}
}
else
else
{
{
try
{
File
.
Create
(
file
).
Dispose
();
}
catch
{
}
this
.
Open
(
file
);
this
.
Open
(
file
);
}
}
}
}
...
...
DataEditorX/Program.cs
View file @
47183ee5
...
@@ -56,7 +56,7 @@ static void SaveLanguage()
...
@@ -56,7 +56,7 @@ static void SaveLanguage()
DataEditForm
form2
=
new
DataEditForm
();
DataEditForm
form2
=
new
DataEditForm
();
LanguageHelper
.
SetFormLabel
(
form2
);
LanguageHelper
.
SetFormLabel
(
form2
);
langhelper
.
GetFormLabel
(
form2
);
langhelper
.
GetFormLabel
(
form2
);
CodeEditForm
form3
=
new
CodeEditForm
();
CodeEditForm
_Avalon
form3
=
new
CodeEditForm_Avalon
();
LanguageHelper
.
SetFormLabel
(
form3
);
LanguageHelper
.
SetFormLabel
(
form3
);
langhelper
.
GetFormLabel
(
form3
);
langhelper
.
GetFormLabel
(
form3
);
// LANG.GetFormLabel(this);
// LANG.GetFormLabel(this);
...
...
DataEditorX/app.config
View file @
47183ee5
...
@@ -44,6 +44,7 @@
...
@@ -44,6 +44,7 @@
<
add
key
=
"image_other"
value
=
"25,54,128,128"
/>
<
add
key
=
"image_other"
value
=
"25,54,128,128"
/>
<
add
key
=
"image_xyz"
value
=
"24,51,128,128"
/>
<
add
key
=
"image_xyz"
value
=
"24,51,128,128"
/>
<
add
key
=
"image_pendulum"
value
=
"16,50,147,109"
/>
<
add
key
=
"image_pendulum"
value
=
"16,50,147,109"
/>
<
add
key
=
"editor"
value
=
"Avalon"
/>
<!--
CodeEdiotr
Setting
<!--
CodeEdiotr
Setting
IME
=
true
使用輸入法,正常顯示文字,反應變慢
IME
=
true
使用輸入法,正常顯示文字,反應變慢
IME
=
false
English
IME
=
false
English
...
@@ -52,7 +53,7 @@
...
@@ -52,7 +53,7 @@
<
add
key
=
"wordwrap"
value
=
"true"
/>
<
add
key
=
"wordwrap"
value
=
"true"
/>
<
add
key
=
"tabisspace"
value
=
"false"
/>
<
add
key
=
"tabisspace"
value
=
"false"
/>
<
add
key
=
"fontname"
value
=
"Consolas"
/>
<
add
key
=
"fontname"
value
=
"Consolas"
/>
<
add
key
=
"fontsize"
value
=
"1
4
.5"
/>
<
add
key
=
"fontsize"
value
=
"1
8
.5"
/>
<!--
MSE
path
-->
<!--
MSE
path
-->
<
add
key
=
"mse_path"
value
=
"./MagicSetEditor2/mse.exe"
/>
<
add
key
=
"mse_path"
value
=
"./MagicSetEditor2/mse.exe"
/>
<
add
key
=
"mse_exprotpath"
value
=
"./exprot"
/>
<
add
key
=
"mse_exprotpath"
value
=
"./exprot"
/>
...
...
DataEditorX/changed.txt
View file @
47183ee5
★更新历史
★更新历史
3.0.1.0
3.0.1.0
更新了一个新的编辑器
。
现在能正常显示中文了。
更新了一个新的编辑器
,
现在能正常显示中文了。
旧编辑器仍可使用,请在菜单里进行切换
。
一些旧功能无法在新版编辑器中使用,可自行编辑app.config将editor字段改成【Avalon】以外的字符串以启用旧版编辑器
。
初始化中的m / cm更名为id / this。
初始化中的m / cm更名为id / this。
现在可以初始化各种不同的类型了
。
修正了新建lua文件失败的bug
。
3.0.0.6
3.0.0.6
你现在可以在选项菜单中调整函数提示的字体及其大小了。
你现在可以在选项菜单中调整函数提示的字体及其大小了。
现在当滚动到文本末尾时,仍然可以继续向下滚动。
现在当滚动到文本末尾时,仍然可以继续向下滚动。
...
...
DataEditorX/data/avalon.xshd
0 → 100644
View file @
47183ee5
This diff is collapsed.
Click to expand it.
DataEditorX/data/language_chinese.txt
View file @
47183ee5
...
@@ -17,6 +17,32 @@ CodeEditForm.mainMenu.menuitem_tools 工具(&T)
...
@@ -17,6 +17,32 @@ CodeEditForm.mainMenu.menuitem_tools 工具(&T)
CodeEditForm.mainMenu.menuitem_testlua 语法错误检查
CodeEditForm.mainMenu.menuitem_testlua 语法错误检查
CodeEditForm.mainMenu.menuitem_effectcreator 效果生成器
CodeEditForm.mainMenu.menuitem_effectcreator 效果生成器
#
#
FindReplaceForm 查找/替换
FindReplaceForm.btnFind 查找
FindReplaceForm.btnReplace 替换
FindReplaceForm.btnReplaceAll 替换所有
FindReplaceForm.btnClose 关闭
FindReplaceForm.lbFind 查找
FindReplaceForm.lbReplace 替换
#
CodeEditForm_Avalon.mainMenu.menuitem_file 文件(&F)
CodeEditForm_Avalon.mainMenu.menuitem_open 打开
CodeEditForm_Avalon.mainMenu.menuitem_save 保存
CodeEditForm_Avalon.mainMenu.menuitem_saveas 另存为
CodeEditForm_Avalon.mainMenu.menuitem_quit 退出
CodeEditForm_Avalon.mainMenu.menuitem_setting 选项(&S)
CodeEditForm_Avalon.mainMenu.menuitem_tooltipFont 设置函数提示字体
CodeEditForm_Avalon.mainMenu.menuitem_showmap 显示/隐藏结构图
CodeEditForm_Avalon.mainMenu.menuitem_showinput 显示/隐藏输入框
CodeEditForm_Avalon.mainMenu.menuitem_find 查找
CodeEditForm_Avalon.mainMenu.menuitem_replace 替换
CodeEditForm_Avalon.mainMenu.menuitem_setcard 设置卡片库
CodeEditForm_Avalon.mainMenu.menuitem_help 帮助(&H)
CodeEditForm_Avalon.mainMenu.menuitem_about 关于
CodeEditForm_Avalon.mainMenu.menuitem_tools 工具(&T)
CodeEditForm_Avalon.mainMenu.menuitem_testlua 语法错误检查
CodeEditForm_Avalon.mainMenu.menuitem_effectcreator 效果生成器
#
DataEditForm.pl_bottom.btn_img 导入图片
DataEditForm.pl_bottom.btn_img 导入图片
DataEditForm.pl_main.splitContainer..lb_types 卡片类型
DataEditForm.pl_main.splitContainer..lb_types 卡片类型
DataEditForm.pl_main.splitContainer..lb_markers 连接标记
DataEditForm.pl_main.splitContainer..lb_markers 连接标记
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment