eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'UndoSupport':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: UndoSupport


Inheritance:

   Object
   |
   +--UndoSupport

Package:
stx:libbasic2
Category:
Views-Text
Version:
rev: 1.16 date: 2024/02/16 18:57:48
user: stefan
file: UndoSupport.st directory: libbasic2
module: stx stc-classLibrary: libbasic2

Description:


Framework for undo & redo.
See concrete usage in EditTextView.


[instance variables:]

[class variables:]

copyright

COPYRIGHT (c) 2004 by eXept Software AG All Rights Reserved This software is furnished under a license and may be used only in accordance with the terms of that license and with the inclusion of the above copyright notice. This software may not be provided or otherwise made available to, or used by, any other person. No title to or ownership of the software is hereby transferred.

Class protocol:

cleanup
o  lowSpaceCleanup
(comment from inherited method)
ignored here - redefined in some classes to
cleanup in low-memory situations

instance creation
o  for: anActionPerformer

o  new
(comment from inherited method)
return an instance of myself without indexed variables


Instance protocol:

accessing
o  actionInfo: aString

o  undoLimit

o  undoLimit: something

initialization
o  actionPerformer: something

o  initialize
undoLimit := 1000.

o  resetHistories

queries
o  isInTransaction

o  transactionNotEmpty

undo & again
o  addUndo: action

o  addUndoFirst: action

o  closeTransactionAndAddTo: anUndoList
at the end of an operation, check the individual undo actions
and add them to the given undoList.
(either individually or as a compound undo action).
Check if the new action(s) can be combined with the previous undo action into one
(this is done for individual keystrokes and character-deletions)

o  executeActionFrom: doList addUndoTo: unDoList

o  hasRedoAction

o  hasUndoAction

o  lastRedoAction

o  lastUndoAction

o  nonUndoableDo: aBlock

o  redo

o  redoActionInfo

o  undo

o  undoActionInfo

o  undoableDo: aBlock

o  undoableDo: aBlock info: aString


Private classes:

    CompoundAction

Examples:


See usage in EditTextView


ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 04:44:22 GMT