FieldUndo¶
-
MacroModule
¶ genre Fields
author MeVis Medical Solutions AG
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 a single field.
Usage¶
To facilitate the undo and redo, simply connect an arbitrary field in both directions to the Value
field of the FieldUndo
module.
Parameter Fields¶
Field Index¶
Clear : Trigger |
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.
Index¶
-
name:
index
, type:
Integer
, default:
0
, minimum:
0
, maximum:
0
¶ Sets the index to a specific value in the history.
The valid range is [0..size-1].