public CommonAboutDialog() { Title = GettextCatalog.GetString("About MonoDevelop"); TransientFor = IdeApp.Workbench.RootWindow; AllowGrow = false; HasSeparator = false; VBox.BorderWidth = 0; aboutPictureScrollBox = new ScrollBox(); VBox.PackStart(aboutPictureScrollBox, false, false, 0); imageSep = new Pixbuf(typeof(CommonAboutDialog).Assembly, "AboutImageSep.png"); VBox.PackStart(new Gtk.Image(imageSep), false, false, 0); Notebook notebook = new Notebook(); notebook.BorderWidth = 6; notebook.AppendPage(new AboutMonoDevelopTabPage(), new Label(Title)); notebook.AppendPage(new VersionInformationTabPage(), new Label(GettextCatalog.GetString("Version Info"))); var buildInfo = LoadBuildInfo(); if (buildInfo != null) { notebook.AppendPage(buildInfo, new Label(GettextCatalog.GetString("Build Info"))); } VBox.PackStart(notebook, true, true, 4); AddButton(Gtk.Stock.Close, (int)ResponseType.Close); ShowAll(); }
public AboutMonoDevelopTabPage() { BorderWidth = 0; aboutPictureScrollBox = new ScrollBox(); PackStart(aboutPictureScrollBox, false, false, 0); using (var stream = BrandingService.GetStream("AboutImageSep.png")) imageSep = new Pixbuf(stream); PackStart(new Gtk.Image(imageSep), false, false, 0); var label = new Label(); label.Markup = string.Format( "<b>{0}</b>\n {1}", GettextCatalog.GetString("Version"), BuildVariables.PackageVersion == BuildVariables.PackageVersionLabel ? BuildVariables.PackageVersionLabel : String.Format("{0} ({1})", BuildVariables.PackageVersionLabel, BuildVariables.PackageVersion)); var hBoxVersion = new HBox(); hBoxVersion.PackStart(label, false, false, 5); this.PackStart(hBoxVersion, false, true, 0); label = null; label = new Label(); label.Markup = GettextCatalog.GetString("<b>License</b>\n {0}", GettextCatalog.GetString("Released under the GNU Lesser General Public License.")); var hBoxLicense = new HBox(); hBoxLicense.PackStart(label, false, false, 5); this.PackStart(hBoxLicense, false, true, 5); label = null; label = new Label(); label.Markup = GettextCatalog.GetString("<b>Copyright</b>\n (c) 2004-{0} by MonoDevelop contributors", DateTime.Now.Year); var hBoxCopyright = new HBox(); hBoxCopyright.PackStart(label, false, false, 5); this.PackStart(hBoxCopyright, false, true, 5); this.ShowAll(); }
public AboutMonoDevelopTabPage () { BorderWidth = 0; aboutPictureScrollBox = new ScrollBox (); PackStart (aboutPictureScrollBox, false, false, 0); using (var stream = BrandingService.GetStream ("AboutImageSep.png", true)) imageSep = new Pixbuf (stream); PackStart (new Gtk.Image (imageSep), false, false, 0); var label = new Label (); label.Markup = string.Format ( "<b>{0}</b>\n {1}", GettextCatalog.GetString ("Version"), BuildVariables.PackageVersion == BuildVariables.PackageVersionLabel ? BuildVariables.PackageVersionLabel : String.Format ("{0} ({1})", BuildVariables.PackageVersionLabel, BuildVariables.PackageVersion)); var hBoxVersion = new HBox (); hBoxVersion.PackStart (label, false, false, 5); this.PackStart (hBoxVersion, false, true, 0); label = null; label = new Label (); label.Markup = GettextCatalog.GetString ("<b>License</b>\n {0}", GettextCatalog.GetString ("Released under the GNU Lesser General Public License.")); var hBoxLicense = new HBox (); hBoxLicense.PackStart (label, false, false, 5); this.PackStart (hBoxLicense, false, true, 5); label = null; label = new Label (); label.Markup = GettextCatalog.GetString ("<b>Copyright</b>\n (c) 2004-{0} by MonoDevelop contributors", DateTime.Now.Year); var hBoxCopyright = new HBox (); hBoxCopyright.PackStart (label, false, false, 5); this.PackStart (hBoxCopyright, false, true, 5); this.ShowAll (); }
public CommonAboutDialog () { Title = GettextCatalog.GetString ("About MonoDevelop"); TransientFor = IdeApp.Workbench.RootWindow; AllowGrow = false; HasSeparator = false; VBox.BorderWidth = 0; aboutPictureScrollBox = new ScrollBox (); VBox.PackStart (aboutPictureScrollBox, false, false, 0); imageSep = new Pixbuf (typeof(CommonAboutDialog).Assembly, "AboutImageSep.png"); VBox.PackStart (new Gtk.Image (imageSep), false, false, 0); Notebook notebook = new Notebook (); notebook.BorderWidth = 6; notebook.AppendPage (new AboutMonoDevelopTabPage (), new Label (Title)); notebook.AppendPage (new VersionInformationTabPage (), new Label (GettextCatalog.GetString ("Version Info"))); var buildInfo = LoadBuildInfo (); if (buildInfo != null) notebook.AppendPage (buildInfo, new Label (GettextCatalog.GetString ("Build Info"))); VBox.PackStart (notebook, true, true, 4); AddButton (Gtk.Stock.Close, (int)ResponseType.Close); ShowAll (); }