Inheritance: Gtk.DrawingArea
Esempio n. 1
0
 public QuickStartItem(StartPage owner, ProfileConfiguration config, string caption, string description, int x, int y)
     : base(owner, caption, description, x, y)
 {
     this.config = config;
 }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
 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);
     }
 }
Esempio n. 4
0
 public LinkItem(StartPage owner, string caption, StartEventType type, string detail, int x, int y)
     : this(owner, caption, null, type, detail, x, y)
 {
 }
Esempio n. 5
0
 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);
 }
Esempio n. 6
0
 protected Item(StartPage owner)
 {
     this.owner = owner;
 }
Esempio n. 7
0
 public BannerItem(StartPage owner)
     : base(owner)
 {
     Bounds = new Gdk.Rectangle (0, 0, owner.Allocation.Width, 65);
 }
Esempio n. 8
0
 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);
 }