Class NodeEditorHistory
- Namespace
- Artemis.UI.Shared.Services.NodeEditor
- Assembly
- Artemis.UI.Shared.dll
Represents the command history of a node script.
public class NodeEditorHistory
- Inheritance
-
objectNodeEditorHistory
Constructors
NodeEditorHistory(INodeScript)
Creates a new instance of the NodeEditorHistory class.
public NodeEditorHistory(INodeScript nodeScript)
Parameters
nodeScriptINodeScriptThe node script the history relates to.
Properties
CanRedo
Gets an observable sequence containing a boolean value indicating whether history can be redone.
public IObservable<bool> CanRedo { get; }
Property Value
CanUndo
Gets an observable sequence containing a boolean value indicating whether history can be undone.
public IObservable<bool> CanUndo { get; }
Property Value
Execute
Gets a reactive command that can be executed to execute an instance of a INodeEditorCommand and puts it in history.
public ReactiveCommand<INodeEditorCommand, Unit> Execute { get; }
Property Value
- ReactiveCommand<INodeEditorCommand, Unit>
NodeScript
Gets the node script the history relates to.
public INodeScript NodeScript { get; }
Property Value
Redo
Gets a reactive command that can be executed to redo history.
public ReactiveCommand<Unit, INodeEditorCommand?> Redo { get; }
Property Value
- ReactiveCommand<Unit, INodeEditorCommand>
Undo
Gets a reactive command that can be executed to undo history.
public ReactiveCommand<Unit, INodeEditorCommand?> Undo { get; }
Property Value
- ReactiveCommand<Unit, INodeEditorCommand>
Methods
Clear()
Clears the history.
public void Clear()
ExecuteEditorCommand(INodeEditorCommand)
Executes the provided command and puts it in history.
public void ExecuteEditorCommand(INodeEditorCommand command)
Parameters
commandINodeEditorCommandThe command to execute