public override Gtk.Widget CreatePanelWidget() { var box = new Xwt.VBox (); box.Spacing = 6; box.Margin = 12; bool byDefault, require; MSBuildProjectService.CheckHandlerUsesMSBuildEngine (ConfiguredProject, out byDefault, out require); if (require) { box.Visible = false; return box.ToGtkWidget (); } box.PackStart (new Xwt.Label { Markup = "<b>Build Engine</b>" }); checkMSBuild = new Xwt.CheckBox (byDefault ? GettextCatalog.GetString ("Use MSBuild build engine (recommended for this project type)") : GettextCatalog.GetString ("Use MSBuild build engine (unsupported for this project type)")) { Active = ConfiguredProject.UseMSBuildEngine ?? byDefault }; var hbox = new Xwt.HBox { MarginLeft = 18, Spacing = 6 }; hbox.PackStart (checkMSBuild); box.PackStart (hbox); box.Show (); return box.ToGtkWidget (); }
public override Gtk.Widget CreatePanelWidget() { bool byDefault, require; MSBuildProjectService.CheckHandlerUsesMSBuildEngine(ConfiguredProject, out byDefault, out require); if (require) { return(null); } var box = new Xwt.VBox { Spacing = 6, Margin = 12 }; box.PackStart(new Xwt.Label { Markup = "<b>Build Engine</b>" }); checkMSBuild = new Xwt.CheckBox(byDefault ? GettextCatalog.GetString("Use MSBuild build engine (recommended for this project type)") : GettextCatalog.GetString("Use MSBuild build engine (unsupported for this project type)")) { Active = ConfiguredProject.UseMSBuildEngine ?? byDefault }; var hbox = new Xwt.HBox { MarginLeft = 18, Spacing = 6 }; hbox.PackStart(checkMSBuild); box.PackStart(hbox); box.Show(); return(box.ToGtkWidget()); }
public override Gtk.Widget CreatePanelWidget () { Xwt.VBox box = new Xwt.VBox (); box.Spacing = 6; box.Margin = 12; disableVersionControl = new Xwt.CheckBox (GettextCatalog.GetString ("Disable Version Control globally")) { Active = VersionControlService.ConfigurationGlobalDisabled, }; box.PackStart (disableVersionControl); box.Show (); return box.ToGtkWidget (); }
public override Gtk.Widget CreatePanelWidget () { Xwt.VBox box = new Xwt.VBox (); box.Spacing = 6; box.Margin = 12; disableVersionControl = new Xwt.CheckBox (GettextCatalog.GetString ("Disable Version Control for this solution")) { Active = VersionControlService.IsSolutionDisabled ((Solution)DataObject), }; box.PackStart (disableVersionControl); box.Show (); return box.ToGtkWidget (); }
public override Gtk.Widget CreatePanelWidget() { Xwt.VBox box = new Xwt.VBox(); box.Spacing = 6; box.Margin = 12; disableVersionControl = new Xwt.CheckBox(GettextCatalog.GetString("Disable Version Control globally")) { Active = VersionControlService.IsGloballyDisabled, }; box.PackStart(disableVersionControl); box.Show(); return(box.ToGtkWidget()); }
public override Control CreatePanelWidget() { Xwt.VBox box = new Xwt.VBox(); box.Spacing = 6; box.Margin = 12; disableVersionControl = new Xwt.CheckBox(GettextCatalog.GetString("Disable Version Control for this solution")) { Active = VersionControlService.IsSolutionDisabled((Solution)DataObject), }; box.PackStart(disableVersionControl); box.Show(); return(box.ToGtkWidget()); }
public AboutMonoDevelopTabPage () { BorderWidth = 0; using (var stream = BrandingService.GetStream ("AboutImage.png", true)) imageSep = new Pixbuf (stream); PackStart (new Gtk.Image (imageSep), false, false, 0); Xwt.VBox infoBox = new Xwt.VBox (); infoBox.Spacing = 6; infoBox.Margin = 12; PackStart (infoBox.ToGtkWidget (), false, false, 0); infoBox.PackStart (new Xwt.Label () { Text = GettextCatalog.GetString ("Version"), Font = infoBox.Font.WithWeight (Xwt.Drawing.FontWeight.Bold) }); infoBox.PackStart (new Xwt.Label () { Text = IdeVersionInfo.MonoDevelopVersion, MarginLeft = 12 }); infoBox.PackStart (new Xwt.Label () { Text = GettextCatalog.GetString ("License"), Font = infoBox.Font.WithWeight (Xwt.Drawing.FontWeight.Bold) }); infoBox.PackStart (new Xwt.Label () { Text = GettextCatalog.GetString ("Released under the GNU Lesser General Public License."), MarginLeft = 12 }); infoBox.PackStart (new Xwt.Label () { Text = GettextCatalog.GetString ("Copyright"), Font = infoBox.Font.WithWeight (Xwt.Drawing.FontWeight.Bold) }); var cbox = new Xwt.HBox () { Spacing = 0, MarginLeft = 12 }; cbox.PackStart (new Xwt.Label ("© 2011-2012 ")); cbox.PackStart (new Xwt.LinkLabel () { Text = string.Format ("Xamarin Inc."), Uri = new Uri ("http://www.xamarin.com") }); infoBox.PackStart (cbox); infoBox.PackStart (new Xwt.Label () { Text = "© 2004-2012 MonoDevelop contributors", MarginLeft = 12 }); cbox = new Xwt.HBox () { Spacing = 0, MarginLeft = 12 }; cbox.PackStart (new Xwt.Label ("Some icons by ")); cbox.PackStart (new Xwt.LinkLabel () { Text = string.Format ("Yusuke Kamiyamane"), Uri = new Uri ("http://p.yusukekamiyamane.com") }); infoBox.PackStart (cbox); cbox = new Xwt.HBox () { Spacing = 0, MarginLeft = 12 }; cbox.PackStart (new Xwt.Label ("Some icons from the ")); cbox.PackStart (new Xwt.LinkLabel () { Text = string.Format ("Silk icon set"), Uri = new Uri ("http://www.famfamfam.com/") }); infoBox.PackStart (cbox); this.ShowAll (); }
public AboutMonoDevelopTabPage() { BorderWidth = 0; using (var stream = BrandingService.GetStream("AboutImage.png", true)) imageSep = new Pixbuf(stream); PackStart(new Gtk.Image(imageSep), false, false, 0); Xwt.VBox infoBox = new Xwt.VBox(); infoBox.Spacing = 6; infoBox.Margin = 12; PackStart(infoBox.ToGtkWidget(), false, false, 0); infoBox.PackStart(new Xwt.Label() { Text = GettextCatalog.GetString("Version"), Font = infoBox.Font.WithWeight(Xwt.Drawing.FontWeight.Bold) }); infoBox.PackStart(new Xwt.Label() { Text = IdeVersionInfo.MonoDevelopVersion, MarginLeft = 12 }); infoBox.PackStart(new Xwt.Label() { Text = GettextCatalog.GetString("License"), Font = infoBox.Font.WithWeight(Xwt.Drawing.FontWeight.Bold) }); infoBox.PackStart(new Xwt.Label() { Text = GettextCatalog.GetString("Released under the GNU Lesser General Public License."), MarginLeft = 12 }); infoBox.PackStart(new Xwt.Label() { Text = GettextCatalog.GetString("Copyright"), Font = infoBox.Font.WithWeight(Xwt.Drawing.FontWeight.Bold) }); var cbox = new Xwt.HBox() { Spacing = 0, MarginLeft = 12 }; cbox.PackStart(new Xwt.Label("© 2011-2012 ")); cbox.PackStart(new Xwt.LinkLabel() { Text = string.Format("Xamarin Inc."), Uri = new Uri("http://www.xamarin.com") }); infoBox.PackStart(cbox); infoBox.PackStart(new Xwt.Label() { Text = "© 2004-2012 MonoDevelop contributors", MarginLeft = 12 }); cbox = new Xwt.HBox() { Spacing = 0, MarginLeft = 12 }; cbox.PackStart(new Xwt.Label("Some icons by ")); cbox.PackStart(new Xwt.LinkLabel() { Text = string.Format("Yusuke Kamiyamane"), Uri = new Uri("http://p.yusukekamiyamane.com") }); infoBox.PackStart(cbox); cbox = new Xwt.HBox() { Spacing = 0, MarginLeft = 12 }; cbox.PackStart(new Xwt.Label("Some icons from the ")); cbox.PackStart(new Xwt.LinkLabel() { Text = string.Format("Silk icon set"), Uri = new Uri("http://www.famfamfam.com/") }); infoBox.PackStart(cbox); this.ShowAll(); }