57 lines
1.7 KiB
Plaintext
57 lines
1.7 KiB
Plaintext
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT license.
|
|
|
|
#include "AllShortcutActions.h"
|
|
|
|
import "ActionArgs.idl";
|
|
import "Profile.idl";
|
|
import "ColorScheme.idl";
|
|
import "TerminalWarnings.idl";
|
|
|
|
namespace Microsoft.Terminal.Settings.Model
|
|
{
|
|
enum ShortcutAction
|
|
{
|
|
Invalid = 0,
|
|
Unbound = 1,
|
|
|
|
// When adding a new action, add them to AllShortcutActions.h!
|
|
#define ON_ALL_ACTIONS(action) action,
|
|
ALL_SHORTCUT_ACTIONS
|
|
#undef ON_ALL_ACTIONS
|
|
};
|
|
|
|
[default_interface] runtimeclass ActionAndArgs {
|
|
ActionAndArgs();
|
|
ActionAndArgs(ShortcutAction action, IActionArgs args);
|
|
|
|
IActionArgs Args;
|
|
ShortcutAction Action;
|
|
|
|
Boolean IsUnbound();
|
|
};
|
|
|
|
[default_interface] runtimeclass Command : Windows.UI.Xaml.Data.INotifyPropertyChanged
|
|
{
|
|
Command();
|
|
|
|
String Name { get; };
|
|
ActionAndArgs ActionAndArgs { get; };
|
|
Microsoft.Terminal.Control.KeyChord Keys { get; };
|
|
void RegisterKey(Microsoft.Terminal.Control.KeyChord keys);
|
|
String KeyChordText { get; };
|
|
|
|
String IconPath;
|
|
|
|
String ExternalID;
|
|
|
|
Boolean HasNestedCommands { get; };
|
|
Windows.Foundation.Collections.IMapView<String, Command> NestedCommands { get; };
|
|
|
|
static void ExpandCommands(Windows.Foundation.Collections.IMap<String, Command> commands,
|
|
Windows.Foundation.Collections.IVectorView<Profile> profiles,
|
|
Windows.Foundation.Collections.IVectorView<ColorScheme> schemes,
|
|
Windows.Foundation.Collections.IVector<SettingsLoadWarnings> warnings);
|
|
}
|
|
}
|