Esempio n. 1
0
        Widget CreateStackTraceTreeView()
        {
            var store = new ListStore(typeof(ExceptionStackFrame), typeof(string), typeof(bool));

            StackTraceTreeView = new TreeView(store);
            StackTraceTreeView.FixedHeightMode = false;
            StackTraceTreeView.HeadersVisible  = false;
            StackTraceTreeView.ShowExpanders   = false;
            StackTraceTreeView.RulesHint       = true;
            StackTraceTreeView.Show();

            var renderer = new StackFrameCellRenderer(StackTraceTreeView.PangoContext);

            renderer.Width = DefaultWidth;

            StackTraceTreeView.AppendColumn("", renderer, (CellLayoutDataFunc)StackFrameLayout);

            StackTraceTreeView.SizeAllocated += (o, args) => renderer.Width = args.Allocation.Width;
            StackTraceTreeView.RowActivated  += StackFrameActivated;

            var scrolled = new ScrolledWindow {
                HeightRequest = 180, HscrollbarPolicy = PolicyType.Automatic, VscrollbarPolicy = PolicyType.Automatic
            };

            scrolled.ShadowType = ShadowType.None;
            scrolled.Add(StackTraceTreeView);
            scrolled.Show();

            return(scrolled);
        }
Esempio n. 2
0
        Widget CreateStackTraceTreeView()
        {
            var store = new ListStore(typeof(ExceptionStackFrame), typeof(string), typeof(bool));

            stackTraceTreeView = new TreeView(store);
            stackTraceTreeView.SearchColumn    = -1;          // disable the interactive search
            stackTraceTreeView.FixedHeightMode = false;
            stackTraceTreeView.HeadersVisible  = false;
            stackTraceTreeView.ShowExpanders   = false;
            stackTraceTreeView.RulesHint       = false;
            stackTraceTreeView.Show();

            var renderer = new StackFrameCellRenderer(stackTraceTreeView.PangoContext);

            stackTraceTreeView.AppendColumn("", renderer, (CellLayoutDataFunc)StackFrameLayout);

            stackTraceTreeView.RowActivated += StackFrameActivated;

            var scrolled = new ScrolledWindow {
                HscrollbarPolicy = PolicyType.Never,
                VscrollbarPolicy = PolicyType.Automatic
            };

            scrolled.ShadowType = ShadowType.None;
            scrolled.Add(stackTraceTreeView);
            scrolled.Show();
            var vbox = new VBox();

            vbox.PackStart(CreateSeparator(), false, true, 0);
            vbox.PackStart(scrolled, true, true, 0);
            vbox.Show();

            var label = new Label();

            label.Markup = "<b>" + GettextCatalog.GetString("Stacktrace") + "</b>";
            label.Xalign = 0;
            label.Xpad   = 10;

            stackTraceTreeView.SetCommonAccessibilityAttributes("ExceptionCaughtDialog.StackTraceTreeView", label, null);

            var vbox2 = new VBox();

            vbox2.PackStart(label, false, false, 12);
            vbox2.PackStart(vbox, true, true, 0);
            vbox2.ShowAll();
            return(vbox2);
        }
Esempio n. 3
0
        Widget CreateStackTraceTreeView()
        {
            var store = new ListStore(typeof(ExceptionStackFrame), typeof(string), typeof(bool));

            StackTraceTreeView = new TreeView(store);
            StackTraceTreeView.SearchColumn    = -1;          // disable the interactive search
            StackTraceTreeView.FixedHeightMode = false;
            StackTraceTreeView.HeadersVisible  = false;
            StackTraceTreeView.ShowExpanders   = false;
            StackTraceTreeView.RulesHint       = false;
            StackTraceTreeView.Show();

            var renderer = new StackFrameCellRenderer(StackTraceTreeView.PangoContext);

            StackTraceTreeView.AppendColumn("", renderer, (CellLayoutDataFunc)StackFrameLayout);

            StackTraceTreeView.RowActivated += StackFrameActivated;

            var scrolled = new ScrolledWindow {
                HeightRequest    = 180,
                HscrollbarPolicy = PolicyType.Never,
                VscrollbarPolicy = PolicyType.Automatic
            };

            scrolled.ShadowType = ShadowType.None;
            scrolled.Add(StackTraceTreeView);
            scrolled.Show();
            var vbox = new VBox();

            vbox.PackStart(CreateSeparator(), false, true, 0);
            vbox.PackStart(scrolled, true, true, 0);
            vbox.Show();

            var vbox2 = new VBox();

            expanderStacktrace = WrapInExpander(GettextCatalog.GetString("Stacktrace"), vbox);
            vbox2.PackStart(new VBox(), false, false, 5);
            vbox2.PackStart(expanderStacktrace, true, true, 0);
            vbox2.ShowAll();
            return(vbox2);
        }
		Widget CreateStackTraceTreeView ()
		{
			var store = new ListStore (typeof (ExceptionStackFrame), typeof (string), typeof (bool));
			StackTraceTreeView = new TreeView (store);
			StackTraceTreeView.SearchColumn = -1; // disable the interactive search
			StackTraceTreeView.FixedHeightMode = false;
			StackTraceTreeView.HeadersVisible = false;
			StackTraceTreeView.ShowExpanders = false;
			StackTraceTreeView.RulesHint = false;
			StackTraceTreeView.Show ();

			var renderer = new StackFrameCellRenderer (StackTraceTreeView.PangoContext);

			StackTraceTreeView.AppendColumn ("", renderer, (CellLayoutDataFunc)StackFrameLayout);

			StackTraceTreeView.RowActivated += StackFrameActivated;

			var scrolled = new ScrolledWindow {
				HeightRequest = 180,
				HscrollbarPolicy = PolicyType.Never,
				VscrollbarPolicy = PolicyType.Automatic
			};
			scrolled.ShadowType = ShadowType.None;
			scrolled.Add (StackTraceTreeView);
			scrolled.Show ();
			var vbox = new VBox ();
			vbox.PackStart (CreateSeparator (), false, true, 0);
			vbox.PackStart (scrolled, true, true, 0);
			vbox.Show ();

			var vbox2 = new VBox ();
			expanderStacktrace = WrapInExpander (GettextCatalog.GetString ("Stacktrace"), vbox);
			vbox2.PackStart (new VBox (), false, false, 5);
			vbox2.PackStart (expanderStacktrace, true, true, 0);
			vbox2.ShowAll ();
			return vbox2;
		}
		Widget CreateStackTraceTreeView ()
		{
			var store = new ListStore (typeof (ExceptionStackFrame), typeof (string), typeof (bool));
			StackTraceTreeView = new TreeView (store);
			StackTraceTreeView.FixedHeightMode = false;
			StackTraceTreeView.HeadersVisible = false;
			StackTraceTreeView.ShowExpanders = false;
			StackTraceTreeView.RulesHint = true;
			StackTraceTreeView.Show ();

			var renderer = new StackFrameCellRenderer (StackTraceTreeView.PangoContext);
			renderer.Width = DefaultWidth;

			StackTraceTreeView.AppendColumn ("", renderer, (CellLayoutDataFunc) StackFrameLayout);

			StackTraceTreeView.SizeAllocated += (o, args) => renderer.Width = args.Allocation.Width;
			StackTraceTreeView.RowActivated += StackFrameActivated;

			var scrolled = new ScrolledWindow { HeightRequest = 180, HscrollbarPolicy = PolicyType.Automatic, VscrollbarPolicy = PolicyType.Automatic };
			scrolled.ShadowType = ShadowType.None;
			scrolled.Add (StackTraceTreeView);
			scrolled.Show ();

			return scrolled;
		}