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
2
Issues
2
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
a44d0cb9
Commit
a44d0cb9
authored
Jan 25, 2022
by
JoyJ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update version
parent
1de76256
Pipeline
#8988
failed with stage
Changes
10
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
102 additions
and
18 deletions
+102
-18
.gitlab-ci.yml
.gitlab-ci.yml
+1
-1
DataEditorX/CodeEditForm_Avalon.Designer.cs
DataEditorX/CodeEditForm_Avalon.Designer.cs
+8
-8
DataEditorX/CodeEditForm_Avalon.cs
DataEditorX/CodeEditForm_Avalon.cs
+27
-0
DataEditorX/DataEditForm.cs
DataEditorX/DataEditForm.cs
+7
-3
DataEditorX/MainForm.Designer.cs
DataEditorX/MainForm.Designer.cs
+3
-0
DataEditorX/MainForm.cs
DataEditorX/MainForm.cs
+49
-1
DataEditorX/Properties/AssemblyInfo.cs
DataEditorX/Properties/AssemblyInfo.cs
+1
-1
DataEditorX/changed.txt
DataEditorX/changed.txt
+2
-0
DataEditorX/data/avalon.xshd
DataEditorX/data/avalon.xshd
+2
-2
DataEditorX/readme.txt
DataEditorX/readme.txt
+2
-2
No files found.
.gitlab-ci.yml
View file @
a44d0cb9
...
@@ -17,7 +17,7 @@ build_dex:
...
@@ -17,7 +17,7 @@ build_dex:
-
cmd /c '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\msbuild.exe" DataEditorX.sln /p:Configuration=Release /p:Platform="Any CPU" /p:OutDir=$PWD/output/ /p:TargetFrameworkVersion=v4.6
-
cmd /c '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\msbuild.exe" DataEditorX.sln /p:Configuration=Release /p:Platform="Any CPU" /p:OutDir=$PWD/output/ /p:TargetFrameworkVersion=v4.6
-
mkdir -p dist/releases
-
mkdir -p dist/releases
-
cd output
-
cd output
-
7z a -mx9 ../dist/releases/DataEditorX-
3.0.1
.0.zip ./*
-
7z a -mx9 ../dist/releases/DataEditorX-
4.0.0
.0.zip ./*
-
cd ..
-
cd ..
-
copy DataEditorX/readme.txt dist/version.txt
-
copy DataEditorX/readme.txt dist/version.txt
...
...
DataEditorX/CodeEditForm_Avalon.Designer.cs
View file @
a44d0cb9
...
@@ -71,7 +71,7 @@ private void InitializeComponent()
...
@@ -71,7 +71,7 @@ private void InitializeComponent()
this
.
host
=
new
System
.
Windows
.
Forms
.
Integration
.
ElementHost
();
this
.
host
=
new
System
.
Windows
.
Forms
.
Integration
.
ElementHost
();
this
.
editor
=
new
ICSharpCode
.
AvalonEdit
.
TextEditor
();
this
.
editor
=
new
ICSharpCode
.
AvalonEdit
.
TextEditor
();
this
.
lbTooltip
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lbTooltip
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
setCodeEditorFontToolStripMenuItem
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
menuitem_CEFont
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
mainMenu
.
SuspendLayout
();
this
.
mainMenu
.
SuspendLayout
();
this
.
SuspendLayout
();
this
.
SuspendLayout
();
//
//
...
@@ -142,7 +142,7 @@ private void InitializeComponent()
...
@@ -142,7 +142,7 @@ private void InitializeComponent()
this
.
menuitem_find
,
this
.
menuitem_find
,
this
.
menuitem_replace
,
this
.
menuitem_replace
,
this
.
menuitem_tooltipFont
,
this
.
menuitem_tooltipFont
,
this
.
setCodeEditorFontToolStripMenuItem
});
this
.
menuitem_CEFont
});
this
.
menuitem_setting
.
Name
=
"menuitem_setting"
;
this
.
menuitem_setting
.
Name
=
"menuitem_setting"
;
this
.
menuitem_setting
.
Size
=
new
System
.
Drawing
.
Size
(
75
,
20
);
this
.
menuitem_setting
.
Size
=
new
System
.
Drawing
.
Size
(
75
,
20
);
this
.
menuitem_setting
.
Text
=
"Settings(&S)"
;
this
.
menuitem_setting
.
Text
=
"Settings(&S)"
;
...
@@ -268,12 +268,12 @@ private void InitializeComponent()
...
@@ -268,12 +268,12 @@ private void InitializeComponent()
this
.
lbTooltip
.
TabIndex
=
6
;
this
.
lbTooltip
.
TabIndex
=
6
;
this
.
lbTooltip
.
MouseMove
+=
new
System
.
Windows
.
Forms
.
MouseEventHandler
(
this
.
lbTooltip_MouseMove
);
this
.
lbTooltip
.
MouseMove
+=
new
System
.
Windows
.
Forms
.
MouseEventHandler
(
this
.
lbTooltip_MouseMove
);
//
//
//
setCodeEditorFontToolStripMenuItem
//
menuitem_CEFont
//
//
this
.
setCodeEditorFontToolStripMenuItem
.
Name
=
"setCodeEditorFontToolStripMenuItem
"
;
this
.
menuitem_CEFont
.
Name
=
"menuitem_CEFont
"
;
this
.
setCodeEditorFontToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
184
,
22
);
this
.
menuitem_CEFont
.
Size
=
new
System
.
Drawing
.
Size
(
184
,
22
);
this
.
setCodeEditorFontToolStripMenuItem
.
Text
=
"Set CodeEditor Font"
;
this
.
menuitem_CEFont
.
Text
=
"Set CodeEditor Font"
;
this
.
setCodeEditorFontToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
setCodeEditorFontToolStripMenuItem_Click
);
this
.
menuitem_CEFont
.
Click
+=
new
System
.
EventHandler
(
this
.
setCodeEditorFontToolStripMenuItem_Click
);
//
//
// CodeEditForm_Avalon
// CodeEditForm_Avalon
//
//
...
@@ -548,6 +548,6 @@ public double Priority
...
@@ -548,6 +548,6 @@ public double Priority
ICSharpCode
.
AvalonEdit
.
TextEditor
editor
;
ICSharpCode
.
AvalonEdit
.
TextEditor
editor
;
private
Label
lbTooltip
;
private
Label
lbTooltip
;
private
ToolStripMenuItem
menuitem_tooltipFont
;
private
ToolStripMenuItem
menuitem_tooltipFont
;
private
ToolStripMenuItem
setCodeEditorFontToolStripMenuItem
;
private
ToolStripMenuItem
menuitem_CEFont
;
}
}
}
}
DataEditorX/CodeEditForm_Avalon.cs
View file @
a44d0cb9
...
@@ -69,9 +69,36 @@ void InitForm()
...
@@ -69,9 +69,36 @@ void InitForm()
editor
.
WordWrap
=
DEXConfig
.
ReadBoolean
(
DEXConfig
.
TAG_WORDWRAP
);
editor
.
WordWrap
=
DEXConfig
.
ReadBoolean
(
DEXConfig
.
TAG_WORDWRAP
);
editor
.
Background
=
System
.
Windows
.
Media
.
Brushes
.
Black
;
editor
.
Background
=
System
.
Windows
.
Media
.
Brushes
.
Black
;
editor
.
Foreground
=
System
.
Windows
.
Media
.
Brushes
.
GhostWhite
;
editor
.
Foreground
=
System
.
Windows
.
Media
.
Brushes
.
GhostWhite
;
editor
.
AllowDrop
=
true
;
editor
.
PreviewDragEnter
+=
Editor_DragEnter
;
this
.
RefreshHighlighting
();
this
.
RefreshHighlighting
();
}
}
private
void
Editor_DragEnter
(
object
sender
,
System
.
Windows
.
DragEventArgs
e
)
{
try
{
if
(
e
.
Data
.
GetDataPresent
(
DataFormats
.
FileDrop
))
{
var
data
=
e
.
Data
.
GetData
(
DataFormats
.
FileDrop
);
string
[]
files
=
(
string
[])
data
;
(
this
.
DockPanel
.
Parent
as
MainForm
).
Open
(
files
[
0
]);
SendKeys
.
Send
(
"{ESC}"
);
}
}
catch
{
}
try
{
if
(
e
.
Data
.
GetDataPresent
(
DataFormats
.
Text
))
{
string
file
=
(
string
)
e
.
Data
.
GetData
(
DataFormats
.
Text
);
(
this
.
DockPanel
.
Parent
as
MainForm
).
Open
(
file
);
SendKeys
.
Send
(
"{ESC}"
);
}
}
catch
{
}
}
private
void
Editor_MouseWheel
(
object
sender
,
System
.
Windows
.
Input
.
MouseWheelEventArgs
e
)
private
void
Editor_MouseWheel
(
object
sender
,
System
.
Windows
.
Input
.
MouseWheelEventArgs
e
)
{
{
if
((
Control
.
ModifierKeys
&
Keys
.
Control
)
==
Keys
.
Control
)
if
((
Control
.
ModifierKeys
&
Keys
.
Control
)
==
Keys
.
Control
)
...
...
DataEditorX/DataEditForm.cs
View file @
a44d0cb9
...
@@ -2210,11 +2210,12 @@ private void menuitem_language_Click(object sender, EventArgs e)
...
@@ -2210,11 +2210,12 @@ private void menuitem_language_Click(object sender, EventArgs e)
private
void
OnDragDrop
(
object
sender
,
DragEventArgs
e
)
private
void
OnDragDrop
(
object
sender
,
DragEventArgs
e
)
{
{
string
[]
drops
=
(
string
[])
e
.
Data
.
GetData
(
DataFormats
.
FileDrop
);
string
[]
drops
=
(
string
[])
e
.
Data
.
GetData
(
DataFormats
.
FileDrop
);
List
<
string
>
files
=
new
List
<
string
>();
if
(
drops
==
null
)
if
(
drops
==
null
)
{
{
return
;
string
file
=
(
string
)
e
.
Data
.
GetData
(
DataFormats
.
Text
);
drops
=
new
string
[
1
]
{
file
};
}
}
List
<
string
>
files
=
new
List
<
string
>();
foreach
(
string
file
in
drops
)
foreach
(
string
file
in
drops
)
{
{
if
(
Directory
.
Exists
(
file
))
if
(
Directory
.
Exists
(
file
))
...
@@ -2222,7 +2223,10 @@ private void OnDragDrop(object sender, DragEventArgs e)
...
@@ -2222,7 +2223,10 @@ private void OnDragDrop(object sender, DragEventArgs e)
files
.
AddRange
(
Directory
.
EnumerateFiles
(
file
,
"*.cdb"
,
SearchOption
.
AllDirectories
));
files
.
AddRange
(
Directory
.
EnumerateFiles
(
file
,
"*.cdb"
,
SearchOption
.
AllDirectories
));
files
.
AddRange
(
Directory
.
EnumerateFiles
(
file
,
"*.lua"
,
SearchOption
.
AllDirectories
));
files
.
AddRange
(
Directory
.
EnumerateFiles
(
file
,
"*.lua"
,
SearchOption
.
AllDirectories
));
}
}
files
.
Add
(
file
);
else
if
(
File
.
Exists
(
file
))
{
files
.
Add
(
file
);
}
}
}
if
(
files
.
Count
>
5
)
if
(
files
.
Count
>
5
)
{
{
...
...
DataEditorX/MainForm.Designer.cs
View file @
a44d0cb9
...
@@ -67,6 +67,7 @@ private void InitializeComponent()
...
@@ -67,6 +67,7 @@ private void InitializeComponent()
//
//
// dockPanel
// dockPanel
//
//
this
.
dockPanel
.
AllowDrop
=
true
;
this
.
dockPanel
.
BackgroundImageLayout
=
System
.
Windows
.
Forms
.
ImageLayout
.
Zoom
;
this
.
dockPanel
.
BackgroundImageLayout
=
System
.
Windows
.
Forms
.
ImageLayout
.
Zoom
;
this
.
dockPanel
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
dockPanel
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
dockPanel
.
DockBackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
238
)))),
((
int
)(((
byte
)(
238
)))),
((
int
)(((
byte
)(
242
)))));
this
.
dockPanel
.
DockBackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
238
)))),
((
int
)(((
byte
)(
238
)))),
((
int
)(((
byte
)(
242
)))));
...
@@ -292,6 +293,8 @@ private void InitializeComponent()
...
@@ -292,6 +293,8 @@ private void InitializeComponent()
this
.
StartPosition
=
System
.
Windows
.
Forms
.
FormStartPosition
.
CenterScreen
;
this
.
StartPosition
=
System
.
Windows
.
Forms
.
FormStartPosition
.
CenterScreen
;
this
.
Text
=
"MainForm"
;
this
.
Text
=
"MainForm"
;
this
.
Load
+=
new
System
.
EventHandler
(
this
.
MainForm_Load
);
this
.
Load
+=
new
System
.
EventHandler
(
this
.
MainForm_Load
);
this
.
DragDrop
+=
new
System
.
Windows
.
Forms
.
DragEventHandler
(
this
.
MainForm_DragDrop
);
this
.
DragEnter
+=
new
System
.
Windows
.
Forms
.
DragEventHandler
(
this
.
MainForm_DragEnter
);
this
.
mainMenu
.
ResumeLayout
(
false
);
this
.
mainMenu
.
ResumeLayout
(
false
);
this
.
mainMenu
.
PerformLayout
();
this
.
mainMenu
.
PerformLayout
();
this
.
ResumeLayout
(
false
);
this
.
ResumeLayout
(
false
);
...
...
DataEditorX/MainForm.cs
View file @
a44d0cb9
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
using
DataEditorX.Core
;
using
DataEditorX.Core
;
using
DataEditorX.Language
;
using
DataEditorX.Language
;
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.IO
;
using
System.IO
;
using
System.Threading
;
using
System.Threading
;
using
System.Windows.Forms
;
using
System.Windows.Forms
;
...
@@ -578,6 +579,11 @@ private void bgWorker1_RunWorkerCompleted(object sender, System.ComponentModel.R
...
@@ -578,6 +579,11 @@ private void bgWorker1_RunWorkerCompleted(object sender, System.ComponentModel.R
#
endregion
#
endregion
private
void
dockPanel_DragEnter
(
object
sender
,
DragEventArgs
e
)
private
void
dockPanel_DragEnter
(
object
sender
,
DragEventArgs
e
)
{
e
.
Effect
=
DragDropEffects
.
All
;
}
private
void
dockPanel_DragDrop
(
object
sender
,
DragEventArgs
e
)
{
{
string
[]
files
=
e
.
Data
.
GetData
(
DataFormats
.
FileDrop
)
as
string
[];
string
[]
files
=
e
.
Data
.
GetData
(
DataFormats
.
FileDrop
)
as
string
[];
if
(
files
!=
null
)
if
(
files
!=
null
)
...
@@ -587,9 +593,51 @@ private void dockPanel_DragEnter(object sender, DragEventArgs e)
...
@@ -587,9 +593,51 @@ private void dockPanel_DragEnter(object sender, DragEventArgs e)
this
.
Open
(
file
);
this
.
Open
(
file
);
}
}
}
}
else
{
string
file
=
(
string
)
e
.
Data
.
GetData
(
DataFormats
.
Text
);
if
(
file
!=
null
&&
File
.
Exists
(
file
))
{
this
.
Open
(
file
);
}
}
}
}
private
void
dockPanel_DragDrop
(
object
sender
,
DragEventArgs
e
)
private
void
MainForm_DragDrop
(
object
sender
,
DragEventArgs
e
)
{
string
[]
drops
=
(
string
[])
e
.
Data
.
GetData
(
DataFormats
.
FileDrop
);
List
<
string
>
files
=
new
List
<
string
>();
if
(
drops
==
null
)
{
string
file
=
(
string
)
e
.
Data
.
GetData
(
DataFormats
.
Text
);
drops
=
new
string
[
1
]
{
file
};
}
foreach
(
string
file
in
drops
)
{
if
(
Directory
.
Exists
(
file
))
{
files
.
AddRange
(
Directory
.
EnumerateFiles
(
file
,
"*.cdb"
,
SearchOption
.
AllDirectories
));
files
.
AddRange
(
Directory
.
EnumerateFiles
(
file
,
"*.lua"
,
SearchOption
.
AllDirectories
));
}
else
if
(
File
.
Exists
(
file
))
{
files
.
Add
(
file
);
}
}
if
(
files
.
Count
>
5
)
{
if
(!
MyMsg
.
Question
(
LMSG
.
IfOpenLotsOfFile
))
{
return
;
}
}
foreach
(
string
file
in
files
)
{
this
.
Open
(
file
);
}
}
private
void
MainForm_DragEnter
(
object
sender
,
DragEventArgs
e
)
{
{
e
.
Effect
=
DragDropEffects
.
All
;
e
.
Effect
=
DragDropEffects
.
All
;
}
}
...
...
DataEditorX/Properties/AssemblyInfo.cs
View file @
a44d0cb9
...
@@ -27,4 +27,4 @@
...
@@ -27,4 +27,4 @@
//
//
// You can specify all the values or you can use the default the Revision and
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
// Build Numbers by using the '*' as shown below:
[
assembly
:
AssemblyVersion
(
"3.0.1.0"
)]
[
assembly
:
AssemblyVersion
(
"4.0.0.0"
)]
\ No newline at end of file
\ No newline at end of file
DataEditorX/changed.txt
View file @
a44d0cb9
★更新历史
★更新历史
4.0.0.0
更新了版本号(?)
3.0.1.0
3.0.1.0
更新了一个新的编辑器,现在能正常显示中文了。
更新了一个新的编辑器,现在能正常显示中文了。
一些旧功能无法在新版编辑器中使用,可自行编辑app.config将editor字段改成【Avalon】以外的字符串以启用旧版编辑器。
一些旧功能无法在新版编辑器中使用,可自行编辑app.config将editor字段改成【Avalon】以外的字符串以启用旧版编辑器。
...
...
DataEditorX/data/avalon.xshd
View file @
a44d0cb9
...
@@ -4,10 +4,10 @@
...
@@ -4,10 +4,10 @@
<Color
name=
"Comment"
foreground=
"#ff999999"
exampleText=
"-- comment"
/>
<Color
name=
"Comment"
foreground=
"#ff999999"
exampleText=
"-- comment"
/>
<Color
name=
"String"
foreground=
"#fff99157"
/>
<Color
name=
"String"
foreground=
"#fff99157"
/>
<Color
name=
"Punctuation"
/>
<Color
name=
"Punctuation"
/>
<Color
name=
"Functions"
fo
ntWeight=
"bold"
foreground=
"Green
"
/>
<Color
name=
"Functions"
fo
reground=
"#ff59c817
"
/>
<Color
name=
"WrongFunctions"
fontWeight=
"bold"
foreground=
"Red"
/>
<Color
name=
"WrongFunctions"
fontWeight=
"bold"
foreground=
"Red"
/>
<Color
name=
"MethodCall"
foreground=
"#ffffcc66"
fontWeight=
"bold"
/>
<Color
name=
"MethodCall"
foreground=
"#ffffcc66"
fontWeight=
"bold"
/>
<Color
name=
"NumberLiteral"
foreground=
"#ff
99cc99
"
/>
<Color
name=
"NumberLiteral"
foreground=
"#ff
c2dfff
"
/>
<Color
name=
"NilKeyword"
fontWeight=
"bold"
/>
<Color
name=
"NilKeyword"
fontWeight=
"bold"
/>
<Color
name=
"Keywords"
fontWeight=
"bold"
foreground=
"#ff6699cc"
/>
<Color
name=
"Keywords"
fontWeight=
"bold"
foreground=
"#ff6699cc"
/>
<Color
name=
"GotoKeywords"
foreground=
"#ffcc99cc"
/>
<Color
name=
"GotoKeywords"
foreground=
"#ffcc99cc"
/>
...
...
DataEditorX/readme.txt
View file @
a44d0cb9
[DataEditorX]
3.0.1
.0[DataEditorX]
[DataEditorX]
4.0.0
.0[DataEditorX]
[URL]https://cdn01.moecube.com/DataEditorX/releases/DataEditorX-
3.0.1
.0.zip[URL]
[URL]https://cdn01.moecube.com/DataEditorX/releases/DataEditorX-
4.0.0
.0.zip[URL]
★运行环境(Environment)
★运行环境(Environment)
本程序基于.Net framework 4.6开发
本程序基于.Net framework 4.6开发
...
...
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