89d82ff546
First step towards #8415: * Introduce `PaletteItem` and derive from it to provide native support for tabs and command lines (`ActionPaletteItem` / `TabPaletteItem`, `CommandLinePaltteItem`) * Remove business logic behind PaletteItem from palette (aka dispatch commands and preview tabs externally)
27 lines
783 B
C++
27 lines
783 B
C++
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT license.
|
|
|
|
#include "pch.h"
|
|
#include "CommandLinePaletteItem.h"
|
|
#include <LibraryResources.h>
|
|
|
|
#include "CommandLinePaletteItem.g.cpp"
|
|
|
|
using namespace winrt;
|
|
using namespace winrt::TerminalApp;
|
|
using namespace winrt::Windows::UI::Core;
|
|
using namespace winrt::Windows::UI::Xaml;
|
|
using namespace winrt::Windows::System;
|
|
using namespace winrt::Windows::Foundation;
|
|
using namespace winrt::Windows::Foundation::Collections;
|
|
using namespace winrt::Microsoft::Terminal::Settings::Model;
|
|
|
|
namespace winrt::TerminalApp::implementation
|
|
{
|
|
CommandLinePaletteItem::CommandLinePaletteItem(winrt::hstring const& commandLine) :
|
|
_CommandLine(commandLine)
|
|
{
|
|
Name(commandLine);
|
|
}
|
|
}
|