You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Undoers were little objects to swap/revert an action. They didn't
execute the action itself, they just revert its previous state. Now
undoers were replaced with cmds: A cmd is an object that
executes/undoes/redoes just one action.
Changes:
* Remove old undo library and app/objects_container_impl.cpp
(now we use the doc::ObjectId directly to store undo info)
* Remove all Undoers from app/undoers/
* Replace DocumentApi impl with little Cmds in app/cmd/, these
cmds handle execute/undo/redo of each action at the logic layer
* Remove doc::Dirty object
* Remove doc::Settings: all undo configuration is in the app side
* Move undo options from app:ISettings to app::Preferences
* Rename UndoTransaction to Transaction
* Create a CmdSequence to store a sequence of Cmds (as now the new
undo library doesn't support open/close groups)
* Add doc::get<T>(ObjectId) function to get any kind of object
from the doc library by its ID
* Add Cel::document() and Sprite::document() members
* Add Sprite::cels(frame_t) to get all cels in the given frame
* Add Layer::displaceFrames() member function
* Move the "allow non-linear history" flag from undo2::UndoHistory
to app::DocumentUndo
Copy file name to clipboardExpand all lines: data/widgets/options.xml
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
<!-- Aseprite -->
2
-
<!-- Copyright (C) 2001-2014 by David Capello -->
2
+
<!-- Copyright (C) 2001-2015 by David Capello -->
3
3
<gui>
4
4
<windowid="options"text="Preferences">
5
5
<vbox>
@@ -86,15 +86,16 @@
86
86
<!-- Undo -->
87
87
<vboxid="section_undo">
88
88
<separatortext="Undo"horizontal="true" />
89
-
<boxhorizontal="true">
89
+
<hbox>
90
90
<labeltext="Undo Limit:" />
91
91
<entryid="undo_size_limit"maxsize="4"tooltip="Limit of memory to be used for undo information per sprite. Specified in megabytes." />
92
92
<labeltext="MB" />
93
-
</box>
93
+
</hbox>
94
94
95
-
<boxhorizontal="true">
95
+
<vbox>
96
96
<checkid="undo_goto_modified"text="Go to modified frame/layer"tooltip="When it's enabled each time you undo/redo the current frame & layer will be modified to focus the undid/redid change." />
0 commit comments