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