public FloatingQuickFixIconWidget( CodeActionEditorExtension codeActionEditorExtension, LanguageItemWindow window, SourceEditorView sourceEditorView, CodeActionContainer fixes, Cairo.Point point) : base(Gtk.WindowType.Popup) { this.ext = codeActionEditorExtension; this.window = window; this.sourceEditorView = sourceEditorView; this.fixes = fixes; this.point = point; this.Decorated = false; this.Events |= EventMask.ButtonPressMask | EventMask.LeaveNotifyMask | EventMask.EnterNotifyMask; TypeHint = Gdk.WindowTypeHint.Utility; var fr = new Gtk.HBox(); fr.BorderWidth = 2; var view = new ImageView(SmartTagMarginMarker.GetIconId(fixes.GetSmartTagSeverity()), Gtk.IconSize.Menu); fr.PackStart(view, false, false, 0); fr.PackEnd(new RectangleMarker(), false, false, 0); Add(fr); ext.FixesMenuClosed += Ext_FixesMenuClosed; ShowAll(); }
public override void Execute(SourceEditorView sourceView) { if (!sourceView.InsertTemplate()) { PassToBase = true; } }
public SourceEditor (SourceEditorDisplayBindingWrapper bind) { ShadowType = Gtk.ShadowType.In; DisplayBinding = bind; Buffer = new SourceEditorBuffer (); View = new SourceEditorView (Buffer, this); Buffer.View = View; this.VscrollbarPolicy = PolicyType.Automatic; this.HscrollbarPolicy = PolicyType.Automatic; AddMarker ("SourceEditorBookmark", dragIconPixbuf); AddMarker ("ExecutionMark", executionMarkerPixbuf); AddMarker ("BreakpointMark", breakPointPixbuf); Add (View); }
public QuickTaskStrip(SourceEditorView parentView) { SourceEditorView = parentView ?? throw new ArgumentNullException(nameof(parentView)); ScrollBarMode = PropertyService.Get("ScrollBar.Mode", ScrollBarMode.Overview); PropertyService.AddPropertyHandler("ScrollBar.Mode", ScrollBarModeChanged); EnableFancyFeatures.Changed += HandleChanged; Events |= EventMask.ButtonPressMask; Accessible.Name = "MainWindow.QuickTaskStrip"; Accessible.SetShouldIgnore(false); Accessible.SetRole(AtkCocoa.Roles.AXRuler); Accessible.SetLabel(GettextCatalog.GetString("Quick Task Strip")); Accessible.Description = GettextCatalog.GetString("An overview of the current file's messages, warnings and errors"); var actionHandler = new ActionDelegate(this); actionHandler.PerformShowMenu += PerformShowMenu; }
/// <remarks> /// When the key which is defined in the addin is pressed, /// this method will be invoked after Execute (). /// </remarks> public virtual void PostExecute(SourceEditorView sourceView) { // reset the state pass = false; }
/// <remarks> /// When the key which is defined in the addin is pressed, /// this method will be invoked before Execute (). /// </remarks> public virtual void PreExecute(SourceEditorView sourceView) { }
/// <remarks> /// When the key which is defined in the addin is pressed, this method will be invoked. /// </remarks> public abstract void Execute(SourceEditorView sourceView);
public override void PreExecute(SourceEditorView sourceView) { PassToBase = true; }
public override void Execute(SourceEditorView sourceView) { sourceView.FormatLine(); PassToBase = false; }
public override void Execute(SourceEditorView editActionHandler) { // SelectionWindow selectionWindow = new SelectionWindow("Surround"); // selectionWindow.Show(); }