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.13 date: 2017/05/22 10:48:18
user: mawalch
file: UndoSupport.st directory: libbasic2
module: stx stc-classLibrary: libbasic2
Author:
(cg@betti)

Description:


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


[instance variables:]

[class variables:]


Related information:



Class protocol:

instance creation
o  for: anActionPerformer

o  new


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.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 29 Mar 2024 11:20:21 GMT