Frequency navigation WIP
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.Reactive.Linq;
|
||||
using DynamicData;
|
||||
using FileTime.Core.ContentAccess;
|
||||
using FileTime.Core.Enums;
|
||||
using FileTime.Core.Timeline;
|
||||
@@ -21,7 +22,7 @@ public interface IItem
|
||||
string? Attributes { get; }
|
||||
AbsolutePathType Type { get; }
|
||||
PointInTime PointInTime { get; }
|
||||
IObservable<IEnumerable<Exception>> Exceptions { get; }
|
||||
IObservable<IChangeSet<Exception>> Exceptions { get; }
|
||||
ReadOnlyExtensionCollection Extensions { get; }
|
||||
|
||||
T? GetExtension<T>() => (T?)Extensions.FirstOrDefault(i => i is T);
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
using FileTime.Core.Services;
|
||||
|
||||
namespace FileTime.Core.Models;
|
||||
|
||||
public class TabLocationChanged : EventArgs
|
||||
{
|
||||
public FullName Location { get; }
|
||||
public ITab Tab { get; }
|
||||
|
||||
public TabLocationChanged(FullName location, ITab tab)
|
||||
{
|
||||
Location = location;
|
||||
Tab = tab;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using FileTime.Core.Models;
|
||||
|
||||
namespace FileTime.Core.Services;
|
||||
|
||||
public interface ITabEvents
|
||||
{
|
||||
event EventHandler<TabLocationChanged> LocationChanged;
|
||||
void OnLocationChanged(ITab tab, FullName location);
|
||||
}
|
||||
Reference in New Issue
Block a user