mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Code style - Use file scoped namespaces
Code style - Ran code cleanup
This commit is contained in:
1 parent
e68e16df4d
commit
f6090dc296
691 files changed
+37301
-38119
No files matched your search
@@ -33,30 +33,31 @@ public class NodeEditorHistory
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the node script the history relates to.
|
||||
/// Gets the node script the history relates to.
|
||||
/// </summary>
|
||||
public INodeScript NodeScript { get; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets an observable sequence containing a boolean value indicating whether history can be undone.
|
||||
/// </summary>
|
||||
public IObservable<bool> CanUndo => _canUndo.AsObservable().DistinctUntilChanged();
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets an observable sequence containing a boolean value indicating whether history can be redone.
|
||||
/// </summary>
|
||||
public IObservable<bool> CanRedo => _canRedo.AsObservable().DistinctUntilChanged();
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reactive command that can be executed to execute an instance of a <see cref="INodeEditorCommand" /> and puts it in history.
|
||||
/// Gets a reactive command that can be executed to execute an instance of a <see cref="INodeEditorCommand" /> and puts
|
||||
/// it in history.
|
||||
/// </summary>
|
||||
public ReactiveCommand<INodeEditorCommand, Unit> Execute { get; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reactive command that can be executed to undo history.
|
||||
/// </summary>
|
||||
public ReactiveCommand<Unit, INodeEditorCommand?> Undo { get; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets a reactive command that can be executed to redo history.
|
||||
/// </summary>
|
||||
@@ -88,8 +89,10 @@ public class NodeEditorHistory
|
||||
private void ClearRedo()
|
||||
{
|
||||
foreach (INodeEditorCommand nodeEditorCommand in _redoCommands)
|
||||
{
|
||||
if (nodeEditorCommand is IDisposable disposable)
|
||||
disposable.Dispose();
|
||||
}
|
||||
|
||||
_redoCommands.Clear();
|
||||
}
|
||||
@@ -97,8 +100,10 @@ public class NodeEditorHistory
|
||||
private void ClearUndo()
|
||||
{
|
||||
foreach (INodeEditorCommand nodeEditorCommand in _undoCommands)
|
||||
{
|
||||
if (nodeEditorCommand is IDisposable disposable)
|
||||
disposable.Dispose();
|
||||
}
|
||||
|
||||
_undoCommands.Clear();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user