Each action is identified by its name, for instance
"Properties Edition" refers to Edit > Properties. When you run a command
or or when you start editing an object, you start a global
action. Such action is identified in the Undo with history
dialog box by a name beginning with "Start" (e.g. "Start line
definition...", "Start Edition : Part xxx", etc.).
Inside a command, you perform internal transitions and some of
them are displayed in the Undo with history dialog box
with a name ending with "..." to distinguish them from global
commands (e.g. "Select search results...").
When a command is over, local actions are committed and replaced
in the Undo with history dialog box by a global action
representing everything you did while running the command.
Note that a global action can sometimes be seen as a local action
from a more global point of view: this is the case, for instance,
for an exclusive command performed while editing, or for a shared
command used while running another command.
You can reverse then
recover internal transitions as long as you are in the command. If
several Undo actions are performed successively until the
command's starting action is reversed, the command itself is
reversed.
For instance, suppose the following scenario with two
different cases:
- Copy an object.
- Paste the object.
- Select the object then move it.
Case 1
Click Undo: this moves the object back to its original
position in step 2.
Click Redo: this moves the object to the location
defined in step 3.
You can reverse then recover the move because you are still in the
Select command.
Case 2
Click Undo: this moves the object back to its original
position in step 2.
Click Undo once again: the paste action is canceled
and you go back to step 1.
Click Redo: the object is pasted.
But you cannot recover step 3 after this and if you display the
history, you can see that it is empty. You cannot recover the move
because the second reversal impacts the Paste command and
not the Select command anymore. |