public ApplySuggestionOnSelectionAction(ScopeAwareRichTextBox txt, Suggestion sug) : base(txt, txt.ActiveScope) { selStart = txt.SelectionStart; selLength = txt.SelectionLength; Title = sug.Description; suggestion = sug; }
public SelectionHelper(ScopeAwareRichTextBox rtb) { txt = rtb; rtb.MouseMove += new MouseEventHandler(rtb_MouseMove); rtb.KeyDown += new KeyEventHandler(rtb_KeyDown); rtb.KeyUp += new KeyEventHandler(rtb_KeyUp); rtb.Click += new EventHandler(rtb_Click); rtb.DoubleClick += new EventHandler(rtb_DoubleClick); }
public VisualScopeMarker(Graphics g, Scope scopeToDraw, ScopeAwareRichTextBox txt) : base(g, txt, 0,0) { if (scopeToDraw==null) { return; } startIndex = scopeToDraw.StartPosInRootScope; length = scopeToDraw.Length; drawnScope = scopeToDraw; }
public ScopeRenameAction(Scope scope, ScopeAwareRichTextBox text) : base(text, scope) { titlePrefix = "Rename"; SetTitle(); highlightFillColor = Color.Yellow; highlightFillOpacity = 80; highlightBorderColor = Color.Red; highlightBorderOpacity = 180; highlightBorderWidth = 2; }
public VisualScopeMarker(Graphics g, Scope scopeToDraw, ScopeAwareRichTextBox txt) : base(g, txt, 0, 0) { if (scopeToDraw == null) { return; } startIndex = scopeToDraw.StartPosInRootScope; length = scopeToDraw.Length; drawnScope = scopeToDraw; }
public DebuggingMarker(Graphics g, Scope scopeToDraw, ScopeAwareRichTextBox txt) : base(g, scopeToDraw, txt) { }
public GroupNameMarker(Graphics g, Scope scopeToDraw, ScopeAwareRichTextBox txt) : base(g, scopeToDraw, txt) { }
public DrawingHelper(ScopeAwareRichTextBox txt) { rtb = txt; }
public SpaceMarker(Graphics graphics, ScopeAwareRichTextBox txt, int startIndex, int length) : base(graphics, txt, startIndex, length) { }
public VisualScopeActive(Graphics g, Scope scopeToDraw, ScopeAwareRichTextBox txt) : base(g, scopeToDraw, txt) { }
public static DebuggingMarker Create(Graphics g, Scope scopeToDraw, ScopeAwareRichTextBox txt) { return new DebuggingMarker(g, scopeToDraw, txt); }
public NamedParentMarker(Graphics g, Scope scopeToDraw, ScopeAwareRichTextBox txt) : base(g, scopeToDraw, txt) { }
protected ScopeTextBoxUserAction(ScopeAwareRichTextBox txt, Scope root) { this.txt = txt; this.root = root; }
public DefineScopeWithNameAction(ScopeAwareRichTextBox txt) : base(txt, null) { Title = "Seperate and name this part..."; }
public VisualScopeInvisible(Graphics g, Scope scopeToDraw, ScopeAwareRichTextBox txt) : base(g, scopeToDraw, txt) { }
public VisualScopeDrawingLogic(Graphics g, Scope scopeToDraw, ScopeAwareRichTextBox txt) : base(g, scopeToDraw, txt) { }
public RegexMarker(Graphics g, Scope scopeToDraw, ScopeAwareRichTextBox txt) : base(g, scopeToDraw, txt) { }
public VisualScopeImplicitFlat(Graphics g, Scope scopeToDraw, ScopeAwareRichTextBox txt) : base(g, scopeToDraw, txt) { }
public SmartContextMenu(Scope targetScope, ScopeAwareRichTextBox TextBox) { scope = targetScope; textBox = TextBox; }
public UIActionSuggestionProvider(ScopeAwareRichTextBox textBox) { txt = textBox; }
public DefineEncapsulatingScopeAction(ScopeAwareRichTextBox txt, Scope target) : base(txt, target) { root = target; Title = "Group these.."; }
public VisualScopeNonActiveNotImplicitFlat(Graphics g, Scope scopeToDraw, ScopeAwareRichTextBox RTB) : base(g, scopeToDraw, RTB) { }
public override void Initialize(IComponent component) { base.Initialize(component); rtb = (ScopeAwareRichTextBox)component; }
public static DebuggingMarker Create(Graphics g, Scope scopeToDraw, ScopeAwareRichTextBox txt) { return(new DebuggingMarker(g, scopeToDraw, txt)); }
public override void Initialize(IComponent component) { base.Initialize(component); rtb = (ScopeAwareRichTextBox) component; }
public SpecialSelectionMarker(Graphics g, Scope scopeToDraw, ScopeAwareRichTextBox txt) : base(g, scopeToDraw, txt) { }
public VisualScopeActiveNotImplicitFlat(Graphics g, Scope scopeToDraw, ScopeAwareRichTextBox txt) : base(g, scopeToDraw, txt) { }