48 lines
2.8 KiB
C#
48 lines
2.8 KiB
C#
/*
|
|
Copyright (C) 2014-2019 de4dot@gmail.com
|
|
|
|
This file is part of dnSpy
|
|
|
|
dnSpy is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
dnSpy is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with dnSpy. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
using VSTE = Microsoft.VisualStudio.Text.Editor;
|
|
|
|
namespace dnSpy.Contracts.Hex.Editor {
|
|
/// <summary>
|
|
/// Default <see cref="WpfHexView"/> options
|
|
/// </summary>
|
|
public static class DefaultWpfHexViewOptions {
|
|
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
|
|
public const string ForceClearTypeIfNeededName = "WpfHexView/ForceClearTypeIfNeeded";
|
|
public static readonly VSTE.EditorOptionKey<bool> ForceClearTypeIfNeededId = new VSTE.EditorOptionKey<bool>(ForceClearTypeIfNeededName);
|
|
// Must match the text editor option name since we create a temp ITextView for the HexView
|
|
// so we can re-use the text editor's IClassificationFormatMapService and IEditorFormatMapService
|
|
// interfaces. See HexTextView.
|
|
public const string AppearanceCategoryName = "Appearance/Category";
|
|
public static readonly VSTE.EditorOptionKey<string> AppearanceCategoryId = new VSTE.EditorOptionKey<string>(AppearanceCategoryName);
|
|
public const string EnableHighlightCurrentLineName = "WpfHexView/EnableHighlightCurrentLine";
|
|
public static readonly VSTE.EditorOptionKey<bool> EnableHighlightCurrentLineId = new VSTE.EditorOptionKey<bool>(EnableHighlightCurrentLineName);
|
|
public const string EnableMouseWheelZoomName = "WpfHexView/MouseWheelZoom";
|
|
public static readonly VSTE.EditorOptionKey<bool> EnableMouseWheelZoomId = new VSTE.EditorOptionKey<bool>(EnableMouseWheelZoomName);
|
|
public const string EnableSimpleGraphicsName = "WpfHexView/Graphics/Simple/Enable";
|
|
public static readonly VSTE.EditorOptionKey<bool> EnableSimpleGraphicsId = new VSTE.EditorOptionKey<bool>(EnableSimpleGraphicsName);
|
|
public const string UseReducedOpacityForHighContrastOptionName = "WpfHexView/UseReducedOpacityForHighContrast";
|
|
public static readonly VSTE.EditorOptionKey<bool> UseReducedOpacityForHighContrastOptionId = new VSTE.EditorOptionKey<bool>(UseReducedOpacityForHighContrastOptionName);
|
|
public const string ZoomLevelName = "WpfHexView/ZoomLevel";
|
|
public static readonly VSTE.EditorOptionKey<double> ZoomLevelId = new VSTE.EditorOptionKey<double>(ZoomLevelName);
|
|
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member
|
|
}
|
|
}
|