FieldUndo

MacroModule
genre Fields
author Horst Hahn
package MeVisLab/Standard
definition helpers.def
see also SettingsManager, FieldIterator
keywords fields, changes, history

Purpose

The module FieldUndo provides simple undo and redo functionality to single fields.

Usage

To facilitate the undo and redo, simply connect an arbitrary field in both directions to the value field of the FieldUndo module.

Windows

Default Panel

../../../Modules/Macros/Helpers/mhelp/Images/Screenshots/FieldUndo._default.png

Parameter Fields

Field Index

History Size: Integer
historySizeMax: Integer
Index: Integer
Redo: Trigger
Size: Integer
Undo: Trigger
Value: String

Visible Fields

Value

name: value, type: String

Sets and shows the value. To be connected in both directions to the field that should have the undo/redo functionality.

History Size

name: historySize, type: Integer, default: 20, minimum: 1, maximum: :field:`historySizeMax`

Sets the maximum size of the undo history.

Size

name: size, type: Integer, default: 0

Shows the current number of stored undo steps.

Index

name: index, type: Integer, default: 0, minimum: 0, maximum: 0

Sets the index to a specific value in the history.

Undo

name: undo, type: Trigger

If pressed, the previous value is set to the value field.

Redo

name: redo, type: Trigger

If pressed, the next available value is set to the value field.

Hidden Fields

historySizeMax

name: historySizeMax, type: Integer, default: 100