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
d42ec5d5
Commit
d42ec5d5
authored
Jan 15, 2015
by
keyongyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2.3.0.3
parent
68a0521d
Changes
20
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
119 additions
and
29 deletions
+119
-29
DataEditorX/Common/StrUtil.cs
DataEditorX/Common/StrUtil.cs
+36
-0
DataEditorX/Config/MyConfig.cs
DataEditorX/Config/MyConfig.cs
+1
-0
DataEditorX/DataEditForm.Designer.cs
DataEditorX/DataEditForm.Designer.cs
+10
-0
DataEditorX/DataEditForm.cs
DataEditorX/DataEditForm.cs
+28
-0
DataEditorX/DataEditorX.csproj
DataEditorX/DataEditorX.csproj
+1
-0
DataEditorX/Properties/AssemblyInfo.cs
DataEditorX/Properties/AssemblyInfo.cs
+1
-1
DataEditorX/app.config
DataEditorX/app.config
+2
-0
DataEditorX/changed.txt
DataEditorX/changed.txt
+3
-0
DataEditorX/data/language_chinese.txt
DataEditorX/data/language_chinese.txt
+1
-0
DataEditorX/data/language_english.txt
DataEditorX/data/language_english.txt
+1
-0
DataEditorX/readme.txt
DataEditorX/readme.txt
+1
-1
win32/DataEditorX.exe
win32/DataEditorX.exe
+0
-0
win32/DataEditorX.exe.config
win32/DataEditorX.exe.config
+24
-22
win32/changed.txt
win32/changed.txt
+3
-0
win32/data/history.txt
win32/data/history.txt
+3
-3
win32/data/language_chinese.txt
win32/data/language_chinese.txt
+1
-0
win32/data/language_english.txt
win32/data/language_english.txt
+1
-0
win32/data/mse_Chinese-Simplified.txt
win32/data/mse_Chinese-Simplified.txt
+1
-1
win32/readme.txt
win32/readme.txt
+1
-1
win32/win32.zip
win32/win32.zip
+0
-0
No files found.
DataEditorX/Common/StrUtil.cs
0 → 100644
View file @
d42ec5d5
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
DataEditorX.Common
{
public
class
StrUtil
{
public
static
string
AutoEnter
(
string
str
,
int
lineNum
,
string
re
)
{
if
(
str
==
null
||
str
.
Length
==
0
||
re
==
null
||
re
.
Length
==
0
)
return
str
;
char
[]
ch
=
str
.
ToCharArray
();
int
count
=
ch
.
Length
;
StringBuilder
sb
=
new
StringBuilder
();
int
i
=
0
;
foreach
(
char
c
in
ch
)
{
int
ic
=
c
;
if
(
ic
>
128
)
i
+=
2
;
else
i
+=
1
;
sb
.
Append
(
c
);
if
(
i
>=
lineNum
)
{
sb
.
Append
(
re
);
i
=
0
;
}
}
return
sb
.
ToString
();
}
}
}
DataEditorX/Config/MyConfig.cs
View file @
d42ec5d5
...
...
@@ -44,6 +44,7 @@ public class MyConfig : XMLReader
/// 语言
/// </summary>
public
const
string
TAG_LANGUAGE
=
"language"
;
public
const
string
TAG_AUTO_LEN
=
"autolength"
;
/// <summary>
/// 临时文件
/// </summary>
...
...
DataEditorX/DataEditForm.Designer.cs
View file @
d42ec5d5
...
...
@@ -124,6 +124,7 @@ private void InitializeComponent()
this
.
lv_cardlist
=
new
System
.
Windows
.
Forms
.
DListView
();
this
.
ch_cardcode
=
((
System
.
Windows
.
Forms
.
ColumnHeader
)(
new
System
.
Windows
.
Forms
.
ColumnHeader
()));
this
.
ch_cardname
=
((
System
.
Windows
.
Forms
.
ColumnHeader
)(
new
System
.
Windows
.
Forms
.
ColumnHeader
()));
this
.
menuitem_saveasenter
=
new
System
.
Windows
.
Forms
.
ToolStripMenuItem
();
this
.
mainMenu
.
SuspendLayout
();
this
.
SuspendLayout
();
//
...
...
@@ -279,6 +280,7 @@ private void InitializeComponent()
this
.
menuitem_compdb
,
this
.
menuitem_findluafunc
,
this
.
menuitem_exportdata
,
this
.
menuitem_saveasenter
,
this
.
tsep5
,
this
.
menuitem_cutimages
,
this
.
menuitem_convertimage
,
...
...
@@ -1010,6 +1012,13 @@ private void InitializeComponent()
this
.
ch_cardname
.
Text
=
"Card Name"
;
this
.
ch_cardname
.
Width
=
140
;
//
// menuitem_saveasenter
//
this
.
menuitem_saveasenter
.
Name
=
"menuitem_saveasenter"
;
this
.
menuitem_saveasenter
.
Size
=
new
System
.
Drawing
.
Size
(
212
,
22
);
this
.
menuitem_saveasenter
.
Text
=
"Save as Auto Enter"
;
this
.
menuitem_saveasenter
.
Click
+=
new
System
.
EventHandler
(
this
.
menuitem_saveasenter_Click
);
//
// DataEditForm
//
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
...
...
@@ -1168,5 +1177,6 @@ private void InitializeComponent()
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
menuitem_operacardsfile
;
private
System
.
Windows
.
Forms
.
ToolStripSeparator
tsep2
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
menuitem_openfileinthis
;
private
System
.
Windows
.
Forms
.
ToolStripMenuItem
menuitem_saveasenter
;
}
}
DataEditorX/DataEditForm.cs
View file @
d42ec5d5
...
...
@@ -12,6 +12,7 @@
using
System.IO
;
using
System.Windows.Forms
;
using
DataEditorX.Common
;
using
DataEditorX.Core
;
using
DataEditorX.Language
;
using
WeifenLuo.WinFormsUI.Docking
;
...
...
@@ -1528,5 +1529,32 @@ private void menuitem_openfileinthis_Click(object sender, EventArgs e)
MyConfig
.
Save
(
MyConfig
.
TAG_OPEN_IN_THIS
,
menuitem_openfileinthis
.
Checked
.
ToString
().
ToLower
());
}
#
endregion
private
void
menuitem_saveasenter_Click
(
object
sender
,
EventArgs
e
)
{
using
(
SaveFileDialog
dlg
=
new
SaveFileDialog
())
{
dlg
.
Title
=
LanguageHelper
.
GetMsg
(
LMSG
.
SelectDataBasePath
);
dlg
.
Filter
=
LanguageHelper
.
GetMsg
(
LMSG
.
CdbType
);
if
(
dlg
.
ShowDialog
()
==
DialogResult
.
OK
)
{
if
(
DataBase
.
Create
(
dlg
.
FileName
))
{
//
Card
[]
cards
=
DataBase
.
Read
(
nowCdbFile
,
true
,
""
);
int
count
=
cards
.
Length
;
if
(
cards
==
null
||
cards
.
Length
==
0
)
return
;
int
len
=
MyConfig
.
readInteger
(
MyConfig
.
TAG_AUTO_LEN
,
30
);
for
(
int
i
=
0
;
i
<
count
;
i
++)
{
cards
[
i
].
desc
=
StrUtil
.
AutoEnter
(
cards
[
i
].
desc
,
len
,
" "
);
}
DataBase
.
CopyDB
(
dlg
.
FileName
,
false
,
cards
);
MyMsg
.
Show
(
LMSG
.
CopyCardsToDBIsOK
);
}
}
}
}
}
}
DataEditorX/DataEditorX.csproj
View file @
d42ec5d5
...
...
@@ -69,6 +69,7 @@
</Compile>
<Compile
Include=
"Common\CheckUpdate.cs"
/>
<Compile
Include=
"Common\ConfHelper.cs"
/>
<Compile
Include=
"Common\StrUtil.cs"
/>
<Compile
Include=
"Common\XMLReader.cs"
/>
<Compile
Include=
"Config\YgoPath.cs"
/>
<Compile
Include=
"Controls\DoubleContorl.cs"
>
...
...
DataEditorX/Properties/AssemblyInfo.cs
View file @
d42ec5d5
...
...
@@ -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.3.0.
2
"
)]
[
assembly
:
AssemblyVersion
(
"2.3.0.
3
"
)]
DataEditorX/app.config
View file @
d42ec5d5
...
...
@@ -10,6 +10,8 @@
<!--
access
these
values
via
the
property
:
System
.
Configuration
.
ConfigurationManager
.
AppSettings
[
key
]
-->
<!--
auto
enter
length
-->
<
add
key
=
"autolength"
value
=
"32"
/>
<!--
MSE
language
data
/
mse_xxx
.
txt
-->
<
add
key
=
"mse"
value
=
"Chinese-Simplified"
/>
<!--
Language
data
/
cardinfo_xxxx
.
txt
data
/
language_xxx
.
txt
-->
...
...
DataEditorX/changed.txt
View file @
d42ec5d5
★更新历史
2.3.0.3
为了适应ygopro1033.3,增加分行
配置config的autolength,控制每多少个字符,换行
2.3.0.2
MSE存档文本处理
2.3.0.1
...
...
DataEditorX/data/language_chinese.txt
View file @
d42ec5d5
...
...
@@ -46,6 +46,7 @@ DataEditForm.mainMenu.menu_data 数据(&D)
DataEditForm.mainMenu.menuitem_operacardsfile 同步操作卡片图片和脚本
DataEditForm.mainMenu.menuitem_openfileinthis 用CodeEditor打开脚本
DataEditForm.mainMenu.menuitem_findluafunc 从C++源码查找Lua函数
DataEditForm.mainMenu.menuitem_saveasenter 自动分行
DataEditForm.mainMenu.menuitem_readydk 从卡组文件读取卡片(&Y)
DataEditForm.mainMenu.menuitem_readimages 从卡图文件夹读取卡片(&I)
DataEditForm.mainMenu.menuitem_compdb 压缩数据库
...
...
DataEditorX/data/language_english.txt
View file @
d42ec5d5
...
...
@@ -47,6 +47,7 @@ DataEditForm.mainMenu.menuitem_readydk Read From ydk File(&Y)
DataEditForm.mainMenu.menuitem_readimages Read From Images Path(&I)
DataEditForm.mainMenu.menuitem_compdb Compress DataBase
DataEditForm.mainMenu.menuitem_exportdata Export Data As zip
DataEditForm.mainMenu.menuitem_saveasenter Auto Enter
DataEditForm.mainMenu.menuitem_mseconfig Set MSE Config
DataEditForm.mainMenu.menuitem_readmse Read MSE-set
DataEditForm.mainMenu.menuitem_saveasmse_select Save Selected As MSE-set
...
...
DataEditorX/readme.txt
View file @
d42ec5d5
[DataEditorX]2.3.0.
2
[DataEditorX]
[DataEditorX]2.3.0.
3
[DataEditorX]
[URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL]
★运行环境(Environment)
...
...
win32/DataEditorX.exe
View file @
d42ec5d5
No preview for this file type
win32/DataEditorX.exe.config
View file @
d42ec5d5
...
...
@@ -10,6 +10,8 @@
<!--
access
these
values
via
the
property
:
System
.
Configuration
.
ConfigurationManager
.
AppSettings
[
key
]
-->
<!--
auto
enter
length
-->
<
add
key
=
"autolength"
value
=
"32"
/>
<!--
MSE
language
data
/
mse_xxx
.
txt
-->
<
add
key
=
"mse"
value
=
"Chinese-Simplified"
/>
<!--
Language
data
/
cardinfo_xxxx
.
txt
data
/
language_xxx
.
txt
-->
...
...
win32/changed.txt
View file @
d42ec5d5
★更新历史
2.3.0.3
为了适应ygopro1033.3,增加分行
配置config的autolength,控制每多少个字符,换行
2.3.0.2
MSE存档文本处理
2.3.0.1
...
...
win32/data/history.txt
View file @
d42ec5d5
# database history
F:\games\ygopro\test.cdb
F:\games\ygopro\cards.cdb
D:\Program Files (x86)\ygopro\cards2.cdb
# script history
D:\Program Files (x86)\ygopro\script\c50755.lua
\ No newline at end of file
win32/data/language_chinese.txt
View file @
d42ec5d5
...
...
@@ -46,6 +46,7 @@ DataEditForm.mainMenu.menu_data 数据(&D)
DataEditForm.mainMenu.menuitem_operacardsfile 同步操作卡片图片和脚本
DataEditForm.mainMenu.menuitem_openfileinthis 用CodeEditor打开脚本
DataEditForm.mainMenu.menuitem_findluafunc 从C++源码查找Lua函数
DataEditForm.mainMenu.menuitem_saveasenter 自动分行
DataEditForm.mainMenu.menuitem_readydk 从卡组文件读取卡片(&Y)
DataEditForm.mainMenu.menuitem_readimages 从卡图文件夹读取卡片(&I)
DataEditForm.mainMenu.menuitem_compdb 压缩数据库
...
...
win32/data/language_english.txt
View file @
d42ec5d5
...
...
@@ -47,6 +47,7 @@ DataEditForm.mainMenu.menuitem_readydk Read From ydk File(&Y)
DataEditForm.mainMenu.menuitem_readimages Read From Images Path(&I)
DataEditForm.mainMenu.menuitem_compdb Compress DataBase
DataEditForm.mainMenu.menuitem_exportdata Export Data As zip
DataEditForm.mainMenu.menuitem_saveasenter Auto Enter
DataEditForm.mainMenu.menuitem_mseconfig Set MSE Config
DataEditForm.mainMenu.menuitem_readmse Read MSE-set
DataEditForm.mainMenu.menuitem_saveasmse_select Save Selected As MSE-set
...
...
win32/data/mse_Chinese-Simplified.txt
View file @
d42ec5d5
...
...
@@ -6,7 +6,7 @@
cn2tw = false
########################### 存档最大卡片数
maxcount = 0
imagepath =
E:\github\i
mages
imagepath =
./I
mages
########################### Spell/Trap
#jp setting
# spell = %%
...
...
win32/readme.txt
View file @
d42ec5d5
[DataEditorX]2.3.0.
2
[DataEditorX]
[DataEditorX]2.3.0.
3
[DataEditorX]
[URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL]
★运行环境(Environment)
...
...
win32/win32.zip
View file @
d42ec5d5
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