03ea0f49ad
## Summary of the Pull Request This is a follow up to #9300. Now that we have names on our windows, it would be nice to see who is named what. So this adds two actions: * `identifyWindow`: This action will pop up a little toast (#8592) displaying the name and ID of the window, and is bound by default. ![identify-window-toast-000](https://user-images.githubusercontent.com/18356694/111529085-bf710580-872f-11eb-8880-b0b617596cfc.gif) * `identifyWindows`: This action will request that ALL windows pop up that toast. This is meant to feel like the "Identify" button on the Windows display settings. However, sometimes, it's wonky. ![teaching-tip-dismiss-001](https://user-images.githubusercontent.com/18356694/111529292-fe06c000-872f-11eb-8d4a-5688e4ce1175.gif) That's being tracked upstream on https://github.com/microsoft/microsoft-ui-xaml/issues/4382 Because it's so wonky, we won't bind that by default. Maybe if we get that fixed, then we'll change the default binding from `identifyWindow` to `identifyWindows` ## References ## PR Checklist * [x] Closes https://github.com/microsoft/terminal/projects/5#card-51431492 * [x] I work here * [x] Tests added/passed * [ ] Requires documentation to be updated ## Detailed Description of the Pull Request / Additional comments You may note that there are some macros to make interacting with lots and lots of actions easier. There's a lot of boilerplate whenever you need to make a new action, so I thought: "Can we make that easier?" Turns out you can make it a _LOT_ easier, but that work is still behind another PR after this one. Get excited
375 lines
19 KiB
C++
375 lines
19 KiB
C++
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT license.
|
|
|
|
#pragma once
|
|
|
|
#include "TerminalPage.g.h"
|
|
#include "TerminalTab.h"
|
|
#include "AppKeyBindings.h"
|
|
#include "AppCommandlineArgs.h"
|
|
#include "Toast.h"
|
|
|
|
#define DECLARE_ACTION_HANDLER(action) void _Handle##action(const IInspectable& sender, const Microsoft::Terminal::Settings::Model::ActionEventArgs& args);
|
|
|
|
static constexpr uint32_t DefaultRowsToScroll{ 3 };
|
|
static constexpr std::wstring_view TabletInputServiceKey{ L"TabletInputService" };
|
|
// fwdecl unittest classes
|
|
namespace TerminalAppLocalTests
|
|
{
|
|
class TabTests;
|
|
class SettingsTests;
|
|
};
|
|
|
|
namespace winrt::TerminalApp::implementation
|
|
{
|
|
enum StartupState : int
|
|
{
|
|
NotInitialized = 0,
|
|
InStartup = 1,
|
|
Initialized = 2
|
|
};
|
|
|
|
enum ScrollDirection : int
|
|
{
|
|
ScrollUp = 0,
|
|
ScrollDown = 1
|
|
};
|
|
|
|
struct TerminalPage : TerminalPageT<TerminalPage>
|
|
{
|
|
public:
|
|
TerminalPage();
|
|
|
|
// This implements shobjidl's IInitializeWithWindow, but due to a XAML Compiler bug we cannot
|
|
// put it in our inheritance graph. https://github.com/microsoft/microsoft-ui-xaml/issues/3331
|
|
STDMETHODIMP Initialize(HWND hwnd);
|
|
|
|
winrt::fire_and_forget SetSettings(Microsoft::Terminal::Settings::Model::CascadiaSettings settings, bool needRefreshUI);
|
|
|
|
void Create();
|
|
|
|
hstring Title();
|
|
|
|
void TitlebarClicked();
|
|
|
|
float CalcSnappedDimension(const bool widthOrHeight, const float dimension) const;
|
|
|
|
winrt::hstring ApplicationDisplayName();
|
|
winrt::hstring ApplicationVersion();
|
|
|
|
winrt::hstring ThirdPartyNoticesLink();
|
|
|
|
winrt::fire_and_forget CloseWindow();
|
|
|
|
void ToggleFocusMode();
|
|
void ToggleFullscreen();
|
|
void ToggleAlwaysOnTop();
|
|
bool FocusMode() const;
|
|
bool Fullscreen() const;
|
|
bool AlwaysOnTop() const;
|
|
|
|
void SetStartupActions(std::vector<Microsoft::Terminal::Settings::Model::ActionAndArgs>& actions);
|
|
void SetInboundListener();
|
|
static std::vector<Microsoft::Terminal::Settings::Model::ActionAndArgs> ConvertExecuteCommandlineToActions(const Microsoft::Terminal::Settings::Model::ExecuteCommandlineArgs& args);
|
|
|
|
winrt::TerminalApp::IDialogPresenter DialogPresenter() const;
|
|
void DialogPresenter(winrt::TerminalApp::IDialogPresenter dialogPresenter);
|
|
|
|
size_t GetLastActiveControlTaskbarState();
|
|
size_t GetLastActiveControlTaskbarProgress();
|
|
|
|
void ShowKeyboardServiceWarning();
|
|
winrt::hstring KeyboardServiceDisabledText();
|
|
|
|
winrt::fire_and_forget IdentifyWindow();
|
|
|
|
winrt::fire_and_forget ProcessStartupActions(Windows::Foundation::Collections::IVector<Microsoft::Terminal::Settings::Model::ActionAndArgs> actions,
|
|
const bool initial,
|
|
const winrt::hstring cwd = L"");
|
|
|
|
// Normally, WindowName and WindowId would be
|
|
// WINRT_OBSERVABLE_PROPERTY's, but we want them to raise
|
|
// WindowNameForDisplay and WindowIdForDisplay instead
|
|
winrt::hstring WindowName() const noexcept;
|
|
void WindowName(const winrt::hstring& value);
|
|
uint64_t WindowId() const noexcept;
|
|
void WindowId(const uint64_t& value);
|
|
winrt::hstring WindowIdForDisplay() const noexcept;
|
|
winrt::hstring WindowNameForDisplay() const noexcept;
|
|
|
|
WINRT_CALLBACK(PropertyChanged, Windows::UI::Xaml::Data::PropertyChangedEventHandler);
|
|
|
|
// -------------------------------- WinRT Events ---------------------------------
|
|
TYPED_EVENT(TitleChanged, IInspectable, winrt::hstring);
|
|
TYPED_EVENT(LastTabClosed, IInspectable, winrt::TerminalApp::LastTabClosedEventArgs);
|
|
TYPED_EVENT(SetTitleBarContent, IInspectable, winrt::Windows::UI::Xaml::UIElement);
|
|
TYPED_EVENT(FocusModeChanged, IInspectable, IInspectable);
|
|
TYPED_EVENT(FullscreenChanged, IInspectable, IInspectable);
|
|
TYPED_EVENT(AlwaysOnTopChanged, IInspectable, IInspectable);
|
|
TYPED_EVENT(RaiseVisualBell, IInspectable, IInspectable);
|
|
TYPED_EVENT(SetTaskbarProgress, IInspectable, IInspectable);
|
|
TYPED_EVENT(Initialized, IInspectable, winrt::Windows::UI::Xaml::RoutedEventArgs);
|
|
TYPED_EVENT(IdentifyWindowsRequested, IInspectable, IInspectable);
|
|
|
|
private:
|
|
friend struct TerminalPageT<TerminalPage>; // for Xaml to bind events
|
|
std::optional<HWND> _hostingHwnd;
|
|
|
|
// If you add controls here, but forget to null them either here or in
|
|
// the ctor, you're going to have a bad time. It'll mysteriously fail to
|
|
// activate the app.
|
|
// ALSO: If you add any UIElements as roots here, make sure they're
|
|
// updated in App::_ApplyTheme. The roots currently is _tabRow
|
|
// (which is a root when the tabs are in the titlebar.)
|
|
Microsoft::UI::Xaml::Controls::TabView _tabView{ nullptr };
|
|
TerminalApp::TabRowControl _tabRow{ nullptr };
|
|
Windows::UI::Xaml::Controls::Grid _tabContent{ nullptr };
|
|
Microsoft::UI::Xaml::Controls::SplitButton _newTabButton{ nullptr };
|
|
|
|
Microsoft::Terminal::Settings::Model::CascadiaSettings _settings{ nullptr };
|
|
|
|
Windows::Foundation::Collections::IObservableVector<TerminalApp::TabBase> _tabs;
|
|
Windows::Foundation::Collections::IObservableVector<TerminalApp::TabBase> _mruTabs;
|
|
static winrt::com_ptr<TerminalTab> _GetTerminalTabImpl(const TerminalApp::TabBase& tab);
|
|
|
|
void _UpdateTabIndices();
|
|
|
|
TerminalApp::SettingsTab _settingsTab{ nullptr };
|
|
|
|
bool _isInFocusMode{ false };
|
|
bool _isFullscreen{ false };
|
|
bool _isAlwaysOnTop{ false };
|
|
winrt::hstring _WindowName{};
|
|
uint64_t _WindowId{ 0 };
|
|
|
|
bool _rearranging;
|
|
std::optional<int> _rearrangeFrom;
|
|
std::optional<int> _rearrangeTo;
|
|
bool _removing{ false };
|
|
|
|
uint32_t _systemRowsToScroll{ DefaultRowsToScroll };
|
|
|
|
// use a weak reference to prevent circular dependency with AppLogic
|
|
winrt::weak_ref<winrt::TerminalApp::IDialogPresenter> _dialogPresenter;
|
|
|
|
winrt::com_ptr<AppKeyBindings> _bindings{ winrt::make_self<implementation::AppKeyBindings>() };
|
|
winrt::com_ptr<ShortcutActionDispatch> _actionDispatch{ winrt::make_self<implementation::ShortcutActionDispatch>() };
|
|
|
|
winrt::Windows::UI::Xaml::Controls::Grid::LayoutUpdated_revoker _layoutUpdatedRevoker;
|
|
StartupState _startupState{ StartupState::NotInitialized };
|
|
|
|
Windows::Foundation::Collections::IVector<Microsoft::Terminal::Settings::Model::ActionAndArgs> _startupActions;
|
|
bool _shouldStartInboundListener{ false };
|
|
|
|
std::shared_ptr<Toast> _windowIdToast{ nullptr };
|
|
|
|
void _ShowAboutDialog();
|
|
winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::UI::Xaml::Controls::ContentDialogResult> _ShowCloseWarningDialog();
|
|
winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::UI::Xaml::Controls::ContentDialogResult> _ShowCloseReadOnlyDialog();
|
|
winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::UI::Xaml::Controls::ContentDialogResult> _ShowMultiLinePasteWarningDialog();
|
|
winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::UI::Xaml::Controls::ContentDialogResult> _ShowLargePasteWarningDialog();
|
|
|
|
void _CreateNewTabFlyout();
|
|
void _OpenNewTabDropdown();
|
|
void _OpenNewTab(const Microsoft::Terminal::Settings::Model::NewTerminalArgs& newTerminalArgs, winrt::Microsoft::Terminal::TerminalConnection::ITerminalConnection existingConnection = nullptr);
|
|
void _CreateNewTabFromSettings(GUID profileGuid, Microsoft::Terminal::Settings::Model::TerminalSettings settings, winrt::Microsoft::Terminal::TerminalConnection::ITerminalConnection existingConnection = nullptr);
|
|
winrt::Microsoft::Terminal::TerminalConnection::ITerminalConnection _CreateConnectionFromSettings(GUID profileGuid, Microsoft::Terminal::Settings::Model::TerminalSettings settings);
|
|
|
|
winrt::fire_and_forget _OpenNewWindow(const bool elevate, const Microsoft::Terminal::Settings::Model::NewTerminalArgs newTerminalArgs);
|
|
|
|
bool _displayingCloseDialog{ false };
|
|
void _SettingsButtonOnClick(const IInspectable& sender, const Windows::UI::Xaml::RoutedEventArgs& eventArgs);
|
|
void _FeedbackButtonOnClick(const IInspectable& sender, const Windows::UI::Xaml::RoutedEventArgs& eventArgs);
|
|
void _AboutButtonOnClick(const IInspectable& sender, const Windows::UI::Xaml::RoutedEventArgs& eventArgs);
|
|
void _ThirdPartyNoticesOnClick(const IInspectable& sender, const Windows::UI::Xaml::RoutedEventArgs& eventArgs);
|
|
|
|
void _KeyDownHandler(Windows::Foundation::IInspectable const& sender, Windows::UI::Xaml::Input::KeyRoutedEventArgs const& e);
|
|
void _SUIPreviewKeyDownHandler(Windows::Foundation::IInspectable const& sender, Windows::UI::Xaml::Input::KeyRoutedEventArgs const& e);
|
|
void _HookupKeyBindings(const Microsoft::Terminal::Settings::Model::KeyMapping& keymap) noexcept;
|
|
void _RegisterActionCallbacks();
|
|
|
|
void _UpdateTitle(const TerminalTab& tab);
|
|
void _UpdateTabIcon(TerminalTab& tab);
|
|
void _UpdateTabView();
|
|
void _UpdateTabWidthMode();
|
|
void _UpdateCommandsForPalette();
|
|
|
|
static winrt::Windows::Foundation::Collections::IMap<winrt::hstring, Microsoft::Terminal::Settings::Model::Command> _ExpandCommands(Windows::Foundation::Collections::IMapView<winrt::hstring, Microsoft::Terminal::Settings::Model::Command> commandsToExpand,
|
|
Windows::Foundation::Collections::IVectorView<Microsoft::Terminal::Settings::Model::Profile> profiles,
|
|
Windows::Foundation::Collections::IMapView<winrt::hstring, Microsoft::Terminal::Settings::Model::ColorScheme> schemes);
|
|
|
|
void _DuplicateFocusedTab();
|
|
void _DuplicateTab(const TerminalTab& tab);
|
|
|
|
winrt::Windows::Foundation::IAsyncAction _HandleCloseTabRequested(winrt::TerminalApp::TabBase tab);
|
|
void _RemoveTab(const winrt::TerminalApp::TabBase& tab);
|
|
winrt::fire_and_forget _RemoveTabs(const std::vector<winrt::TerminalApp::TabBase> tabs);
|
|
|
|
void _RegisterTerminalEvents(Microsoft::Terminal::Control::TermControl term, TerminalTab& hostingTab);
|
|
|
|
void _DismissTabContextMenus();
|
|
void _FocusCurrentTab(const bool focusAlways);
|
|
bool _HasMultipleTabs() const;
|
|
void _RemoveAllTabs();
|
|
void _ResizeTabContent(const winrt::Windows::Foundation::Size& newSize);
|
|
|
|
void _SelectNextTab(const bool bMoveRight, const Windows::Foundation::IReference<Microsoft::Terminal::Settings::Model::TabSwitcherMode>& customTabSwitcherMode);
|
|
bool _SelectTab(const uint32_t tabIndex);
|
|
void _MoveFocus(const Microsoft::Terminal::Settings::Model::FocusDirection& direction);
|
|
|
|
winrt::Microsoft::Terminal::Control::TermControl _GetActiveControl();
|
|
std::optional<uint32_t> _GetFocusedTabIndex() const noexcept;
|
|
TerminalApp::TabBase _GetFocusedTab() const noexcept;
|
|
winrt::com_ptr<TerminalTab> _GetFocusedTabImpl() const noexcept;
|
|
TerminalApp::TabBase _GetTabByTabViewItem(const Microsoft::UI::Xaml::Controls::TabViewItem& tabViewItem) const noexcept;
|
|
|
|
winrt::fire_and_forget _SetFocusedTabIndex(const uint32_t tabIndex);
|
|
void _CloseFocusedTab();
|
|
winrt::fire_and_forget _CloseFocusedPane();
|
|
|
|
winrt::fire_and_forget _RemoveOnCloseRoutine(Microsoft::UI::Xaml::Controls::TabViewItem tabViewItem, winrt::com_ptr<TerminalPage> page);
|
|
|
|
void _Scroll(ScrollDirection scrollDirection, const Windows::Foundation::IReference<uint32_t>& rowsToScroll);
|
|
|
|
void _SplitPane(const Microsoft::Terminal::Settings::Model::SplitState splitType,
|
|
const Microsoft::Terminal::Settings::Model::SplitType splitMode = Microsoft::Terminal::Settings::Model::SplitType::Manual,
|
|
const float splitSize = 0.5f,
|
|
const Microsoft::Terminal::Settings::Model::NewTerminalArgs& newTerminalArgs = nullptr);
|
|
void _ResizePane(const Microsoft::Terminal::Settings::Model::ResizeDirection& direction);
|
|
|
|
void _ScrollPage(ScrollDirection scrollDirection);
|
|
void _ScrollToBufferEdge(ScrollDirection scrollDirection);
|
|
void _SetAcceleratorForMenuItem(Windows::UI::Xaml::Controls::MenuFlyoutItem& menuItem, const winrt::Microsoft::Terminal::Control::KeyChord& keyChord);
|
|
|
|
winrt::fire_and_forget _CopyToClipboardHandler(const IInspectable sender, const winrt::Microsoft::Terminal::Control::CopyToClipboardEventArgs copiedData);
|
|
winrt::fire_and_forget _PasteFromClipboardHandler(const IInspectable sender,
|
|
const Microsoft::Terminal::Control::PasteFromClipboardEventArgs eventArgs);
|
|
|
|
void _OpenHyperlinkHandler(const IInspectable sender, const Microsoft::Terminal::Control::OpenHyperlinkEventArgs eventArgs);
|
|
bool _IsUriSupported(const winrt::Windows::Foundation::Uri& parsedUri);
|
|
|
|
void _ShowCouldNotOpenDialog(winrt::hstring reason, winrt::hstring uri);
|
|
bool _CopyText(const bool singleLine, const Windows::Foundation::IReference<Microsoft::Terminal::Control::CopyFormat>& formats);
|
|
|
|
void _SetTaskbarProgressHandler(const IInspectable sender, const IInspectable eventArgs);
|
|
|
|
void _PasteText();
|
|
|
|
void _ControlNoticeRaisedHandler(const IInspectable sender, const Microsoft::Terminal::Control::NoticeEventArgs eventArgs);
|
|
void _ShowControlNoticeDialog(const winrt::hstring& title, const winrt::hstring& message);
|
|
|
|
fire_and_forget _LaunchSettings(const Microsoft::Terminal::Settings::Model::SettingsTarget target);
|
|
|
|
void _TabDragStarted(const IInspectable& sender, const IInspectable& eventArgs);
|
|
void _TabDragCompleted(const IInspectable& sender, const IInspectable& eventArgs);
|
|
|
|
void _OnTabClick(const IInspectable& sender, const Windows::UI::Xaml::Input::PointerRoutedEventArgs& eventArgs);
|
|
void _OnTabSelectionChanged(const IInspectable& sender, const Windows::UI::Xaml::Controls::SelectionChangedEventArgs& eventArgs);
|
|
void _OnTabItemsChanged(const IInspectable& sender, const Windows::Foundation::Collections::IVectorChangedEventArgs& eventArgs);
|
|
void _OnContentSizeChanged(const IInspectable& /*sender*/, Windows::UI::Xaml::SizeChangedEventArgs const& e);
|
|
void _OnTabCloseRequested(const IInspectable& sender, const Microsoft::UI::Xaml::Controls::TabViewTabCloseRequestedEventArgs& eventArgs);
|
|
void _OnFirstLayout(const IInspectable& sender, const IInspectable& eventArgs);
|
|
void _UpdatedSelectedTab(const int32_t index);
|
|
|
|
void _OnDispatchCommandRequested(const IInspectable& sender, const Microsoft::Terminal::Settings::Model::Command& command);
|
|
void _OnCommandLineExecutionRequested(const IInspectable& sender, const winrt::hstring& commandLine);
|
|
void _OnSwitchToTabRequested(const IInspectable& sender, const winrt::TerminalApp::TabBase& tab);
|
|
|
|
void _Find();
|
|
|
|
winrt::Microsoft::Terminal::Control::TermControl _InitControl(const winrt::Microsoft::Terminal::Settings::Model::TerminalSettings& settings,
|
|
const winrt::Microsoft::Terminal::TerminalConnection::ITerminalConnection& connection);
|
|
|
|
winrt::fire_and_forget _RefreshUIForSettingsReload();
|
|
|
|
void _SetNonClientAreaColors(const Windows::UI::Color& selectedTabColor);
|
|
void _ClearNonClientAreaColors();
|
|
void _SetNewTabButtonColor(const Windows::UI::Color& color, const Windows::UI::Color& accentColor);
|
|
void _ClearNewTabButtonColor();
|
|
|
|
void _CompleteInitialization();
|
|
|
|
void _FocusActiveControl(IInspectable sender, IInspectable eventArgs);
|
|
|
|
void _UnZoomIfNeeded();
|
|
|
|
void _OpenSettingsUI();
|
|
|
|
static int _ComputeScrollDelta(ScrollDirection scrollDirection, const uint32_t rowsToScroll);
|
|
static uint32_t _ReadSystemRowsToScroll();
|
|
|
|
void _UpdateMRUTab(const uint32_t index);
|
|
|
|
void _TryMoveTab(const uint32_t currentTabIndex, const int32_t suggestedNewTabIndex);
|
|
|
|
bool _shouldMouseVanish{ false };
|
|
bool _isMouseHidden{ false };
|
|
Windows::UI::Core::CoreCursor _defaultPointerCursor{ nullptr };
|
|
void _HidePointerCursorHandler(const IInspectable& sender, const IInspectable& eventArgs);
|
|
void _RestorePointerCursorHandler(const IInspectable& sender, const IInspectable& eventArgs);
|
|
|
|
void _OnNewConnection(winrt::Microsoft::Terminal::TerminalConnection::ITerminalConnection connection);
|
|
void _HandleToggleInboundPty(const IInspectable& sender, const Microsoft::Terminal::Settings::Model::ActionEventArgs& args);
|
|
|
|
#pragma region ActionHandlers
|
|
// These are all defined in AppActionHandlers.cpp
|
|
DECLARE_ACTION_HANDLER(OpenNewTabDropdown);
|
|
DECLARE_ACTION_HANDLER(DuplicateTab);
|
|
DECLARE_ACTION_HANDLER(CloseTab);
|
|
DECLARE_ACTION_HANDLER(ClosePane);
|
|
DECLARE_ACTION_HANDLER(ScrollUp);
|
|
DECLARE_ACTION_HANDLER(ScrollDown);
|
|
DECLARE_ACTION_HANDLER(NextTab);
|
|
DECLARE_ACTION_HANDLER(PrevTab);
|
|
DECLARE_ACTION_HANDLER(SendInput);
|
|
DECLARE_ACTION_HANDLER(SplitPane);
|
|
DECLARE_ACTION_HANDLER(TogglePaneZoom);
|
|
DECLARE_ACTION_HANDLER(ScrollUpPage);
|
|
DECLARE_ACTION_HANDLER(ScrollDownPage);
|
|
DECLARE_ACTION_HANDLER(ScrollToTop);
|
|
DECLARE_ACTION_HANDLER(ScrollToBottom);
|
|
DECLARE_ACTION_HANDLER(OpenSettings);
|
|
DECLARE_ACTION_HANDLER(PasteText);
|
|
DECLARE_ACTION_HANDLER(NewTab);
|
|
DECLARE_ACTION_HANDLER(SwitchToTab);
|
|
DECLARE_ACTION_HANDLER(ResizePane);
|
|
DECLARE_ACTION_HANDLER(MoveFocus);
|
|
DECLARE_ACTION_HANDLER(CopyText);
|
|
DECLARE_ACTION_HANDLER(CloseWindow);
|
|
DECLARE_ACTION_HANDLER(AdjustFontSize);
|
|
DECLARE_ACTION_HANDLER(Find);
|
|
DECLARE_ACTION_HANDLER(ResetFontSize);
|
|
DECLARE_ACTION_HANDLER(ToggleShaderEffects);
|
|
DECLARE_ACTION_HANDLER(ToggleFocusMode);
|
|
DECLARE_ACTION_HANDLER(ToggleFullscreen);
|
|
DECLARE_ACTION_HANDLER(ToggleAlwaysOnTop);
|
|
DECLARE_ACTION_HANDLER(SetColorScheme);
|
|
DECLARE_ACTION_HANDLER(SetTabColor);
|
|
DECLARE_ACTION_HANDLER(OpenTabColorPicker);
|
|
DECLARE_ACTION_HANDLER(RenameTab);
|
|
DECLARE_ACTION_HANDLER(OpenTabRenamer);
|
|
DECLARE_ACTION_HANDLER(ExecuteCommandline);
|
|
DECLARE_ACTION_HANDLER(ToggleCommandPalette);
|
|
DECLARE_ACTION_HANDLER(CloseOtherTabs);
|
|
DECLARE_ACTION_HANDLER(CloseTabsAfter);
|
|
DECLARE_ACTION_HANDLER(TabSearch);
|
|
DECLARE_ACTION_HANDLER(MoveTab);
|
|
DECLARE_ACTION_HANDLER(BreakIntoDebugger);
|
|
DECLARE_ACTION_HANDLER(FindMatch);
|
|
DECLARE_ACTION_HANDLER(TogglePaneReadOnly);
|
|
DECLARE_ACTION_HANDLER(NewWindow);
|
|
DECLARE_ACTION_HANDLER(IdentifyWindow);
|
|
DECLARE_ACTION_HANDLER(IdentifyWindows);
|
|
// Make sure to hook new actions up in _RegisterActionCallbacks!
|
|
#pragma endregion
|
|
|
|
friend class TerminalAppLocalTests::TabTests;
|
|
friend class TerminalAppLocalTests::SettingsTests;
|
|
};
|
|
}
|
|
|
|
namespace winrt::TerminalApp::factory_implementation
|
|
{
|
|
BASIC_FACTORY(TerminalPage);
|
|
}
|