protected ScrollBarsAppSettingsPageBase(ICommonEditorOptions options) {
			if (options == null)
				throw new ArgumentNullException(nameof(options));
			this.options = options;
			HorizontalScrollBar = options.HorizontalScrollBar;
			VerticalScrollBar = options.VerticalScrollBar;
		}
		protected TabsAppSettingsPageBase(ICommonEditorOptions options) {
			if (options == null)
				throw new ArgumentNullException(nameof(options));
			this.options = options;
			TabSizeVM = new Int32VM(options.TabSize, a => { }, true) { Min = OptionsHelpers.MinimumTabSize, Max = OptionsHelpers.MaximumTabSize };
			IndentSizeVM = new Int32VM(options.IndentSize, a => { }, true) { Min = OptionsHelpers.MinimumIndentSize, Max = OptionsHelpers.MaximumIndentSize };
			ConvertTabsToSpaces = options.ConvertTabsToSpaces;
		}
 protected GeneralAppSettingsPageBase(ICommonEditorOptions options)
 {
     this.options         = options ?? throw new ArgumentNullException(nameof(options));
     UseVirtualSpace      = options.UseVirtualSpace;
     ShowLineNumbers      = options.LineNumberMargin;
     WordWrap             = (options.WordWrapStyle & WordWrapStyles.WordWrap) != 0;
     WordWrapVisualGlyphs = (options.WordWrapStyle & WordWrapStyles.VisibleGlyphs) != 0;
     HighlightCurrentLine = options.EnableHighlightCurrentLine;
 }
示例#4
0
 protected ScrollBarsAppSettingsPageBase(ICommonEditorOptions options)
 {
     if (options == null)
     {
         throw new ArgumentNullException(nameof(options));
     }
     this.options        = options;
     HorizontalScrollBar = options.HorizontalScrollBar;
     VerticalScrollBar   = options.VerticalScrollBar;
 }
示例#5
0
 protected TabsAppSettingsPageBase(ICommonEditorOptions options)
 {
     this.options = options ?? throw new ArgumentNullException(nameof(options));
     TabSizeVM    = new Int32VM(options.TabSize, a => { }, true)
     {
         Min = OptionsHelpers.MinimumTabSize, Max = OptionsHelpers.MaximumTabSize
     };
     IndentSizeVM = new Int32VM(options.IndentSize, a => { }, true)
     {
         Min = OptionsHelpers.MinimumIndentSize, Max = OptionsHelpers.MaximumIndentSize
     };
     ConvertTabsToSpaces = options.ConvertTabsToSpaces;
 }
 protected AdvancedAppSettingsPageBase(ICommonEditorOptions options)
 {
     this.options                   = options ?? throw new ArgumentNullException(nameof(options));
     BlockStructureLineKindVM       = new EnumListVM(blockStructureLineKindList);
     ReferenceHighlighting          = options.ReferenceHighlighting;
     HighlightRelatedKeywords       = options.HighlightRelatedKeywords;
     HighlightMatchingBrace         = options.BraceMatching;
     LineSeparators                 = options.LineSeparators;
     ShowBlockStructure             = options.ShowBlockStructure;
     BlockStructureLineKind         = options.BlockStructureLineKind;
     CompressEmptyOrWhitespaceLines = options.CompressEmptyOrWhitespaceLines;
     CompressNonLetterLines         = options.CompressNonLetterLines;
     MinimumLineSpacing             = options.RemoveExtraTextLineVerticalPixels;
     SelectionMargin                = options.SelectionMargin;
     GlyphMargin            = options.GlyphMargin;
     MouseWheelZoom         = options.EnableMouseWheelZoom;
     ZoomControl            = options.ZoomControl;
     ForceClearTypeIfNeeded = options.ForceClearTypeIfNeeded;
 }
		protected AdvancedAppSettingsPageBase(ICommonEditorOptions options) {
			if (options == null)
				throw new ArgumentNullException(nameof(options));
			this.options = options;
			BlockStructureLineKindVM = new EnumListVM(blockStructureLineKindList);
			ReferenceHighlighting = options.ReferenceHighlighting;
			HighlightRelatedKeywords = options.HighlightRelatedKeywords;
			HighlightMatchingBrace = options.BraceMatching;
			LineSeparators = options.LineSeparators;
			ShowBlockStructure = options.ShowBlockStructure;
			BlockStructureLineKind = options.BlockStructureLineKind;
			CompressEmptyOrWhitespaceLines = options.CompressEmptyOrWhitespaceLines;
			CompressNonLetterLines = options.CompressNonLetterLines;
			MinimumLineSpacing = options.RemoveExtraTextLineVerticalPixels;
			SelectionMargin = options.SelectionMargin;
			GlyphMargin = options.GlyphMargin;
			MouseWheelZoom = options.EnableMouseWheelZoom;
			ZoomControl = options.ZoomControl;
			ForceClearTypeIfNeeded = options.ForceClearTypeIfNeeded;
		}