2020-11-03 18:56:04 +01:00
|
|
|
/*++
|
|
|
|
Copyright (c) Microsoft Corporation
|
|
|
|
Licensed under the MIT license.
|
|
|
|
|
|
|
|
Module Name:
|
|
|
|
- EnumMappings.h
|
|
|
|
|
|
|
|
Abstract:
|
|
|
|
- Contains mappings from enum name to enum value for the enum types used in our settings.
|
|
|
|
These are mainly used in the settings UI for data binding so that we can display
|
|
|
|
all possible choices in the UI for each setting/enum.
|
|
|
|
|
|
|
|
Author(s):
|
|
|
|
- Leon Liang - October 2020
|
|
|
|
|
|
|
|
--*/
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "EnumMappings.g.h"
|
|
|
|
|
|
|
|
namespace winrt::Microsoft::Terminal::Settings::Model::implementation
|
|
|
|
{
|
|
|
|
struct EnumMappings : EnumMappingsT<EnumMappings>
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
EnumMappings() = default;
|
|
|
|
|
|
|
|
// Global Settings
|
|
|
|
static winrt::Windows::Foundation::Collections::IMap<winrt::hstring, winrt::Windows::UI::Xaml::ElementTheme> ElementTheme();
|
|
|
|
static winrt::Windows::Foundation::Collections::IMap<winrt::hstring, winrt::Microsoft::UI::Xaml::Controls::TabViewWidthMode> TabViewWidthMode();
|
|
|
|
static winrt::Windows::Foundation::Collections::IMap<winrt::hstring, LaunchMode> LaunchMode();
|
2021-01-15 00:57:59 +01:00
|
|
|
static winrt::Windows::Foundation::Collections::IMap<winrt::hstring, TabSwitcherMode> TabSwitcherMode();
|
2021-03-17 21:47:24 +01:00
|
|
|
static winrt::Windows::Foundation::Collections::IMap<winrt::hstring, winrt::Microsoft::Terminal::Control::CopyFormat> CopyFormat();
|
2021-02-19 22:09:17 +01:00
|
|
|
static winrt::Windows::Foundation::Collections::IMap<winrt::hstring, WindowingMode> WindowingMode();
|
2020-11-03 18:56:04 +01:00
|
|
|
|
|
|
|
// Profile Settings
|
|
|
|
static winrt::Windows::Foundation::Collections::IMap<winrt::hstring, CloseOnExitMode> CloseOnExitMode();
|
2021-03-17 21:47:24 +01:00
|
|
|
static winrt::Windows::Foundation::Collections::IMap<winrt::hstring, Microsoft::Terminal::Control::ScrollbarState> ScrollbarState();
|
2020-11-03 18:56:04 +01:00
|
|
|
static winrt::Windows::Foundation::Collections::IMap<winrt::hstring, winrt::Windows::UI::Xaml::Media::Stretch> BackgroundImageStretchMode();
|
2021-03-17 21:47:24 +01:00
|
|
|
static winrt::Windows::Foundation::Collections::IMap<winrt::hstring, winrt::Microsoft::Terminal::Control::TextAntialiasingMode> TextAntialiasingMode();
|
|
|
|
static winrt::Windows::Foundation::Collections::IMap<winrt::hstring, winrt::Microsoft::Terminal::Core::CursorStyle> CursorStyle();
|
2020-11-03 18:56:04 +01:00
|
|
|
static winrt::Windows::Foundation::Collections::IMap<winrt::hstring, BellStyle> BellStyle();
|
|
|
|
static winrt::Windows::Foundation::Collections::IMap<winrt::hstring, uint16_t> FontWeight();
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace winrt::Microsoft::Terminal::Settings::Model::factory_implementation
|
|
|
|
{
|
|
|
|
BASIC_FACTORY(EnumMappings);
|
|
|
|
}
|