Console improvements, info providers
This commit is contained in:
@@ -12,7 +12,7 @@ public interface ITabViewModel : IInitable<ITab, int>, IDisposable
|
||||
{
|
||||
ITab? Tab { get; }
|
||||
int TabNumber { get; }
|
||||
IObservable<bool> IsSelected { get; }
|
||||
IDeclarativeProperty<bool> IsSelected { get; }
|
||||
IDeclarativeProperty<IContainer?> CurrentLocation { get; }
|
||||
IDeclarativeProperty<IItemViewModel?> CurrentSelectedItem { get; }
|
||||
IDeclarativeProperty<IContainerViewModel?> CurrentSelectedItemAsContainer { get; }
|
||||
|
||||
@@ -103,15 +103,15 @@ public class MainConfiguration
|
||||
//new CommandBindingConfiguration(ConfigCommand.ShowAllShortcut, Keys.F1),
|
||||
new(DeleteCommand.SoftDeleteCommandName, new[] {new KeyConfig(Keys.D), new KeyConfig(Keys.D, shift: true)}),
|
||||
new(IdentifiableSearchCommand.SearchByNameContainsCommandName, new[] {Keys.S, Keys.N}),
|
||||
new(SwitchToTabCommand.SwitchToLastTabCommandName, new[] {new KeyConfig(Keys.F9, alt: true)}),
|
||||
new(SwitchToTabCommand.SwitchToTab1CommandName, new[] {new KeyConfig(Keys.F1, alt: true)}),
|
||||
new(SwitchToTabCommand.SwitchToTab2CommandName, new[] {new KeyConfig(Keys.F2, alt: true)}),
|
||||
new(SwitchToTabCommand.SwitchToTab3CommandName, new[] {new KeyConfig(Keys.F3, alt: true)}),
|
||||
new(SwitchToTabCommand.SwitchToTab4CommandName, new[] {new KeyConfig(Keys.F4, alt: true)}),
|
||||
new(SwitchToTabCommand.SwitchToTab5CommandName, new[] {new KeyConfig(Keys.F5, alt: true)}),
|
||||
new(SwitchToTabCommand.SwitchToTab6CommandName, new[] {new KeyConfig(Keys.F6, alt: true)}),
|
||||
new(SwitchToTabCommand.SwitchToTab7CommandName, new[] {new KeyConfig(Keys.F7, alt: true)}),
|
||||
new(SwitchToTabCommand.SwitchToTab8CommandName, new[] {new KeyConfig(Keys.F8, alt: true)}),
|
||||
new(SwitchToTabCommand.SwitchToLastTabCommandName, new[] {new KeyConfig(Keys.Num9, alt: true)}),
|
||||
new(SwitchToTabCommand.SwitchToTab1CommandName, new[] {new KeyConfig(Keys.Num1, alt: true)}),
|
||||
new(SwitchToTabCommand.SwitchToTab2CommandName, new[] {new KeyConfig(Keys.Num2, alt: true)}),
|
||||
new(SwitchToTabCommand.SwitchToTab3CommandName, new[] {new KeyConfig(Keys.Num3, alt: true)}),
|
||||
new(SwitchToTabCommand.SwitchToTab4CommandName, new[] {new KeyConfig(Keys.Num4, alt: true)}),
|
||||
new(SwitchToTabCommand.SwitchToTab5CommandName, new[] {new KeyConfig(Keys.Num5, alt: true)}),
|
||||
new(SwitchToTabCommand.SwitchToTab6CommandName, new[] {new KeyConfig(Keys.Num6, alt: true)}),
|
||||
new(SwitchToTabCommand.SwitchToTab7CommandName, new[] {new KeyConfig(Keys.Num7, alt: true)}),
|
||||
new(SwitchToTabCommand.SwitchToTab8CommandName, new[] {new KeyConfig(Keys.Num8, alt: true)}),
|
||||
new(PauseCommandSchedulerCommand.CommandName, new[] {Keys.T, Keys.P}),
|
||||
//new CommandBindingConfiguration(ConfigCommand.TimelineRefresh, new[] { Keys.T, Keys.R }),
|
||||
new(StartCommandSchedulerCommand.CommandName, new[] {Keys.T, Keys.S}),
|
||||
|
||||
@@ -38,7 +38,7 @@ public partial class TabViewModel : ITabViewModel
|
||||
public ITab? Tab { get; private set; }
|
||||
public int TabNumber { get; private set; }
|
||||
|
||||
public IObservable<bool> IsSelected { get; }
|
||||
public IDeclarativeProperty<bool> IsSelected { get; }
|
||||
|
||||
public IDeclarativeProperty<IContainer?> CurrentLocation { get; private set; }
|
||||
public IDeclarativeProperty<IItemViewModel?> CurrentSelectedItem { get; private set; }
|
||||
@@ -60,7 +60,7 @@ public partial class TabViewModel : ITabViewModel
|
||||
_appState = appState;
|
||||
|
||||
MarkedItems = _markedItems.Watch();
|
||||
IsSelected = _appState.SelectedTab.Select(s => s == this);
|
||||
IsSelected = _appState.SelectedTab.Map(s => s == this);
|
||||
_timelessContentProvider = timelessContentProvider;
|
||||
_refreshSmoothnessCalculator = refreshSmoothnessCalculator;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user