34 行
602 B
C#
34 行
602 B
C#
using YukkuriMovieMaker.UndoRedo;
|
|
|
|
namespace UndoTree;
|
|
|
|
internal enum UndoRedoHistorySource
|
|
{
|
|
Name,
|
|
Type,
|
|
Events,
|
|
}
|
|
|
|
internal interface IUndoRedoHistory
|
|
{
|
|
UndoRedoHistorySource Source { get; }
|
|
|
|
bool CanReplay { get; }
|
|
|
|
bool CanRewriteUndo { get; }
|
|
|
|
bool CanRewriteRedo { get; }
|
|
|
|
bool IsConsistent { get; }
|
|
|
|
IReadOnlyList<object> Undo { get; }
|
|
|
|
IReadOnlyList<object> Redo { get; }
|
|
|
|
IReadOnlyList<IUndoRedoCommandBase> CommandsOf(object handle);
|
|
|
|
bool TrySetUndo(IReadOnlyList<object> oldestFirst);
|
|
|
|
bool TrySetRedo(IReadOnlyList<object> nextFirst);
|
|
}
|