45 lines
1.9 KiB
Plaintext
45 lines
1.9 KiB
Plaintext
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT license.
|
|
|
|
import "TabBase.idl";
|
|
import "IDirectKeyListener.idl";
|
|
import "HighlightedTextControl.idl";
|
|
import "FilteredCommand.idl";
|
|
|
|
namespace TerminalApp
|
|
{
|
|
[default_interface] runtimeclass CommandPalette : Windows.UI.Xaml.Controls.UserControl, Windows.UI.Xaml.Data.INotifyPropertyChanged, IDirectKeyListener
|
|
{
|
|
CommandPalette();
|
|
|
|
String NoMatchesText { get; };
|
|
String SearchBoxPlaceholderText { get; };
|
|
String PrefixCharacter { get; };
|
|
String ControlName { get; };
|
|
String ParentCommandName { get; };
|
|
String ParsedCommandLineText { get; };
|
|
|
|
Boolean Loading { get; };
|
|
Boolean Loaded { get; };
|
|
|
|
Windows.Foundation.Collections.IObservableVector<FilteredCommand> FilteredActions { get; };
|
|
|
|
void SetCommands(Windows.Foundation.Collections.IVector<Microsoft.Terminal.Settings.Model.Command> actions);
|
|
|
|
void SetTabs(Windows.Foundation.Collections.IObservableVector<TabBase> tabs, Windows.Foundation.Collections.IObservableVector<TabBase> mruTabs);
|
|
|
|
void SetActionMap(Microsoft.Terminal.Settings.Model.IActionMapView actionMap);
|
|
|
|
void SelectNextItem(Boolean moveDown);
|
|
|
|
void EnableCommandPaletteMode(Microsoft.Terminal.Settings.Model.CommandPaletteLaunchMode launchMode);
|
|
void EnableTabSwitcherMode(UInt32 startIdx, Microsoft.Terminal.Settings.Model.TabSwitcherMode tabSwitcherMode);
|
|
void EnableTabSearchMode();
|
|
|
|
event Windows.Foundation.TypedEventHandler<CommandPalette, TabBase> SwitchToTabRequested;
|
|
event Windows.Foundation.TypedEventHandler<CommandPalette, Microsoft.Terminal.Settings.Model.Command> DispatchCommandRequested;
|
|
event Windows.Foundation.TypedEventHandler<CommandPalette, String> CommandLineExecutionRequested;
|
|
event Windows.Foundation.TypedEventHandler<Object, Microsoft.Terminal.Settings.Model.Command> PreviewAction;
|
|
}
|
|
}
|