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