public ScrollBarsAppSettingsPage(ICodeEditorOptions options, Guid guid) { if (options == null) { throw new ArgumentNullException(nameof(options)); } this.options = options; Guid = guid; HorizontalScrollBar = options.HorizontalScrollBar; VerticalScrollBar = options.VerticalScrollBar; }
public GeneralAppSettingsPage(ICodeEditorOptions options, Guid guid) { if (options == null) { throw new ArgumentNullException(nameof(options)); } this.options = options; this.guid = guid; UseVirtualSpace = options.UseVirtualSpace; ShowLineNumbers = options.LineNumberMargin; WordWrap = (options.WordWrapStyle & WordWrapStyles.WordWrap) != 0; WordWrapVisualGlyphs = (options.WordWrapStyle & WordWrapStyles.VisibleGlyphs) != 0; HighlightCurrentLine = options.EnableHighlightCurrentLine; }
public CodeEditorFormattingOptionsAdapter(ITextEditorOptions globalOptions, CSharpFormattingOptionsContainer container) { if (globalOptions == null) { throw new ArgumentNullException("globalOptions"); } if (container == null) { throw new ArgumentNullException("container"); } this.globalOptions = globalOptions; this.globalCodeEditorOptions = globalOptions as ICodeEditorOptions; this.container = container; CSharpFormattingPolicies.Instance.FormattingPolicyUpdated += OnFormattingPolicyUpdated; globalOptions.PropertyChanged += OnGlobalOptionsPropertyChanged; }
public TabsAppSettingsPage(ICodeEditorOptions options, Guid guid) { if (options == null) { throw new ArgumentNullException(nameof(options)); } this.options = options; Guid = guid; 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; }
public AdvancedAppSettingsPage(ICodeEditorOptions options, Guid guid) { if (options == null) { throw new ArgumentNullException(nameof(options)); } this.options = options; this.guid = guid; ReferenceHighlighting = options.ReferenceHighlighting; HighlightRelatedKeywords = options.HighlightRelatedKeywords; HighlightMatchingBrace = options.BraceMatching; LineSeparators = options.LineSeparators; ShowStructureLines = options.ShowStructureLines; CompressEmptyOrWhitespaceLines = options.CompressEmptyOrWhitespaceLines; CompressNonLetterLines = options.CompressNonLetterLines; MinimumLineSpacing = options.RemoveExtraTextLineVerticalPixels; SelectionMargin = options.SelectionMargin; GlyphMargin = options.GlyphMargin; MouseWheelZoom = options.EnableMouseWheelZoom; ZoomControl = options.ZoomControl; }
public CodeEditorFormattingOptionsAdapter(ITextEditorOptions globalOptions, CSharpFormattingOptionsContainer container) { if (globalOptions == null) throw new ArgumentNullException("globalOptions"); if (container == null) throw new ArgumentNullException("container"); this.globalOptions = globalOptions; this.globalCodeEditorOptions = globalOptions as ICodeEditorOptions; this.container = container; CSharpFormattingPolicies.Instance.FormattingPolicyUpdated += OnFormattingPolicyUpdated; globalOptions.PropertyChanged += OnGlobalOptionsPropertyChanged; }
public GeneralAppSettingsPage(ICodeEditorOptions options, Guid guid) : base(options) { this.options = options; this.guid = guid; }
public ScrollBarsAppSettingsPage(ICodeEditorOptions options, Guid guid) : base(options) { this.options = options; this.guid = guid; }