public CodeFileDocumentTextEditorControl() { editactions[Keys.Space | Keys.Control] = new CodeCompletionAllNamesAction(); editactions[Keys.Space | Keys.Shift] = new CodeCompletionNamesOnlyInModuleAction(); editactions[Keys.Enter | Keys.Control] = new GotoAction(); editactions[Keys.LButton | Keys.Control] = new GotoAction(); editactions[Keys.C | Keys.Shift | Keys.Control] = new ClassOrMethodRealizationAction(); editactions[Keys.Space | Keys.Shift | Keys.Control] = new VirtualMethodsAction(); editactions[Keys.I | Keys.Shift | Keys.Control] = new GenerateMethodImplementationHeadersAction(); editactions[Keys.F5 | Keys.Control] = new AddToWatchAction(); editactions[Keys.F | Keys.Shift | Keys.Control] = new CodeFormattingAction(); editactions[Keys.Control | Keys.Y] = new ICSharpCode.TextEditor.Actions.DeleteLine(); editactions[Keys.Escape] = new HideBottomTabs(); quickClassBrowserPanel = new QuickClassBrowserPanel(this); quickClassBrowserPanel.VisibleChanged += new EventHandler(quickClassBrowserPanel_VisibleChanged); if (VisualPABCSingleton.MainForm != null) { quickClassBrowserPanel.Visible = VisualPABCSingleton.MainForm.UserOptions.ShowQuickClassBrowserPanel; } intellisensePanel = new Panel(); quickClassBrowserPanel_VisibleChanged(null, null); intellisensePanel.Dock = DockStyle.Top; intellisensePanel.Controls.Add(quickClassBrowserPanel); intellisensePanel.Paint += new PaintEventHandler(separatorPanel_Paint); Document.FoldingManager.FoldingStrategy = new ParserFoldingStrategy(); Controls.Add(intellisensePanel); ActiveTextAreaControl.TextArea.Caret.PositionChanged += docPositionChanged; this.ActiveTextAreaControl.TextArea.AllowDrop = true; this.ActiveTextAreaControl.TextArea.DragEnter += textEditorDragEnter; this.ActiveTextAreaControl.TextArea.DragDrop += textEditorDragDrop; this.ActiveTextAreaControl.Document.LineDeleted += Document_LineDeleted; }
public CodeFileDocumentTextEditorControl() { editactions[Keys.Space | Keys.Control] = new CodeCompletionAllNamesAction(); editactions[Keys.Space | Keys.Shift] = new CodeCompletionNamesOnlyInModuleAction(); editactions[Keys.Enter | Keys.Control] = new GotoAction(); editactions[Keys.LButton | Keys.Control] = new GotoAction(); editactions[Keys.C | Keys.Shift | Keys.Control] = new ClassOrMethodRealizationAction(); editactions[Keys.Space | Keys.Shift | Keys.Control] = new VirtualMethodsAction(); editactions[Keys.I | Keys.Shift | Keys.Control] = new GenerateMethodImplementationHeadersAction(); editactions[Keys.F5 | Keys.Control] = new AddToWatchAction(); editactions[Keys.F | Keys.Shift | Keys.Control] = new CodeFormattingAction(); editactions[Keys.Control | Keys.Y] = new ICSharpCode.TextEditor.Actions.DeleteLine(); editactions[Keys.Escape] = new HideBottomTabs(); quickClassBrowserPanel = new QuickClassBrowserPanel(this); quickClassBrowserPanel.VisibleChanged += new EventHandler(quickClassBrowserPanel_VisibleChanged); if (VisualPABCSingleton.MainForm != null) { quickClassBrowserPanel.Visible = VisualPABCSingleton.MainForm.UserOptions.ShowQuickClassBrowserPanel; } intellisensePanel = new Panel(); quickClassBrowserPanel_VisibleChanged(null, null); intellisensePanel.Dock = DockStyle.Top; intellisensePanel.Controls.Add(quickClassBrowserPanel); intellisensePanel.Paint += new PaintEventHandler(separatorPanel_Paint); Document.FoldingManager.FoldingStrategy = new ParserFoldingStrategy(); Controls.Add(intellisensePanel); ActiveTextAreaControl.TextArea.Caret.PositionChanged += docPositionChanged; this.ActiveTextAreaControl.TextArea.AllowDrop = true; this.ActiveTextAreaControl.TextArea.DragEnter += textEditorDragEnter; this.ActiveTextAreaControl.TextArea.DragDrop += textEditorDragDrop; }
public void MarkForImmediateWindow() { editactions[Keys.Space | Keys.Control] = null; editactions[Keys.Space | Keys.Shift] = null; editactions[Keys.Enter | Keys.Control] = null; editactions[Keys.LButton | Keys.ControlKey] = null; editactions[Keys.C | Keys.Shift | Keys.Control] = null; editactions[Keys.Space | Keys.Shift | Keys.Control] = null; editactions[Keys.I | Keys.Shift | Keys.Control] = null; editactions[Keys.F5 | Keys.Control] = null; editactions[Keys.Control | Keys.Y] = null; editactions[Keys.Escape] = null; quickClassBrowserPanel = null; ActiveTextAreaControl.TextArea.Caret.PositionChanged -= docPositionChanged; this.ActiveTextAreaControl.TextArea.DragEnter -= textEditorDragEnter; this.ActiveTextAreaControl.TextArea.DragDrop -= textEditorDragDrop; //this.Font = new Font(new FontFamily(Constants.CompletionWindowCodeCompletionListViewFontName),8.5f); editactions[Keys.Enter] = new ImmediateEvaluateAction(); }