Пример #1
0
 /// <summary>
 /// As an extension, information of the core and the control needs to be present in all extensions, therefore
 /// it is a protected base class member
 /// </summary>
 /// <param name="editor"> TextEditorControl object </param>
 /// <param name="core"> TextCore Singleton object </param>
 public void SetEditorCore(TextEditorControl editor, ITextEditorCore core)
 {
     textEditorControl = editor;
     textCore          = core;
     textEditorCanvas  = textEditorControl.FindName("textCanvas") as TextEditorCanvas;
     scrollViewer      = textEditorControl.FindName("scrollViewer") as ScrollViewer;
 }
Пример #2
0
 public AuxiliaryLayer(TextEditorCanvas textEditorCanvas)
     : base(textEditorCanvas)
 {
     caretRect        = new System.Windows.Rect();
     caretRect.Width  = 1.3;
     caretRect.Height = Configurations.FontDisplayHeight;
     caretVisibility  = System.Windows.Visibility.Visible;
 }
Пример #3
0
 public LineHeadingLayer(TextEditorCanvas textEditorCanvas)
     : base(textEditorCanvas)
 {
     breakpointImage   = new BitmapImage(new Uri(Images.BreakpointImage, UriKind.Absolute));
     runIndiactorImage = new BitmapImage(new Uri(Images.RunIndicator, UriKind.Absolute));
     errorImage        = new BitmapImage(new Uri(Images.ErrorImage, UriKind.Absolute));
     warningImage      = new BitmapImage(new Uri(Images.WarningImage, UriKind.Absolute));
     errorEditImage    = new BitmapImage(new Uri(Images.ErrorEditImage, UriKind.Absolute));
 }
Пример #4
0
        public EditorVisualHost(TextEditorCanvas textEditorCanvas)
        {
            Configurations.InitializeFontSizes();

            children      = new VisualCollection(this);
            highlight     = new HighlightLayer(textEditorCanvas);
            auxiliary     = new AuxiliaryLayer(textEditorCanvas);
            lineHeading   = new LineHeadingLayer(textEditorCanvas);
            sourceDisplay = new SourceDisplayLayer(textEditorCanvas);
        }
Пример #5
0
 public VisualLayer(TextEditorCanvas textEditorCanvas)
 {
     this.textEditorCanvas = textEditorCanvas;
 }
 public SourceDisplayLayer(TextEditorCanvas textEditorCanvas)
     : base(textEditorCanvas)
 {
 }
Пример #7
0
 public HighlightLayer(TextEditorCanvas textEditorCanvas)
     : base(textEditorCanvas)
 {
 }