Пример #1
0
 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;
 }
Пример #2
0
 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;
 }
Пример #3
0
        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;
        }
Пример #4
0
 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;
 }
Пример #5
0
 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;
		}
Пример #7
0
 public GeneralAppSettingsPage(ICodeEditorOptions options, Guid guid)
     : base(options)
 {
     this.options = options;
     this.guid    = guid;
 }
Пример #8
0
 public ScrollBarsAppSettingsPage(ICodeEditorOptions options, Guid guid)
     : base(options)
 {
     this.options = options;
     this.guid    = guid;
 }
Пример #9
0
		public GeneralAppSettingsPage(ICodeEditorOptions options, Guid guid)
			: base(options) {
			this.options = options;
			this.guid = guid;
		}
Пример #10
0
		public ScrollBarsAppSettingsPage(ICodeEditorOptions options, Guid guid)
			: base(options) {
			this.options = options;
			this.guid = guid;
		}