Console upgrades, PossibleCommands VM
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
using FileTime.App.Core.Configuration;
|
||||
|
||||
namespace FileTime.App.Core.Services;
|
||||
|
||||
public interface ICommandKeysHelperService
|
||||
{
|
||||
List<List<KeyConfig>> GetKeysForCommand(string commandName);
|
||||
string GetKeyConfigsString(string commandIdentifier);
|
||||
string FormatKeyConfig(KeyConfig keyConfig);
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System.Collections.ObjectModel;
|
||||
using FileTime.App.Core.Configuration;
|
||||
|
||||
namespace FileTime.App.Core.Services;
|
||||
|
||||
public interface IPossibleCommandsService
|
||||
{
|
||||
ReadOnlyObservableCollection<CommandBindingConfiguration> PossibleCommands { get; set; }
|
||||
void Clear();
|
||||
void Add(CommandBindingConfiguration commandBindingConfiguration);
|
||||
void Remove(CommandBindingConfiguration commandBindingConfiguration);
|
||||
void AddRange(IEnumerable<CommandBindingConfiguration> commandBindingConfigurations);
|
||||
}
|
||||
@@ -16,7 +16,6 @@ public interface IAppState
|
||||
IDeclarativeProperty<string?> RapidTravelTextDebounced { get; }
|
||||
IDeclarativeProperty<string?> ContainerStatus { get; }
|
||||
List<KeyConfig> PreviousKeys { get; }
|
||||
List<CommandBindingConfiguration> PossibleCommands { get; set; }
|
||||
bool NoCommandFound { get; set; }
|
||||
|
||||
void AddTab(ITabViewModel tabViewModel);
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace FileTime.App.Core.ViewModels;
|
||||
|
||||
public interface IPossibleCommandEntryViewModel
|
||||
{
|
||||
public string CommandName { get; }
|
||||
public string Title { get; }
|
||||
public string KeysText { get; }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
namespace FileTime.App.Core.ViewModels;
|
||||
|
||||
public interface IPossibleCommandsViewModel
|
||||
{
|
||||
ObservableCollection<IPossibleCommandEntryViewModel> PossibleCommands { get; }
|
||||
}
|
||||
Reference in New Issue
Block a user