Esempio n. 1
0
        public ExceptionCaughtDialog(ExceptionInfo val, ExceptionCaughtMessage msg)
        {
            Title    = GettextCatalog.GetString("Exception Caught");
            ex       = val;
            widget   = new ExceptionCaughtWidget(val);
            this.msg = msg;

            VBox box = new VBox();

            box.Spacing = 6;
            box.PackStart(widget, true, true, 0);
            HButtonBox buttonBox = new HButtonBox();

            buttonBox.BorderWidth = 6;

            var copy = new Gtk.Button(GettextCatalog.GetString("Copy to Clipboard"));

            buttonBox.PackStart(copy, false, false, 0);
            copy.Clicked += HandleCopyClicked;

            var close = new Gtk.Button(GettextCatalog.GetString("Close"));

            buttonBox.PackStart(close, false, false, 0);
            close.Clicked   += (sender, e) => msg.Close();
            close.Activated += (sender, e) => msg.Close();

            box.PackStart(buttonBox, false, false, 0);
            VBox.Add(box);

            DefaultWidth  = 500;
            DefaultHeight = 350;

            box.ShowAll();
            ActionArea.Hide();
        }
Esempio n. 2
0
        public ProgressDialog(MonoDevelop.Components.Window parent, bool allowCancel, bool showDetails)
        {
            MonoDevelop.Components.IdeTheme.ApplyTheme(this);
            this.Build();
            this.Title   = BrandingService.ApplicationName;
            HasSeparator = false;
            ActionArea.Hide();
            DefaultHeight = 5;

            TransientFor = parent;

            btnCancel.Visible = allowCancel;

            expander.Visible = showDetails;

            buffer = detailsTextView.Buffer;
            detailsTextView.Editable = false;

            bold        = new TextTag("bold");
            bold.Weight = Pango.Weight.Bold;
            buffer.TagTable.Add(bold);

            tag        = new TextTag("0");
            tag.Indent = 10;
            buffer.TagTable.Add(tag);
            tags.Add(tag);
        }
Esempio n. 3
0
        public ProgressDialog(Window parent, bool allowCancel, bool showDetails)
        {
            this.Build();
            HasSeparator = false;
            ActionArea.Hide();
            DefaultHeight = 5;

            TransientFor = parent;

            btnCancel.Visible = allowCancel;

            expander.Visible = showDetails;

            buffer = detailsTextView.Buffer;
            detailsTextView.Editable = false;

            bold        = new TextTag("bold");
            bold.Weight = Pango.Weight.Bold;
            buffer.TagTable.Add(bold);

            tag        = new TextTag("0");
            tag.Indent = 10;
            buffer.TagTable.Add(tag);
            tags.Add(tag);
        }
Esempio n. 4
0
        public AddinInstallDialog(SetupService service)
        {
            Build();
            this.service            = service;
            wizardNotebook.ShowTabs = false;
            ActionArea.Hide();

            tree = new InstallAddinTreeWidget(addinTree);
            tree.AllowSelection    = true;
            tree.SelectionChanged += new EventHandler(OnAddinSelectionChanged);

            repoStore       = new ListStore(typeof(string), typeof(string));
            repoCombo.Model = repoStore;
            CellRendererText crt = new CellRendererText();

            repoCombo.PackStart(crt, true);
            repoCombo.AddAttribute(crt, "text", 0);
            filterComboBox.Active = 1;

            imageInstall.Stock    = "md-software-update";
            imageInstall.IconSize = (int)IconSize.Dialog;

            FillRepos();
            repoCombo.Active = 0;
            LoadAddins();
            FillAddinInfo();
            OnPageChanged();
        }
Esempio n. 5
0
        void Build()
        {
            Title         = GettextCatalog.GetString("Exception Caught");
            DefaultHeight = 500;
            DefaultWidth  = 600;
            VBox.Spacing  = 0;

            VBox.PackStart(CreateExceptionHeader(), false, true, 0);

            var paned = new VPaned();

            paned.Add1(CreateExceptionValueTreeView());
            paned.Add2(CreateStackTraceTreeView());
            paned.Show();

            var vbox = new VBox(false, 0);

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

            VBox.PackStart(vbox, true, true, 0);

            var actionArea = new HBox(false, 12)
            {
                BorderWidth = 6
            };

            OnlyShowMyCodeCheckbox          = new CheckButton(GettextCatalog.GetString("_Only show my code."));
            OnlyShowMyCodeCheckbox.Toggled += OnlyShowMyCodeToggled;
            OnlyShowMyCodeCheckbox.Show();
            OnlyShowMyCodeCheckbox.Active = DebuggingService.GetUserOptions().ProjectAssembliesOnly;

            var alignment = new Alignment(0.0f, 0.5f, 0.0f, 0.0f)
            {
                Child = OnlyShowMyCodeCheckbox
            };

            alignment.Show();

            actionArea.PackStart(alignment, true, true, 0);
            actionArea.PackStart(CreateButtonBox(), false, true, 0);
            actionArea.Show();

            VBox.PackStart(actionArea, false, true, 0);
            ActionArea.Hide();
        }