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
0
Issues
0
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
聖園ミカ
DataEditorX
Commits
77d7c7ae
Commit
77d7c7ae
authored
Nov 08, 2014
by
keyongyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2.2.7.3
parent
79c92359
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
66 additions
and
39 deletions
+66
-39
DataEditorX/CodeEditForm.cs
DataEditorX/CodeEditForm.cs
+44
-30
DataEditorX/DataEditorX.csproj
DataEditorX/DataEditorX.csproj
+1
-0
DataEditorX/MainForm.cs
DataEditorX/MainForm.cs
+3
-3
DataEditorX/Properties/AssemblyInfo.cs
DataEditorX/Properties/AssemblyInfo.cs
+1
-1
DataEditorX/app.config
DataEditorX/app.config
+2
-0
DataEditorX/readme.txt
DataEditorX/readme.txt
+3
-1
win32/DataEditorX.exe
win32/DataEditorX.exe
+0
-0
win32/DataEditorX.exe.config
win32/DataEditorX.exe.config
+2
-0
win32/DataEditorX.vshost.exe.config
win32/DataEditorX.vshost.exe.config
+2
-0
win32/chinese/history.txt
win32/chinese/history.txt
+5
-3
win32/readme.txt
win32/readme.txt
+3
-1
win32/win32.zip
win32/win32.zip
+0
-0
No files found.
DataEditorX/CodeEditForm.cs
View file @
77d7c7ae
...
...
@@ -40,6 +40,7 @@ public partial class CodeEditForm : DockContent
string
title
;
string
oldtext
;
Dictionary
<
string
,
string
>
tooltipDic
;
bool
tabisspaces
=
false
;
public
CodeEditForm
()
{
InitForm
();
...
...
@@ -81,10 +82,25 @@ void InitForm()
if
(
float
.
TryParse
(
ConfigurationManager
.
AppSettings
[
"fontsize"
]
,
out
fontsize
))
fctb
.
Font
=
new
Font
(
fontname
,
fontsize
);
if
(
ConfigurationManager
.
AppSettings
[
"IME"
]
.
ToLower
()==
"true"
)
if
(
ReadConfig
(
"IME"
)
.
ToLower
()==
"true"
)
fctb
.
ImeMode
=
ImeMode
.
On
;
if
(
ReadConfig
(
"wordwrap"
).
ToLower
()
==
"true"
)
fctb
.
WordWrap
=
true
;
else
fctb
.
WordWrap
=
false
;
if
(
ReadConfig
(
"tabisspace"
).
ToLower
()
==
"true"
)
tabisspaces
=
true
;
else
tabisspaces
=
false
;
}
string
ReadConfig
(
string
key
)
{
string
v
=
ConfigurationManager
.
AppSettings
[
key
];
if
(
string
.
IsNullOrEmpty
(
v
))
return
""
;
else
return
v
;
}
public
void
LoadXml
(
string
xmlfile
)
{
fctb
.
DescriptionFile
=
xmlfile
;
...
...
@@ -297,37 +313,35 @@ void Menuitem_replaceClick(object sender, EventArgs e)
{
fctb
.
ShowReplaceDialog
();
}
public
void
Save
()
bool
savefile
(
bool
saveas
)
{
string
alltext
=
fctb
.
Text
;
if
(!
tabisspaces
)
alltext
=
alltext
.
Replace
(
" "
,
"\t"
);
if
(
saveas
)
{
using
(
SaveFileDialog
sfdlg
=
new
SaveFileDialog
())
{
sfdlg
.
Filter
=
"Script(*.lua)|*.lua|All Files(*.*)|*.*"
;
if
(
sfdlg
.
ShowDialog
()
==
DialogResult
.
OK
)
{
nowFile
=
sfdlg
.
FileName
;
SetTitle
();
}
else
return
false
;
}
}
File
.
WriteAllText
(
nowFile
,
alltext
,
new
UTF8Encoding
(
false
));
return
true
;
}
public
bool
Save
()
{
if
(
string
.
IsNullOrEmpty
(
nowFile
))
{
using
(
SaveFileDialog
sfdlg
=
new
SaveFileDialog
())
{
sfdlg
.
Filter
=
"Script(*.lua)|*.lua|All Files(*.*)|*.*"
;
if
(
sfdlg
.
ShowDialog
()==
DialogResult
.
OK
)
{
nowFile
=
sfdlg
.
FileName
;
SetTitle
();
}
else
return
;
}
}
fctb
.
SaveToFile
(
nowFile
,
new
UTF8Encoding
(
false
));
return
savefile
(
string
.
IsNullOrEmpty
(
nowFile
));
}
public
void
SaveAs
()
public
bool
SaveAs
()
{
using
(
SaveFileDialog
sfdlg
=
new
SaveFileDialog
())
{
sfdlg
.
Filter
=
"Script(*.lua)|*.lua|All Files(*.*)|*.*"
;
if
(
sfdlg
.
ShowDialog
()==
DialogResult
.
OK
)
{
nowFile
=
sfdlg
.
FileName
;
}
else
return
;
}
fctb
.
SaveToFile
(
nowFile
,
new
UTF8Encoding
(
false
));
return
savefile
(
true
);
}
void
SaveToolStripMenuItemClick
(
object
sender
,
EventArgs
e
)
...
...
DataEditorX/DataEditorX.csproj
View file @
77d7c7ae
...
...
@@ -129,6 +129,7 @@
<ItemGroup>
<None
Include=
"app.config"
>
<CopyToOutputDirectory>
Never
</CopyToOutputDirectory>
<SubType>
Designer
</SubType>
</None>
<None
Include=
"chinese\card-attribute.txt"
>
<CopyToOutputDirectory>
PreserveNewest
</CopyToOutputDirectory>
...
...
DataEditorX/MainForm.cs
View file @
77d7c7ae
...
...
@@ -83,7 +83,7 @@ void Init(string datapath)
public
const
int
MAX_HISTORY
=
0x20
;
public
static
bool
isScript
(
string
file
)
{
if
(
file
.
EndsWith
(
"lua"
,
StringComparison
.
OrdinalIgnoreCase
))
if
(
file
!=
null
&&
file
.
EndsWith
(
"lua"
,
StringComparison
.
OrdinalIgnoreCase
))
return
true
;
return
false
;
}
...
...
@@ -479,8 +479,8 @@ void Menuitem_saveClick(object sender, EventArgs e)
CodeEditForm
cf
=
dockPanel1
.
ActiveContent
as
CodeEditForm
;
if
(
cf
!=
null
)
{
cf
.
Save
();
MyMsg
.
Show
(
LMSG
.
SaveFileOK
);
if
(
cf
.
Save
())
MyMsg
.
Show
(
LMSG
.
SaveFileOK
);
}
}
#
endregion
...
...
DataEditorX/Properties/AssemblyInfo.cs
View file @
77d7c7ae
...
...
@@ -28,4 +28,4 @@
//
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
[
assembly
:
AssemblyVersion
(
"2.2.7.
2
"
)]
[
assembly
:
AssemblyVersion
(
"2.2.7.
3
"
)]
DataEditorX/app.config
View file @
77d7c7ae
...
...
@@ -27,6 +27,8 @@
IME
=
false
English
-->
<
add
key
=
"IME"
value
=
"false"
/>
<
add
key
=
"wordwrap"
value
=
"true"
/>
<
add
key
=
"tabisspace"
value
=
"false"
/>
<
add
key
=
"fontname"
value
=
"Consolas"
/>
<
add
key
=
"fontsize"
value
=
"14.5"
/>
</
appSettings
>
...
...
DataEditorX/readme.txt
View file @
77d7c7ae
[DataEditorX]2.2.7.
2
[DataEditorX]
[DataEditorX]2.2.7.
3
[DataEditorX]
[URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL]
★文件关联
...
...
@@ -58,6 +58,8 @@ Ctrl+鼠标左键 跳转到函数定义
Ctrl+鼠标滑轮 缩放文字
★更新历史
2.2.7.3
lua编辑器,4个空格转换为tab键
2.2.7.2
打开脚本,重复的时候,显示标签
2.2.7.1
...
...
win32/DataEditorX.exe
View file @
77d7c7ae
No preview for this file type
win32/DataEditorX.exe.config
View file @
77d7c7ae
...
...
@@ -27,6 +27,8 @@
IME
=
false
English
-->
<
add
key
=
"IME"
value
=
"false"
/>
<
add
key
=
"wordwrap"
value
=
"true"
/>
<
add
key
=
"tabisspace"
value
=
"false"
/>
<
add
key
=
"fontname"
value
=
"Consolas"
/>
<
add
key
=
"fontsize"
value
=
"14.5"
/>
</
appSettings
>
...
...
win32/DataEditorX.vshost.exe.config
View file @
77d7c7ae
...
...
@@ -27,6 +27,8 @@
IME
=
false
English
-->
<
add
key
=
"IME"
value
=
"false"
/>
<
add
key
=
"wordwrap"
value
=
"true"
/>
<
add
key
=
"tabisspace"
value
=
"false"
/>
<
add
key
=
"fontname"
value
=
"Consolas"
/>
<
add
key
=
"fontsize"
value
=
"14.5"
/>
</
appSettings
>
...
...
win32/chinese/history.txt
View file @
77d7c7ae
# history
F:\games\ygopro\script\c50485594.lua
F:\games\ygopro\script\c17857780.lua
F:\games\ygopro\script\c47198668.lua
F:\games\ygopro\script\c27551.lua
F:\games\ygopro\cards.cdb
F:\games\ygopro\p.zip.cdb
F:\games\ygopro\script\c168917.lua
F:\games\ygopro\script\c47198668.lua
F:\games\ygopro\script\c50485594.lua
F:\games\ygopro\script\c65518099.lua
F:\games\ygopro\p.zip.cdb
F:\games\ygopro\script\c64496451.lua
F:\games\ygopro\script\c78835747.lua
\ No newline at end of file
win32/readme.txt
View file @
77d7c7ae
[DataEditorX]2.2.7.
2
[DataEditorX]
[DataEditorX]2.2.7.
3
[DataEditorX]
[URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL]
★文件关联
...
...
@@ -58,6 +58,8 @@ Ctrl+鼠标左键 跳转到函数定义
Ctrl+鼠标滑轮 缩放文字
★更新历史
2.2.7.3
lua编辑器,4个空格转换为tab键
2.2.7.2
打开脚本,重复的时候,显示标签
2.2.7.1
...
...
win32/win32.zip
View file @
77d7c7ae
No preview for this file type
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