public QuickStartItem(StartPage owner, ProfileConfiguration config, string caption, string description, int x, int y) : base(owner, caption, description, x, y) { this.config = config; }
public LinkItem(StartPage owner, string caption, string description, StartEventType type, string detail, int x, int y) : this(owner, caption, description, x, y) { Type = type; Detail = detail; }
protected LinkItem(StartPage owner, string caption, string description, int x, int y) : base(owner) { markup = "<span underline=\"single\" foreground=\"#0000FF\">" + caption + "</span>"; this.description = description; owner.layout.SetMarkup (markup); Pango.Rectangle ink, log; owner.layout.GetPixelExtents (out ink, out log); text_offset = new Gdk.Point (padding - ink.X, padding - ink.Y); if (String.IsNullOrEmpty (description)) Bounds = new Gdk.Rectangle (x + 40, y, ink.Width + 2 * padding, ink.Height + 2 * padding); else { int height = ink.Height + padding; int width = ink.Width; owner.layout.SetMarkup ("<i>" + description + "</i>"); owner.layout.GetPixelExtents (out ink, out log); description_offset = new Gdk.Point (padding - ink.X, height + text_padding - ink.Y); Bounds = new Gdk.Rectangle (x + 40, y, width > ink.Width ? width + 2 * padding : ink.Width + 2 * padding, height + ink.Height + padding + text_padding); } }
public LinkItem(StartPage owner, string caption, StartEventType type, string detail, int x, int y) : this(owner, caption, null, type, detail, x, y) { }
public LabelItem(StartPage owner, string label, int x, int y) : base(owner) { markup = "<span foreground=\"#000099\"><b><big>" + label + "</big></b></span>"; owner.layout.SetMarkup (markup); Pango.Rectangle ink, log; owner.layout.GetPixelExtents (out ink, out log); Bounds = new Gdk.Rectangle (x + 30, y, ink.Width, ink.Height); text_offset = new Gdk.Point (ink.X, ink.Y); }
protected Item(StartPage owner) { this.owner = owner; }
public BannerItem(StartPage owner) : base(owner) { Bounds = new Gdk.Rectangle (0, 0, owner.Allocation.Width, 65); }
public MainWindow() : base(Catalog.GetString ("Mono Visual Profiler")) { history = History.Load (); history.LogFiles.Changed += UpdateRecentLogs; history.Configs.Changed += UpdateRepeatSessions; DefaultSize = new Gdk.Size (800, 600); Gtk.Box box = new Gtk.VBox (false, 0); Gtk.UIManager uim = BuildUIManager (); box.PackStart (uim.GetWidget ("/Menubar"), false, false, 0); box.PackStart (uim.GetWidget ("/Toolbar"), false, false, 0); UpdateRecentLogs (null, null); UpdateRepeatSessions (null, null); content_area = new Gtk.VBox (false, 0); content_area.Show (); box.PackStart (content_area, true, true, 0); StartPage start_page = new StartPage (history); start_page.Activated += OnStartPageActivated; start_page.Show (); View = start_page; box.ShowAll (); Add (box); }