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
43f833b1
Commit
43f833b1
authored
Oct 30, 2020
by
JoyJ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a confirm for undo
parent
f96a1338
Pipeline
#1024
passed with stage
in 51 seconds
Changes
8
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
21 additions
and
12 deletions
+21
-12
DataEditorX/Core/CardEdit.cs
DataEditorX/Core/CardEdit.cs
+4
-4
DataEditorX/Core/CommandManager.cs
DataEditorX/Core/CommandManager.cs
+3
-3
DataEditorX/DataEditForm.cs
DataEditorX/DataEditForm.cs
+4
-0
DataEditorX/Language/LMsg.cs
DataEditorX/Language/LMsg.cs
+1
-0
DataEditorX/changed.txt
DataEditorX/changed.txt
+4
-0
DataEditorX/data/language_chinese.txt
DataEditorX/data/language_chinese.txt
+1
-1
DataEditorX/data/language_english.txt
DataEditorX/data/language_english.txt
+2
-2
DataEditorX/readme.txt
DataEditorX/readme.txt
+2
-2
No files found.
DataEditorX/Core/CardEdit.cs
View file @
43f833b1
...
...
@@ -34,7 +34,7 @@ public AddCommand(CardEdit cardedit)
this
.
dataform
=
cardedit
.
dataform
;
}
public
bool
Excute
(
params
object
[]
args
)
public
bool
Ex
e
cute
(
params
object
[]
args
)
{
if
(!
this
.
dataform
.
CheckOpen
())
{
...
...
@@ -95,7 +95,7 @@ public ModCommand(CardEdit cardedit)
this
.
dataform
=
cardedit
.
dataform
;
}
public
bool
Excute
(
params
object
[]
args
)
public
bool
Ex
e
cute
(
params
object
[]
args
)
{
if
(!
this
.
dataform
.
CheckOpen
())
{
...
...
@@ -211,7 +211,7 @@ public DelCommand(CardEdit cardedit)
this
.
dataform
=
cardedit
.
dataform
;
}
public
bool
Excute
(
params
object
[]
args
)
public
bool
Ex
e
cute
(
params
object
[]
args
)
{
if
(!
this
.
dataform
.
CheckOpen
())
{
...
...
@@ -362,7 +362,7 @@ public CopyCommand(CardEdit cardedit)
this
.
dataform
=
cardedit
.
dataform
;
}
public
bool
Excute
(
params
object
[]
args
)
public
bool
Ex
e
cute
(
params
object
[]
args
)
{
if
(!
this
.
dataform
.
CheckOpen
())
{
...
...
DataEditorX/Core/CommandManager.cs
View file @
43f833b1
...
...
@@ -6,7 +6,7 @@ namespace DataEditorX.Core
public
delegate
void
StatusBool
(
bool
val
);
public
interface
ICommand
:
ICloneable
{
bool
Excute
(
params
object
[]
args
);
bool
Ex
e
cute
(
params
object
[]
args
);
}
public
interface
IBackableCommand
:
ICommand
{
...
...
@@ -46,7 +46,7 @@ private void CommandManager_ReverseUndoStateChanged(bool val)
#
region
ICommandManager
成员
public
void
ExcuteCommand
(
ICommand
command
,
params
object
[]
args
)
{
if
(!
command
.
Excute
(
args
))
if
(!
command
.
Ex
e
cute
(
args
))
{
return
;
}
...
...
@@ -88,7 +88,7 @@ public void ReverseUndo()
return
;
}
command
.
Excute
();
command
.
Ex
e
cute
();
this
.
undoStack
.
Push
((
ICommand
)
command
.
Clone
());
UndoStateChanged
(
this
.
undoStack
.
Count
>
0
);
...
...
DataEditorX/DataEditForm.cs
View file @
43f833b1
...
...
@@ -964,6 +964,10 @@ void Btn_delClick(object sender, EventArgs e)
//撤销
void
Btn_undoClick
(
object
sender
,
EventArgs
e
)
{
if
(!
MyMsg
.
Question
(
LMSG
.
UndoConfirm
))
{
return
;
}
if
(
this
.
cardedit
!=
null
)
{
this
.
cmdManager
.
Undo
();
...
...
DataEditorX/Language/LMsg.cs
View file @
43f833b1
...
...
@@ -95,6 +95,7 @@ public enum LMSG : uint
exportMseImagesErr
=
0x4b
,
syntaxCheckPassed
=
0x4c
,
IfOpenLotsOfFile
=
0x4d
,
UndoConfirm
=
0x4e
,
COUNT
,
}
}
DataEditorX/changed.txt
View file @
43f833b1
★更新历史
3.0.0.6
你现在可以在选项菜单中调整函数提示的字体及其大小了。
现在当滚动到文本末尾时,仍然可以继续向下滚动。
【撤销】按钮现在需要确认后才进行。
3.0.0.5
修正连接标记无法修改的bug
3.0.0.4
...
...
DataEditorX/data/language_chinese.txt
View file @
43f833b1
...
...
@@ -174,4 +174,4 @@ MainForm.mainMenu.menuitem_closeall 关闭所有
0x4b 从MSE存档导出图片失败。
0x4c 测试完成,没有发现语法错误。
0x4d 一次性打开大量文件将导致卡顿,是否继续?
0x4e 下载完成,即将重新启动程序以完成更新。
\ No newline at end of file
0x4e 确定要进行撤销吗?所有未保存的内容都将丢失。
\ No newline at end of file
DataEditorX/data/language_english.txt
View file @
43f833b1
#
#
CodeEditForm.mainMenu.menuitem_file File(&F)
CodeEditForm.mainMenu.menuitem_open Open
CodeEditForm.mainMenu.menuitem_save Save
...
...
@@ -169,4 +169,4 @@ MainForm.mainMenu.menuitem_closeall Close All
0x4b Failed to export MSE-set to images fail.
0x4c No syntax error found.
0x4d It is not recommended to open lots of file at a time. Continue?
0x4e Download completed; the application will be restarted.
\ No newline at end of file
0x4e Are you sure to undo? All unsaved contents will be lost.
\ No newline at end of file
DataEditorX/readme.txt
View file @
43f833b1
[DataEditorX]3.0.0.
5
[DataEditorX]
[URL]https://cdn01.moecube.com/DataEditorX/releases/DataEditorX-3.0.0.
4
.zip[URL]
[DataEditorX]3.0.0.
6
[DataEditorX]
[URL]https://cdn01.moecube.com/DataEditorX/releases/DataEditorX-3.0.0.
6
.zip[URL]
★运行环境(Environment)
本程序基于.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