Hence, even in this case we want to distinguish between the command that interacts with the environment and the command that directly (after gathering all information) with the document. When the user then redos that step, he expects that the same content is added again as was just removed/originally added – even if the clipboard content has changed in the meantime. Imagine that - at some later point in time - the user undos the last editing steps including the pasting of the clipboard content. After you undo an action, you can redo it, which. and the menu titles of the undo/redo actions are then Undo kActionNameAddTask or whatever the name of the action was set. Some commands, e.g., "paste clipboard content" are typically triggered by some user interaction, but do not require any further user interaction and, hence, could be regarded as a command of the second type. To undo your last action, select Edit > Undo or press Ctrl+Z (Microsoft Windows) or Command+Z (Mac OS X). These commands then have to offer an execute and unexecute methods.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |