Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/main/src
diff options
context:
space:
mode:
authorMatt Ward <matt.ward@xamarin.com>2015-07-15 16:49:34 +0300
committerMatt Ward <matt.ward@xamarin.com>2015-07-15 17:41:20 +0300
commitfc07a851df0073486284b76aae843aa1ae78b919 (patch)
tree3e0374de5653ccfca14b28e67562ea53a98a0cd6 /main/src
parentabd5b88930e2eab5f557a226fa089bc77ca7e285 (diff)
[AspNet] Update new project dialog wizard UI.
Add background image. Re-position check boxes vertically and horizontally. Add separator above testing check box.
Diffstat (limited to 'main/src')
-rw-r--r--main/src/addins/AspNet/MonoDevelop.AspNet.csproj13
-rw-r--r--main/src/addins/AspNet/Projects/AspNetProjectTemplateWizardPage.cs14
-rw-r--r--main/src/addins/AspNet/Projects/AspNetProjectTemplateWizardPageWidget.cs137
-rw-r--r--main/src/addins/AspNet/Projects/GtkAspNetProjectTemplateWizardPageWidget.cs130
-rw-r--r--main/src/addins/AspNet/Templates/images/aspnet-wizard-page.pngbin0 -> 75617 bytes
-rw-r--r--main/src/addins/AspNet/Templates/images/aspnet-wizard-page@2x.pngbin0 -> 201307 bytes
-rw-r--r--main/src/addins/AspNet/gtk-gui/MonoDevelop.AspNet.Projects.GtkAspNetProjectTemplateWizardPageWidget.cs454
-rw-r--r--main/src/addins/AspNet/gtk-gui/generated.cs83
-rw-r--r--main/src/addins/AspNet/gtk-gui/gui.stetic575
9 files changed, 1265 insertions, 141 deletions
diff --git a/main/src/addins/AspNet/MonoDevelop.AspNet.csproj b/main/src/addins/AspNet/MonoDevelop.AspNet.csproj
index 1362605fd1..ea37e399e9 100644
--- a/main/src/addins/AspNet/MonoDevelop.AspNet.csproj
+++ b/main/src/addins/AspNet/MonoDevelop.AspNet.csproj
@@ -177,6 +177,15 @@
<EmbeddedResource Include="Templates\images\aspnet-empty-project%402x.png">
<LogicalName>aspnet-empty-project@2x.png</LogicalName>
</EmbeddedResource>
+ <EmbeddedResource Include="gtk-gui\gui.stetic">
+ <LogicalName>gui.stetic</LogicalName>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Templates\images\aspnet-wizard-page.png">
+ <LogicalName>aspnet-wizard-page.png</LogicalName>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Templates\images\aspnet-wizard-page%402x.png">
+ <LogicalName>aspnet-wizard-page@2x.png</LogicalName>
+ </EmbeddedResource>
</ItemGroup>
<ItemGroup>
<Compile Include="Html\HtmlSchemaService.cs" />
@@ -301,9 +310,11 @@
<Compile Include="Razor\RazorPageInfo.cs" />
<Compile Include="WebForms\WebFormsTypeContext.cs" />
<Compile Include="Projects\AspNetProjectTemplateWizard.cs" />
- <Compile Include="Projects\AspNetProjectTemplateWizardPageWidget.cs" />
<Compile Include="Projects\AspNetProjectTemplateWizardPage.cs" />
<Compile Include="Projects\AspNetStringTagProvider.cs" />
+ <Compile Include="gtk-gui\generated.cs" />
+ <Compile Include="Projects\GtkAspNetProjectTemplateWizardPageWidget.cs" />
+ <Compile Include="gtk-gui\MonoDevelop.AspNet.Projects.GtkAspNetProjectTemplateWizardPageWidget.cs" />
</ItemGroup>
<ItemGroup>
<None Include="Makefile.am" />
diff --git a/main/src/addins/AspNet/Projects/AspNetProjectTemplateWizardPage.cs b/main/src/addins/AspNet/Projects/AspNetProjectTemplateWizardPage.cs
index 998491d468..b6a04bbc67 100644
--- a/main/src/addins/AspNet/Projects/AspNetProjectTemplateWizardPage.cs
+++ b/main/src/addins/AspNet/Projects/AspNetProjectTemplateWizardPage.cs
@@ -32,9 +32,9 @@ namespace MonoDevelop.AspNet.Projects
{
class AspNetProjectTemplateWizardPage : WizardPage
{
- readonly string title = GettextCatalog.GetString ("Web Project Options");
+ readonly string title = GettextCatalog.GetString ("Configure your Web project");
readonly AspNetProjectTemplateWizard wizard;
- AspNetProjectTemplateWizardPageWidget view;
+ GtkAspNetProjectTemplateWizardPageWidget view;
bool includeTestProject;
@@ -121,7 +121,15 @@ namespace MonoDevelop.AspNet.Projects
protected override object CreateNativeWidget ()
{
- return view ?? (view = new AspNetProjectTemplateWizardPageWidget (this));
+ return view ?? (view = new GtkAspNetProjectTemplateWizardPageWidget (this));
+ }
+
+ protected override void Dispose (bool disposing)
+ {
+ if (view != null) {
+ view.Dispose ();
+ view = null;
+ }
}
}
}
diff --git a/main/src/addins/AspNet/Projects/AspNetProjectTemplateWizardPageWidget.cs b/main/src/addins/AspNet/Projects/AspNetProjectTemplateWizardPageWidget.cs
deleted file mode 100644
index b494c58a7d..0000000000
--- a/main/src/addins/AspNet/Projects/AspNetProjectTemplateWizardPageWidget.cs
+++ /dev/null
@@ -1,137 +0,0 @@
-//
-// AspNetProjectTemplateWizardPageWidget.cs
-//
-// Author:
-// Michael Hutchinson <m.j.hutchinson@gmail.com>
-//
-// Copyright (c) 2015 Xamarin Inc.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-using Gtk;
-using Gdk;
-
-namespace MonoDevelop.AspNet.Projects
-{
- class AspNetProjectTemplateWizardPageWidget : HBox
- {
- readonly AspNetProjectTemplateWizardPage page;
-
- public AspNetProjectTemplateWizardPageWidget (AspNetProjectTemplateWizardPage page)
- {
- this.page = page;
-
- Build ();
-
- includeTestProjectCheck.Active = page.IncludeTestProject;
- }
-
- CheckButton includeTestProjectCheck;
- CheckButton includeMvcCheck;
- CheckButton includeWebFormsCheck;
- CheckButton includeWebApiCheck;
-
- void Build ()
- {
- var backgroundColor = new Color (225, 228, 232);
-
- var box = new VBox { BorderWidth = 12, Spacing = 12 };
- var eb = new EventBox { Child = box };
- eb.ModifyBg (StateType.Normal, backgroundColor);
- var infoEB = new EventBox { WidthRequest = 280 };
- infoEB.ModifyBg (StateType.Normal, new Color (255, 255, 255));
- PackStart (eb, true, true, 0);
- PackStart (infoEB, false, false, 0);
-
- var frameworkLabel = new Label ("Include references and folders for:") { Xalign = 0 };
- box.PackStart (frameworkLabel, false, false, 0);
- var frameworkBox = new VBox { Spacing = 6 };
- box.PackStart (new Alignment (0, 0, 0, 0) { LeftPadding = 24, Child = frameworkBox } , false, false, 0);
-
- if (page.AspNetMvcMutable || page.AspNetMvcEnabled) {
- includeMvcCheck = CreateFancyCheckButton (
- "MVC",
- "Modern programming model. Unit testable, choice of templating languages."
- );
- includeMvcCheck.Active = page.AspNetMvcEnabled;
- includeMvcCheck.Toggled += (sender, e) => {
- page.AspNetMvcEnabled = includeMvcCheck.Active;
- };
- includeMvcCheck.Sensitive = page.AspNetMvcMutable;
- frameworkBox.PackStart (includeMvcCheck, false, false, 0);
- }
-
- if (page.AspNetWebFormsMutable || page.AspNetWebFormsEnabled) {
- includeWebFormsCheck = CreateFancyCheckButton (
- "Web Forms",
- "Stateful programming model similar to desktop applications."
- );
- includeWebFormsCheck.Active = page.AspNetWebFormsEnabled;
- includeWebFormsCheck.Toggled += (sender, e) => {
- page.AspNetWebFormsEnabled = includeWebFormsCheck.Active;
- };
- includeWebFormsCheck.Sensitive = page.AspNetWebFormsMutable;
- frameworkBox.PackStart (includeWebFormsCheck, false, false, 0);
- }
-
- if (page.AspNetWebApiMutable || page.AspNetWebApiEnabled) {
- includeWebApiCheck = CreateFancyCheckButton (
- "Web API",
- "Framework for creating HTTP web services."
- );
- includeWebApiCheck.Active = page.AspNetWebApiEnabled;
- includeWebApiCheck.Toggled += (sender, e) => {
- page.AspNetWebApiEnabled = includeWebApiCheck.Active;
- };
- includeWebApiCheck.Sensitive = page.AspNetWebApiMutable;
- frameworkBox.PackStart (includeWebApiCheck, false, false, 0);
- }
-
- includeTestProjectCheck = CreateFancyCheckButton (
- "Include Unit Test Project",
- "Add a Unit Test Project for testing the Web Project using NUnit."
- );
- includeTestProjectCheck.Toggled += (sender, e) => {
- page.IncludeTestProject = includeTestProjectCheck.Active;
- };
-
- box.PackStart (includeTestProjectCheck, false, false, 0);
-
- ShowAll ();
- }
-
- static CheckButton CreateFancyCheckButton (string title, string detail)
- {
- var button = new CheckButton ();
- var box = new VBox { Spacing = 4 };
- var titleLabel = new Label {
- Markup = "<b>" + GLib.Markup.EscapeText (title) + "</b>",
- Xalign = 0
- };
- box.PackStart (titleLabel, false, false, 0);
- var detailLabel = new Label {
- Text = detail,
- Xalign = 0
- };
- box.PackStart (detailLabel, false, false, 0);
- button.Child = new Alignment (0, 0, 0, 0) { LeftPadding = 6, Child = box };
- return button;
- }
- }
-}
diff --git a/main/src/addins/AspNet/Projects/GtkAspNetProjectTemplateWizardPageWidget.cs b/main/src/addins/AspNet/Projects/GtkAspNetProjectTemplateWizardPageWidget.cs
new file mode 100644
index 0000000000..2d59d4b9a3
--- /dev/null
+++ b/main/src/addins/AspNet/Projects/GtkAspNetProjectTemplateWizardPageWidget.cs
@@ -0,0 +1,130 @@
+//
+// GtkAspNetProjectTemplateWizardPageWidget.cs
+//
+// Author:
+// Michael Hutchinson <m.j.hutchinson@gmail.com>
+// Matt Ward <matt.ward@xamarin.com>
+//
+// Copyright (c) 2015 Xamarin Inc. (http://xamarin.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+using System;
+using Gdk;
+using Gtk;
+using MonoDevelop.Components;
+
+namespace MonoDevelop.AspNet.Projects
+{
+ [System.ComponentModel.ToolboxItem (true)]
+ partial class GtkAspNetProjectTemplateWizardPageWidget : Gtk.Bin
+ {
+ Color backgroundColor = new Color (225, 228, 232);
+
+ AspNetProjectTemplateWizardPage wizardPage;
+ ImageView backgroundImageView;
+ Xwt.Drawing.Image backgroundImage;
+
+ public GtkAspNetProjectTemplateWizardPageWidget ()
+ {
+ this.Build ();
+
+ backgroundImage = Xwt.Drawing.Image.FromResource ("aspnet-wizard-page.png");
+ backgroundImageView = new ImageView (backgroundImage);
+ backgroundImageView.Xalign = 1;
+ backgroundImageView.Yalign = 1;
+ backgroundLargeImageVBox.PackStart (backgroundImageView, true, true, 0);
+
+ var separatorColor = new Color (176, 178, 181);
+ testingSeparator.ModifyBg (StateType.Normal, separatorColor);
+
+ leftBorderEventBox.ModifyBg (StateType.Normal, backgroundColor);
+ configurationTopEventBox.ModifyBg (StateType.Normal, backgroundColor);
+ configurationTableEventBox.ModifyBg (StateType.Normal, backgroundColor);
+ configurationBottomEventBox.ModifyBg (StateType.Normal, backgroundColor);
+ backgroundLargeImageEventBox.ModifyBg (StateType.Normal, backgroundColor);
+ }
+
+ public GtkAspNetProjectTemplateWizardPageWidget (AspNetProjectTemplateWizardPage wizardPage)
+ : this ()
+ {
+ WizardPage = wizardPage;
+ }
+
+ public override void Dispose ()
+ {
+ Dispose (backgroundImage);
+ }
+
+ void Dispose (IDisposable disposable)
+ {
+ if (disposable != null) {
+ disposable.Dispose ();
+ }
+ }
+
+ public AspNetProjectTemplateWizardPage WizardPage {
+ get { return wizardPage; }
+ set {
+ wizardPage = value;
+ LoadWizardPageInfo ();
+ }
+ }
+
+ void LoadWizardPageInfo ()
+ {
+ if (wizardPage.AspNetMvcMutable || wizardPage.AspNetMvcEnabled) {
+ includeMvcCheck.Active = wizardPage.AspNetMvcEnabled;
+ includeMvcCheck.Toggled += (sender, e) => {
+ wizardPage.AspNetMvcEnabled = includeMvcCheck.Active;
+ };
+ mvcVBox.Sensitive = wizardPage.AspNetMvcMutable;
+ }
+
+ if (wizardPage.AspNetWebFormsMutable || wizardPage.AspNetWebFormsEnabled) {
+ includeWebFormsCheck.Active = wizardPage.AspNetWebFormsEnabled;
+ includeWebFormsCheck.Toggled += (sender, e) => {
+ wizardPage.AspNetWebFormsEnabled = includeWebFormsCheck.Active;
+ };
+ webFormsVBox.Sensitive = wizardPage.AspNetWebFormsMutable;
+ } else {
+ RemoveFromTable (webFormsVBox);
+ }
+
+ if (wizardPage.AspNetWebApiMutable || wizardPage.AspNetWebApiEnabled) {
+ includeWebApiCheck.Active = wizardPage.AspNetWebApiEnabled;
+ includeWebApiCheck.Toggled += (sender, e) => {
+ wizardPage.AspNetWebApiEnabled = includeWebApiCheck.Active;
+ };
+ webApiVBox.Sensitive = wizardPage.AspNetWebApiMutable;
+ }
+
+ includeTestProjectCheck.Toggled += (sender, e) => {
+ wizardPage.IncludeTestProject = includeTestProjectCheck.Active;
+ };
+ }
+
+ void RemoveFromTable (Widget widget)
+ {
+ configurationTable.Remove (widget);
+ widget.Destroy ();
+ }
+ }
+}
+
diff --git a/main/src/addins/AspNet/Templates/images/aspnet-wizard-page.png b/main/src/addins/AspNet/Templates/images/aspnet-wizard-page.png
new file mode 100644
index 0000000000..87335c8079
--- /dev/null
+++ b/main/src/addins/AspNet/Templates/images/aspnet-wizard-page.png
Binary files differ
diff --git a/main/src/addins/AspNet/Templates/images/aspnet-wizard-page@2x.png b/main/src/addins/AspNet/Templates/images/aspnet-wizard-page@2x.png
new file mode 100644
index 0000000000..0601bbd8b9
--- /dev/null
+++ b/main/src/addins/AspNet/Templates/images/aspnet-wizard-page@2x.png
Binary files differ
diff --git a/main/src/addins/AspNet/gtk-gui/MonoDevelop.AspNet.Projects.GtkAspNetProjectTemplateWizardPageWidget.cs b/main/src/addins/AspNet/gtk-gui/MonoDevelop.AspNet.Projects.GtkAspNetProjectTemplateWizardPageWidget.cs
new file mode 100644
index 0000000000..1c1fca1d19
--- /dev/null
+++ b/main/src/addins/AspNet/gtk-gui/MonoDevelop.AspNet.Projects.GtkAspNetProjectTemplateWizardPageWidget.cs
@@ -0,0 +1,454 @@
+
+// This file has been generated by the GUI designer. Do not modify.
+namespace MonoDevelop.AspNet.Projects
+{
+ internal partial class GtkAspNetProjectTemplateWizardPageWidget
+ {
+ private global::Gtk.HBox mainHBox;
+
+ private global::Gtk.EventBox leftBorderEventBox;
+
+ private global::Gtk.VBox configurationVBox;
+
+ private global::Gtk.EventBox configurationTopEventBox;
+
+ private global::Gtk.EventBox configurationTableEventBox;
+
+ private global::Gtk.Table configurationTable;
+
+ private global::Gtk.VBox includeLabelVBox;
+
+ private global::Gtk.Label includeLabelPadding;
+
+ private global::Gtk.Label includeLabel;
+
+ private global::Gtk.VBox includeUnitTestProjectVBox;
+
+ private global::Gtk.CheckButton includeTestProjectCheck;
+
+ private global::Gtk.HBox includeUnitTestProjectDescriptionHBox;
+
+ private global::Gtk.Label includeUnitTestProjectDescriptionLeftHandPadding;
+
+ private global::Gtk.Label includeUnitTestProjectDescriptionLabel;
+
+ private global::Gtk.VBox mvcVBox;
+
+ private global::Gtk.CheckButton includeMvcCheck;
+
+ private global::Gtk.HBox mvcDescriptionHBox;
+
+ private global::Gtk.Label mvcDescriptionLeftHandPadding;
+
+ private global::Gtk.Label mvcDescriptionLabel;
+
+ private global::Gtk.Label paddingLabel;
+
+ private global::Gtk.VBox testingLabelVBox;
+
+ private global::Gtk.Label testingLabelPadding;
+
+ private global::Gtk.Label testingLabel;
+
+ private global::Gtk.DrawingArea testingSeparator;
+
+ private global::Gtk.VBox webApiVBox;
+
+ private global::Gtk.CheckButton includeWebApiCheck;
+
+ private global::Gtk.HBox webApiDescriptionHBox;
+
+ private global::Gtk.Label webApiDescriptionLeftHandPadding;
+
+ private global::Gtk.Label webApiDescriptionLabel;
+
+ private global::Gtk.VBox webFormsVBox;
+
+ private global::Gtk.CheckButton includeWebFormsCheck;
+
+ private global::Gtk.HBox webFormsDescriptionHBox;
+
+ private global::Gtk.Label webFormsDescriptionLeftHandPadding;
+
+ private global::Gtk.Label webFormsDescriptionLabel;
+
+ private global::Gtk.EventBox configurationBottomEventBox;
+
+ private global::Gtk.EventBox backgroundLargeImageEventBox;
+
+ private global::Gtk.VBox backgroundLargeImageVBox;
+
+ protected virtual void Build ()
+ {
+ global::Stetic.Gui.Initialize (this);
+ // Widget MonoDevelop.AspNet.Projects.GtkAspNetProjectTemplateWizardPageWidget
+ global::Stetic.BinContainer.Attach (this);
+ this.Name = "MonoDevelop.AspNet.Projects.GtkAspNetProjectTemplateWizardPageWidget";
+ // Container child MonoDevelop.AspNet.Projects.GtkAspNetProjectTemplateWizardPageWidget.Gtk.Container+ContainerChild
+ this.mainHBox = new global::Gtk.HBox ();
+ this.mainHBox.Name = "mainHBox";
+ // Container child mainHBox.Gtk.Box+BoxChild
+ this.leftBorderEventBox = new global::Gtk.EventBox ();
+ this.leftBorderEventBox.WidthRequest = 30;
+ this.leftBorderEventBox.Name = "leftBorderEventBox";
+ this.mainHBox.Add (this.leftBorderEventBox);
+ global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.mainHBox [this.leftBorderEventBox]));
+ w1.Position = 0;
+ w1.Expand = false;
+ // Container child mainHBox.Gtk.Box+BoxChild
+ this.configurationVBox = new global::Gtk.VBox ();
+ this.configurationVBox.WidthRequest = 440;
+ this.configurationVBox.Name = "configurationVBox";
+ // Container child configurationVBox.Gtk.Box+BoxChild
+ this.configurationTopEventBox = new global::Gtk.EventBox ();
+ this.configurationTopEventBox.Name = "configurationTopEventBox";
+ this.configurationVBox.Add (this.configurationTopEventBox);
+ global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.configurationVBox [this.configurationTopEventBox]));
+ w2.Position = 0;
+ // Container child configurationVBox.Gtk.Box+BoxChild
+ this.configurationTableEventBox = new global::Gtk.EventBox ();
+ this.configurationTableEventBox.Name = "configurationTableEventBox";
+ // Container child configurationTableEventBox.Gtk.Container+ContainerChild
+ this.configurationTable = new global::Gtk.Table (((uint)(6)), ((uint)(3)), false);
+ this.configurationTable.Name = "configurationTable";
+ this.configurationTable.RowSpacing = ((uint)(7));
+ this.configurationTable.ColumnSpacing = ((uint)(6));
+ // Container child configurationTable.Gtk.Table+TableChild
+ this.includeLabelVBox = new global::Gtk.VBox ();
+ this.includeLabelVBox.Name = "includeLabelVBox";
+ // Container child includeLabelVBox.Gtk.Box+BoxChild
+ this.includeLabelPadding = new global::Gtk.Label ();
+ this.includeLabelPadding.WidthRequest = 0;
+ this.includeLabelPadding.HeightRequest = 3;
+ this.includeLabelPadding.Name = "includeLabelPadding";
+ this.includeLabelVBox.Add (this.includeLabelPadding);
+ global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.includeLabelVBox [this.includeLabelPadding]));
+ w3.Position = 0;
+ w3.Expand = false;
+ w3.Fill = false;
+ // Container child includeLabelVBox.Gtk.Box+BoxChild
+ this.includeLabel = new global::Gtk.Label ();
+ this.includeLabel.Name = "includeLabel";
+ this.includeLabel.Xpad = 5;
+ this.includeLabel.Xalign = 1F;
+ this.includeLabel.Yalign = 0F;
+ this.includeLabel.LabelProp = global::Mono.Unix.Catalog.GetString ("Include:");
+ this.includeLabel.Justify = ((global::Gtk.Justification)(1));
+ this.includeLabelVBox.Add (this.includeLabel);
+ global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.includeLabelVBox [this.includeLabel]));
+ w4.Position = 1;
+ w4.Expand = false;
+ w4.Fill = false;
+ this.configurationTable.Add (this.includeLabelVBox);
+ global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.configurationTable [this.includeLabelVBox]));
+ w5.XOptions = ((global::Gtk.AttachOptions)(4));
+ w5.YOptions = ((global::Gtk.AttachOptions)(4));
+ // Container child configurationTable.Gtk.Table+TableChild
+ this.includeUnitTestProjectVBox = new global::Gtk.VBox ();
+ this.includeUnitTestProjectVBox.Name = "includeUnitTestProjectVBox";
+ // Container child includeUnitTestProjectVBox.Gtk.Box+BoxChild
+ this.includeTestProjectCheck = new global::Gtk.CheckButton ();
+ this.includeTestProjectCheck.CanFocus = true;
+ this.includeTestProjectCheck.Name = "includeTestProjectCheck";
+ this.includeTestProjectCheck.Label = global::Mono.Unix.Catalog.GetString ("Include Unit Test Project");
+ this.includeTestProjectCheck.Active = true;
+ this.includeTestProjectCheck.DrawIndicator = true;
+ this.includeTestProjectCheck.UseUnderline = true;
+ this.includeUnitTestProjectVBox.Add (this.includeTestProjectCheck);
+ global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.includeUnitTestProjectVBox [this.includeTestProjectCheck]));
+ w6.Position = 0;
+ w6.Expand = false;
+ w6.Fill = false;
+ // Container child includeUnitTestProjectVBox.Gtk.Box+BoxChild
+ this.includeUnitTestProjectDescriptionHBox = new global::Gtk.HBox ();
+ this.includeUnitTestProjectDescriptionHBox.Name = "includeUnitTestProjectDescriptionHBox";
+ // Container child includeUnitTestProjectDescriptionHBox.Gtk.Box+BoxChild
+ this.includeUnitTestProjectDescriptionLeftHandPadding = new global::Gtk.Label ();
+ this.includeUnitTestProjectDescriptionLeftHandPadding.WidthRequest = 21;
+ this.includeUnitTestProjectDescriptionLeftHandPadding.Name = "includeUnitTestProjectDescriptionLeftHandPadding";
+ this.includeUnitTestProjectDescriptionHBox.Add (this.includeUnitTestProjectDescriptionLeftHandPadding);
+ global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.includeUnitTestProjectDescriptionHBox [this.includeUnitTestProjectDescriptionLeftHandPadding]));
+ w7.Position = 0;
+ w7.Expand = false;
+ w7.Fill = false;
+ // Container child includeUnitTestProjectDescriptionHBox.Gtk.Box+BoxChild
+ this.includeUnitTestProjectDescriptionLabel = new global::Gtk.Label ();
+ this.includeUnitTestProjectDescriptionLabel.WidthRequest = 255;
+ this.includeUnitTestProjectDescriptionLabel.Name = "includeUnitTestProjectDescriptionLabel";
+ this.includeUnitTestProjectDescriptionLabel.Xalign = 0F;
+ this.includeUnitTestProjectDescriptionLabel.LabelProp = global::Mono.Unix.Catalog.GetString ("<span size=\'smaller\' color=\'grey\'>Add a Unit Test Project for testing the Web Pro" +
+ "ject using NUnit</span>");
+ this.includeUnitTestProjectDescriptionLabel.UseMarkup = true;
+ this.includeUnitTestProjectDescriptionLabel.Wrap = true;
+ this.includeUnitTestProjectDescriptionHBox.Add (this.includeUnitTestProjectDescriptionLabel);
+ global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.includeUnitTestProjectDescriptionHBox [this.includeUnitTestProjectDescriptionLabel]));
+ w8.Position = 1;
+ w8.Expand = false;
+ w8.Fill = false;
+ this.includeUnitTestProjectVBox.Add (this.includeUnitTestProjectDescriptionHBox);
+ global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.includeUnitTestProjectVBox [this.includeUnitTestProjectDescriptionHBox]));
+ w9.Position = 1;
+ w9.Expand = false;
+ w9.Fill = false;
+ this.configurationTable.Add (this.includeUnitTestProjectVBox);
+ global::Gtk.Table.TableChild w10 = ((global::Gtk.Table.TableChild)(this.configurationTable [this.includeUnitTestProjectVBox]));
+ w10.TopAttach = ((uint)(4));
+ w10.BottomAttach = ((uint)(5));
+ w10.LeftAttach = ((uint)(1));
+ w10.RightAttach = ((uint)(2));
+ w10.XOptions = ((global::Gtk.AttachOptions)(4));
+ w10.YOptions = ((global::Gtk.AttachOptions)(4));
+ // Container child configurationTable.Gtk.Table+TableChild
+ this.mvcVBox = new global::Gtk.VBox ();
+ this.mvcVBox.Name = "mvcVBox";
+ // Container child mvcVBox.Gtk.Box+BoxChild
+ this.includeMvcCheck = new global::Gtk.CheckButton ();
+ this.includeMvcCheck.CanFocus = true;
+ this.includeMvcCheck.Name = "includeMvcCheck";
+ this.includeMvcCheck.Label = global::Mono.Unix.Catalog.GetString ("MVC");
+ this.includeMvcCheck.Active = true;
+ this.includeMvcCheck.DrawIndicator = true;
+ this.includeMvcCheck.UseUnderline = true;
+ this.mvcVBox.Add (this.includeMvcCheck);
+ global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.mvcVBox [this.includeMvcCheck]));
+ w11.Position = 0;
+ w11.Expand = false;
+ w11.Fill = false;
+ // Container child mvcVBox.Gtk.Box+BoxChild
+ this.mvcDescriptionHBox = new global::Gtk.HBox ();
+ this.mvcDescriptionHBox.Name = "mvcDescriptionHBox";
+ // Container child mvcDescriptionHBox.Gtk.Box+BoxChild
+ this.mvcDescriptionLeftHandPadding = new global::Gtk.Label ();
+ this.mvcDescriptionLeftHandPadding.WidthRequest = 21;
+ this.mvcDescriptionLeftHandPadding.Name = "mvcDescriptionLeftHandPadding";
+ this.mvcDescriptionHBox.Add (this.mvcDescriptionLeftHandPadding);
+ global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(this.mvcDescriptionHBox [this.mvcDescriptionLeftHandPadding]));
+ w12.Position = 0;
+ w12.Expand = false;
+ w12.Fill = false;
+ // Container child mvcDescriptionHBox.Gtk.Box+BoxChild
+ this.mvcDescriptionLabel = new global::Gtk.Label ();
+ this.mvcDescriptionLabel.WidthRequest = 255;
+ this.mvcDescriptionLabel.Name = "mvcDescriptionLabel";
+ this.mvcDescriptionLabel.Xalign = 0F;
+ this.mvcDescriptionLabel.LabelProp = global::Mono.Unix.Catalog.GetString ("<span size=\'smaller\' color=\'grey\'>Modern programming model. Unit testable, choice" +
+ " of templating languages</span>");
+ this.mvcDescriptionLabel.UseMarkup = true;
+ this.mvcDescriptionLabel.Wrap = true;
+ this.mvcDescriptionHBox.Add (this.mvcDescriptionLabel);
+ global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.mvcDescriptionHBox [this.mvcDescriptionLabel]));
+ w13.Position = 1;
+ w13.Expand = false;
+ w13.Fill = false;
+ this.mvcVBox.Add (this.mvcDescriptionHBox);
+ global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(this.mvcVBox [this.mvcDescriptionHBox]));
+ w14.Position = 1;
+ w14.Expand = false;
+ w14.Fill = false;
+ this.configurationTable.Add (this.mvcVBox);
+ global::Gtk.Table.TableChild w15 = ((global::Gtk.Table.TableChild)(this.configurationTable [this.mvcVBox]));
+ w15.LeftAttach = ((uint)(1));
+ w15.RightAttach = ((uint)(2));
+ w15.XOptions = ((global::Gtk.AttachOptions)(4));
+ w15.YOptions = ((global::Gtk.AttachOptions)(4));
+ // Container child configurationTable.Gtk.Table+TableChild
+ this.paddingLabel = new global::Gtk.Label ();
+ this.paddingLabel.WidthRequest = 132;
+ this.paddingLabel.Name = "paddingLabel";
+ this.paddingLabel.Justify = ((global::Gtk.Justification)(1));
+ this.configurationTable.Add (this.paddingLabel);
+ global::Gtk.Table.TableChild w16 = ((global::Gtk.Table.TableChild)(this.configurationTable [this.paddingLabel]));
+ w16.TopAttach = ((uint)(5));
+ w16.BottomAttach = ((uint)(6));
+ w16.XOptions = ((global::Gtk.AttachOptions)(4));
+ w16.YOptions = ((global::Gtk.AttachOptions)(4));
+ // Container child configurationTable.Gtk.Table+TableChild
+ this.testingLabelVBox = new global::Gtk.VBox ();
+ this.testingLabelVBox.Name = "testingLabelVBox";
+ // Container child testingLabelVBox.Gtk.Box+BoxChild
+ this.testingLabelPadding = new global::Gtk.Label ();
+ this.testingLabelPadding.WidthRequest = 0;
+ this.testingLabelPadding.HeightRequest = 3;
+ this.testingLabelPadding.Name = "testingLabelPadding";
+ this.testingLabelVBox.Add (this.testingLabelPadding);
+ global::Gtk.Box.BoxChild w17 = ((global::Gtk.Box.BoxChild)(this.testingLabelVBox [this.testingLabelPadding]));
+ w17.Position = 0;
+ w17.Expand = false;
+ w17.Fill = false;
+ // Container child testingLabelVBox.Gtk.Box+BoxChild
+ this.testingLabel = new global::Gtk.Label ();
+ this.testingLabel.Name = "testingLabel";
+ this.testingLabel.Xpad = 5;
+ this.testingLabel.Xalign = 1F;
+ this.testingLabel.Yalign = 0F;
+ this.testingLabel.LabelProp = global::Mono.Unix.Catalog.GetString ("Testing:");
+ this.testingLabel.Justify = ((global::Gtk.Justification)(1));
+ this.testingLabelVBox.Add (this.testingLabel);
+ global::Gtk.Box.BoxChild w18 = ((global::Gtk.Box.BoxChild)(this.testingLabelVBox [this.testingLabel]));
+ w18.Position = 1;
+ w18.Expand = false;
+ w18.Fill = false;
+ this.configurationTable.Add (this.testingLabelVBox);
+ global::Gtk.Table.TableChild w19 = ((global::Gtk.Table.TableChild)(this.configurationTable [this.testingLabelVBox]));
+ w19.TopAttach = ((uint)(4));
+ w19.BottomAttach = ((uint)(5));
+ w19.XOptions = ((global::Gtk.AttachOptions)(4));
+ w19.YOptions = ((global::Gtk.AttachOptions)(4));
+ // Container child configurationTable.Gtk.Table+TableChild
+ this.testingSeparator = new global::Gtk.DrawingArea ();
+ this.testingSeparator.WidthRequest = 440;
+ this.testingSeparator.HeightRequest = 1;
+ this.testingSeparator.Name = "testingSeparator";
+ this.configurationTable.Add (this.testingSeparator);
+ global::Gtk.Table.TableChild w20 = ((global::Gtk.Table.TableChild)(this.configurationTable [this.testingSeparator]));
+ w20.TopAttach = ((uint)(3));
+ w20.BottomAttach = ((uint)(4));
+ w20.RightAttach = ((uint)(3));
+ w20.YPadding = ((uint)(10));
+ w20.XOptions = ((global::Gtk.AttachOptions)(4));
+ w20.YOptions = ((global::Gtk.AttachOptions)(0));
+ // Container child configurationTable.Gtk.Table+TableChild
+ this.webApiVBox = new global::Gtk.VBox ();
+ this.webApiVBox.Name = "webApiVBox";
+ // Container child webApiVBox.Gtk.Box+BoxChild
+ this.includeWebApiCheck = new global::Gtk.CheckButton ();
+ this.includeWebApiCheck.CanFocus = true;
+ this.includeWebApiCheck.Name = "includeWebApiCheck";
+ this.includeWebApiCheck.Label = global::Mono.Unix.Catalog.GetString ("Web API");
+ this.includeWebApiCheck.Active = true;
+ this.includeWebApiCheck.DrawIndicator = true;
+ this.includeWebApiCheck.UseUnderline = true;
+ this.webApiVBox.Add (this.includeWebApiCheck);
+ global::Gtk.Box.BoxChild w21 = ((global::Gtk.Box.BoxChild)(this.webApiVBox [this.includeWebApiCheck]));
+ w21.Position = 0;
+ w21.Expand = false;
+ w21.Fill = false;
+ // Container child webApiVBox.Gtk.Box+BoxChild
+ this.webApiDescriptionHBox = new global::Gtk.HBox ();
+ this.webApiDescriptionHBox.Name = "webApiDescriptionHBox";
+ // Container child webApiDescriptionHBox.Gtk.Box+BoxChild
+ this.webApiDescriptionLeftHandPadding = new global::Gtk.Label ();
+ this.webApiDescriptionLeftHandPadding.WidthRequest = 21;
+ this.webApiDescriptionLeftHandPadding.Name = "webApiDescriptionLeftHandPadding";
+ this.webApiDescriptionHBox.Add (this.webApiDescriptionLeftHandPadding);
+ global::Gtk.Box.BoxChild w22 = ((global::Gtk.Box.BoxChild)(this.webApiDescriptionHBox [this.webApiDescriptionLeftHandPadding]));
+ w22.Position = 0;
+ w22.Expand = false;
+ w22.Fill = false;
+ // Container child webApiDescriptionHBox.Gtk.Box+BoxChild
+ this.webApiDescriptionLabel = new global::Gtk.Label ();
+ this.webApiDescriptionLabel.WidthRequest = 255;
+ this.webApiDescriptionLabel.Name = "webApiDescriptionLabel";
+ this.webApiDescriptionLabel.Xalign = 0F;
+ this.webApiDescriptionLabel.LabelProp = global::Mono.Unix.Catalog.GetString ("<span size=\'smaller\' color=\'grey\'>Framework for creating HTTP web services</span>" +
+ "");
+ this.webApiDescriptionLabel.UseMarkup = true;
+ this.webApiDescriptionLabel.Wrap = true;
+ this.webApiDescriptionHBox.Add (this.webApiDescriptionLabel);
+ global::Gtk.Box.BoxChild w23 = ((global::Gtk.Box.BoxChild)(this.webApiDescriptionHBox [this.webApiDescriptionLabel]));
+ w23.Position = 1;
+ w23.Expand = false;
+ w23.Fill = false;
+ this.webApiVBox.Add (this.webApiDescriptionHBox);
+ global::Gtk.Box.BoxChild w24 = ((global::Gtk.Box.BoxChild)(this.webApiVBox [this.webApiDescriptionHBox]));
+ w24.Position = 1;
+ w24.Expand = false;
+ w24.Fill = false;
+ this.configurationTable.Add (this.webApiVBox);
+ global::Gtk.Table.TableChild w25 = ((global::Gtk.Table.TableChild)(this.configurationTable [this.webApiVBox]));
+ w25.TopAttach = ((uint)(2));
+ w25.BottomAttach = ((uint)(3));
+ w25.LeftAttach = ((uint)(1));
+ w25.RightAttach = ((uint)(2));
+ w25.XOptions = ((global::Gtk.AttachOptions)(4));
+ w25.YOptions = ((global::Gtk.AttachOptions)(4));
+ // Container child configurationTable.Gtk.Table+TableChild
+ this.webFormsVBox = new global::Gtk.VBox ();
+ this.webFormsVBox.Name = "webFormsVBox";
+ // Container child webFormsVBox.Gtk.Box+BoxChild
+ this.includeWebFormsCheck = new global::Gtk.CheckButton ();
+ this.includeWebFormsCheck.CanFocus = true;
+ this.includeWebFormsCheck.Name = "includeWebFormsCheck";
+ this.includeWebFormsCheck.Label = global::Mono.Unix.Catalog.GetString ("Web Forms");
+ this.includeWebFormsCheck.Active = true;
+ this.includeWebFormsCheck.DrawIndicator = true;
+ this.includeWebFormsCheck.UseUnderline = true;
+ this.webFormsVBox.Add (this.includeWebFormsCheck);
+ global::Gtk.Box.BoxChild w26 = ((global::Gtk.Box.BoxChild)(this.webFormsVBox [this.includeWebFormsCheck]));
+ w26.Position = 0;
+ w26.Expand = false;
+ w26.Fill = false;
+ // Container child webFormsVBox.Gtk.Box+BoxChild
+ this.webFormsDescriptionHBox = new global::Gtk.HBox ();
+ this.webFormsDescriptionHBox.Name = "webFormsDescriptionHBox";
+ // Container child webFormsDescriptionHBox.Gtk.Box+BoxChild
+ this.webFormsDescriptionLeftHandPadding = new global::Gtk.Label ();
+ this.webFormsDescriptionLeftHandPadding.WidthRequest = 21;
+ this.webFormsDescriptionLeftHandPadding.Name = "webFormsDescriptionLeftHandPadding";
+ this.webFormsDescriptionHBox.Add (this.webFormsDescriptionLeftHandPadding);
+ global::Gtk.Box.BoxChild w27 = ((global::Gtk.Box.BoxChild)(this.webFormsDescriptionHBox [this.webFormsDescriptionLeftHandPadding]));
+ w27.Position = 0;
+ w27.Expand = false;
+ w27.Fill = false;
+ // Container child webFormsDescriptionHBox.Gtk.Box+BoxChild
+ this.webFormsDescriptionLabel = new global::Gtk.Label ();
+ this.webFormsDescriptionLabel.WidthRequest = 255;
+ this.webFormsDescriptionLabel.Name = "webFormsDescriptionLabel";
+ this.webFormsDescriptionLabel.Xalign = 0F;
+ this.webFormsDescriptionLabel.LabelProp = global::Mono.Unix.Catalog.GetString ("<span size=\'smaller\' color=\'grey\'>Stateful programming model similar to desktop a" +
+ "pplications</span>");
+ this.webFormsDescriptionLabel.UseMarkup = true;
+ this.webFormsDescriptionLabel.Wrap = true;
+ this.webFormsDescriptionHBox.Add (this.webFormsDescriptionLabel);
+ global::Gtk.Box.BoxChild w28 = ((global::Gtk.Box.BoxChild)(this.webFormsDescriptionHBox [this.webFormsDescriptionLabel]));
+ w28.Position = 1;
+ w28.Expand = false;
+ w28.Fill = false;
+ this.webFormsVBox.Add (this.webFormsDescriptionHBox);
+ global::Gtk.Box.BoxChild w29 = ((global::Gtk.Box.BoxChild)(this.webFormsVBox [this.webFormsDescriptionHBox]));
+ w29.Position = 1;
+ w29.Expand = false;
+ w29.Fill = false;
+ this.configurationTable.Add (this.webFormsVBox);
+ global::Gtk.Table.TableChild w30 = ((global::Gtk.Table.TableChild)(this.configurationTable [this.webFormsVBox]));
+ w30.TopAttach = ((uint)(1));
+ w30.BottomAttach = ((uint)(2));
+ w30.LeftAttach = ((uint)(1));
+ w30.RightAttach = ((uint)(2));
+ w30.XOptions = ((global::Gtk.AttachOptions)(4));
+ w30.YOptions = ((global::Gtk.AttachOptions)(4));
+ this.configurationTableEventBox.Add (this.configurationTable);
+ this.configurationVBox.Add (this.configurationTableEventBox);
+ global::Gtk.Box.BoxChild w32 = ((global::Gtk.Box.BoxChild)(this.configurationVBox [this.configurationTableEventBox]));
+ w32.Position = 1;
+ w32.Expand = false;
+ w32.Fill = false;
+ // Container child configurationVBox.Gtk.Box+BoxChild
+ this.configurationBottomEventBox = new global::Gtk.EventBox ();
+ this.configurationBottomEventBox.Name = "configurationBottomEventBox";
+ this.configurationVBox.Add (this.configurationBottomEventBox);
+ global::Gtk.Box.BoxChild w33 = ((global::Gtk.Box.BoxChild)(this.configurationVBox [this.configurationBottomEventBox]));
+ w33.Position = 2;
+ this.mainHBox.Add (this.configurationVBox);
+ global::Gtk.Box.BoxChild w34 = ((global::Gtk.Box.BoxChild)(this.mainHBox [this.configurationVBox]));
+ w34.Position = 1;
+ w34.Expand = false;
+ w34.Fill = false;
+ // Container child mainHBox.Gtk.Box+BoxChild
+ this.backgroundLargeImageEventBox = new global::Gtk.EventBox ();
+ this.backgroundLargeImageEventBox.Name = "backgroundLargeImageEventBox";
+ // Container child backgroundLargeImageEventBox.Gtk.Container+ContainerChild
+ this.backgroundLargeImageVBox = new global::Gtk.VBox ();
+ this.backgroundLargeImageVBox.Name = "backgroundLargeImageVBox";
+ this.backgroundLargeImageEventBox.Add (this.backgroundLargeImageVBox);
+ this.mainHBox.Add (this.backgroundLargeImageEventBox);
+ global::Gtk.Box.BoxChild w36 = ((global::Gtk.Box.BoxChild)(this.mainHBox [this.backgroundLargeImageEventBox]));
+ w36.Position = 2;
+ this.Add (this.mainHBox);
+ if ((this.Child != null)) {
+ this.Child.ShowAll ();
+ }
+ this.Hide ();
+ }
+ }
+}
diff --git a/main/src/addins/AspNet/gtk-gui/generated.cs b/main/src/addins/AspNet/gtk-gui/generated.cs
new file mode 100644
index 0000000000..97249fd82d
--- /dev/null
+++ b/main/src/addins/AspNet/gtk-gui/generated.cs
@@ -0,0 +1,83 @@
+
+// This file has been generated by the GUI designer. Do not modify.
+namespace Stetic
+{
+ internal class Gui
+ {
+ private static bool initialized;
+
+ internal static void Initialize (Gtk.Widget iconRenderer)
+ {
+ if ((Stetic.Gui.initialized == false)) {
+ Stetic.Gui.initialized = true;
+ }
+ }
+ }
+
+ internal class BinContainer
+ {
+ private Gtk.Widget child;
+
+ private Gtk.UIManager uimanager;
+
+ public static BinContainer Attach (Gtk.Bin bin)
+ {
+ BinContainer bc = new BinContainer ();
+ bin.SizeRequested += new Gtk.SizeRequestedHandler (bc.OnSizeRequested);
+ bin.SizeAllocated += new Gtk.SizeAllocatedHandler (bc.OnSizeAllocated);
+ bin.Added += new Gtk.AddedHandler (bc.OnAdded);
+ return bc;
+ }
+
+ private void OnSizeRequested (object sender, Gtk.SizeRequestedArgs args)
+ {
+ if ((this.child != null)) {
+ args.Requisition = this.child.SizeRequest ();
+ }
+ }
+
+ private void OnSizeAllocated (object sender, Gtk.SizeAllocatedArgs args)
+ {
+ if ((this.child != null)) {
+ this.child.Allocation = args.Allocation;
+ }
+ }
+
+ private void OnAdded (object sender, Gtk.AddedArgs args)
+ {
+ this.child = args.Widget;
+ }
+
+ public void SetUiManager (Gtk.UIManager uim)
+ {
+ this.uimanager = uim;
+ this.child.Realized += new System.EventHandler (this.OnRealized);
+ }
+
+ private void OnRealized (object sender, System.EventArgs args)
+ {
+ if ((this.uimanager != null)) {
+ Gtk.Widget w;
+ w = this.child.Toplevel;
+ if (((w != null)
+ && typeof(Gtk.Window).IsInstanceOfType (w))) {
+ ((Gtk.Window)(w)).AddAccelGroup (this.uimanager.AccelGroup);
+ this.uimanager = null;
+ }
+ }
+ }
+ }
+
+ internal class ActionGroups
+ {
+ public static Gtk.ActionGroup GetActionGroup (System.Type type)
+ {
+ return Stetic.ActionGroups.GetActionGroup (type.FullName);
+ }
+
+ public static Gtk.ActionGroup GetActionGroup (string name)
+ {
+ return null;
+ }
+ }
+}
diff --git a/main/src/addins/AspNet/gtk-gui/gui.stetic b/main/src/addins/AspNet/gtk-gui/gui.stetic
new file mode 100644
index 0000000000..f1125be1ca
--- /dev/null
+++ b/main/src/addins/AspNet/gtk-gui/gui.stetic
@@ -0,0 +1,575 @@
+<?xml version="1.0" encoding="utf-8"?>
+<stetic-interface>
+ <configuration>
+ <images-root-path>..</images-root-path>
+ <target-gtk-version>2.12</target-gtk-version>
+ </configuration>
+ <import>
+ <widget-library name="../../../../build/bin/MonoDevelop.Ide.dll" />
+ <widget-library name="../../../../build/AddIns/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.dll" />
+ <widget-library name="../../../../build/bin/Mono.TextEditor.dll" />
+ <widget-library name="../../../../build/AddIns/MonoDevelop.Refactoring/MonoDevelop.Refactoring.dll" />
+ <widget-library name="../../../../build/AddIns/DisplayBindings/SourceEditor/MonoDevelop.SourceEditor2.dll" />
+ <widget-library name="../../../../build/AddIns/MonoDevelop.Debugger/MonoDevelop.Debugger.dll" />
+ <widget-library name="../../../../build/AddIns/MonoDevelop.TextTemplating/MonoDevelop.TextTemplating.dll" />
+ <widget-library name="../../../../build/AddIns/Xml/MonoDevelop.Xml.dll" />
+ <widget-library name="../../../../build/AddIns/AspNet/MonoDevelop.AspNet.dll" internal="true" />
+ </import>
+ <widget class="Gtk.Bin" id="MonoDevelop.AspNet.Projects.GtkAspNetProjectTemplateWizardPageWidget" design-size="644 395">
+ <property name="MemberName" />
+ <property name="Visible">False</property>
+ <property name="GeneratePublic">False</property>
+ <child>
+ <widget class="Gtk.HBox" id="mainHBox">
+ <property name="MemberName" />
+ <child>
+ <widget class="Gtk.EventBox" id="leftBorderEventBox">
+ <property name="MemberName" />
+ <property name="WidthRequest">30</property>
+ <child>
+ <placeholder />
+ </child>
+ </widget>
+ <packing>
+ <property name="Position">0</property>
+ <property name="AutoSize">False</property>
+ <property name="Expand">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.VBox" id="configurationVBox">
+ <property name="MemberName" />
+ <property name="WidthRequest">440</property>
+ <child>
+ <widget class="Gtk.EventBox" id="configurationTopEventBox">
+ <property name="MemberName" />
+ <child>
+ <placeholder />
+ </child>
+ </widget>
+ <packing>
+ <property name="Position">0</property>
+ <property name="AutoSize">True</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.EventBox" id="configurationTableEventBox">
+ <property name="MemberName" />
+ <child>
+ <widget class="Gtk.Table" id="configurationTable">
+ <property name="MemberName" />
+ <property name="NRows">6</property>
+ <property name="NColumns">3</property>
+ <property name="RowSpacing">7</property>
+ <property name="ColumnSpacing">6</property>
+ <child>
+ <placeholder />
+ </child>
+ <child>
+ <placeholder />
+ </child>
+ <child>
+ <placeholder />
+ </child>
+ <child>
+ <placeholder />
+ </child>
+ <child>
+ <placeholder />
+ </child>
+ <child>
+ <placeholder />
+ </child>
+ <child>
+ <placeholder />
+ </child>
+ <child>
+ <placeholder />
+ </child>
+ <child>
+ <widget class="Gtk.VBox" id="includeLabelVBox">
+ <property name="MemberName" />
+ <child>
+ <widget class="Gtk.Label" id="includeLabelPadding">
+ <property name="MemberName" />
+ <property name="WidthRequest">0</property>
+ <property name="HeightRequest">3</property>
+ </widget>
+ <packing>
+ <property name="Position">0</property>
+ <property name="AutoSize">False</property>
+ <property name="Expand">False</property>
+ <property name="Fill">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.Label" id="includeLabel">
+ <property name="MemberName" />
+ <property name="Xpad">5</property>
+ <property name="Xalign">1</property>
+ <property name="Yalign">0</property>
+ <property name="LabelProp" translatable="yes">Include:</property>
+ <property name="Justify">Right</property>
+ </widget>
+ <packing>
+ <property name="Position">1</property>
+ <property name="AutoSize">True</property>
+ <property name="Expand">False</property>
+ <property name="Fill">False</property>
+ </packing>
+ </child>
+ </widget>
+ <packing>
+ <property name="AutoSize">True</property>
+ <property name="XOptions">Fill</property>
+ <property name="YOptions">Fill</property>
+ <property name="XExpand">False</property>
+ <property name="XFill">True</property>
+ <property name="XShrink">False</property>
+ <property name="YExpand">False</property>
+ <property name="YFill">True</property>
+ <property name="YShrink">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.VBox" id="includeUnitTestProjectVBox">
+ <property name="MemberName" />
+ <child>
+ <widget class="Gtk.CheckButton" id="includeTestProjectCheck">
+ <property name="MemberName" />
+ <property name="CanFocus">True</property>
+ <property name="Label" translatable="yes">Include Unit Test Project</property>
+ <property name="Active">True</property>
+ <property name="DrawIndicator">True</property>
+ <property name="HasLabel">True</property>
+ <property name="UseUnderline">True</property>
+ </widget>
+ <packing>
+ <property name="Position">0</property>
+ <property name="AutoSize">True</property>
+ <property name="Expand">False</property>
+ <property name="Fill">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.HBox" id="includeUnitTestProjectDescriptionHBox">
+ <property name="MemberName" />
+ <child>
+ <widget class="Gtk.Label" id="includeUnitTestProjectDescriptionLeftHandPadding">
+ <property name="MemberName" />
+ <property name="WidthRequest">21</property>
+ </widget>
+ <packing>
+ <property name="Position">0</property>
+ <property name="AutoSize">True</property>
+ <property name="Expand">False</property>
+ <property name="Fill">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.Label" id="includeUnitTestProjectDescriptionLabel">
+ <property name="MemberName" />
+ <property name="WidthRequest">255</property>
+ <property name="Xalign">0</property>
+ <property name="LabelProp" translatable="yes">&lt;span size='smaller' color='grey'&gt;Add a Unit Test Project for testing the Web Project using NUnit&lt;/span&gt;</property>
+ <property name="UseMarkup">True</property>
+ <property name="Wrap">True</property>
+ </widget>
+ <packing>
+ <property name="Position">1</property>
+ <property name="AutoSize">True</property>
+ <property name="Expand">False</property>
+ <property name="Fill">False</property>
+ </packing>
+ </child>
+ </widget>
+ <packing>
+ <property name="Position">1</property>
+ <property name="AutoSize">True</property>
+ <property name="Expand">False</property>
+ <property name="Fill">False</property>
+ </packing>
+ </child>
+ </widget>
+ <packing>
+ <property name="TopAttach">4</property>
+ <property name="BottomAttach">5</property>
+ <property name="LeftAttach">1</property>
+ <property name="RightAttach">2</property>
+ <property name="AutoSize">True</property>
+ <property name="XOptions">Fill</property>
+ <property name="YOptions">Fill</property>
+ <property name="XExpand">False</property>
+ <property name="XFill">True</property>
+ <property name="XShrink">False</property>
+ <property name="YExpand">False</property>
+ <property name="YFill">True</property>
+ <property name="YShrink">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.VBox" id="mvcVBox">
+ <property name="MemberName" />
+ <child>
+ <widget class="Gtk.CheckButton" id="includeMvcCheck">
+ <property name="MemberName" />
+ <property name="CanFocus">True</property>
+ <property name="Label" translatable="yes">MVC</property>
+ <property name="Active">True</property>
+ <property name="DrawIndicator">True</property>
+ <property name="HasLabel">True</property>
+ <property name="UseUnderline">True</property>
+ </widget>
+ <packing>
+ <property name="Position">0</property>
+ <property name="AutoSize">True</property>
+ <property name="Expand">False</property>
+ <property name="Fill">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.HBox" id="mvcDescriptionHBox">
+ <property name="MemberName" />
+ <child>
+ <widget class="Gtk.Label" id="mvcDescriptionLeftHandPadding">
+ <property name="MemberName" />
+ <property name="WidthRequest">21</property>
+ </widget>
+ <packing>
+ <property name="Position">0</property>
+ <property name="AutoSize">True</property>
+ <property name="Expand">False</property>
+ <property name="Fill">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.Label" id="mvcDescriptionLabel">
+ <property name="MemberName" />
+ <property name="WidthRequest">255</property>
+ <property name="Xalign">0</property>
+ <property name="LabelProp" translatable="yes">&lt;span size='smaller' color='grey'&gt;Modern programming model. Unit testable, choice of templating languages&lt;/span&gt;</property>
+ <property name="UseMarkup">True</property>
+ <property name="Wrap">True</property>
+ </widget>
+ <packing>
+ <property name="Position">1</property>
+ <property name="AutoSize">True</property>
+ <property name="Expand">False</property>
+ <property name="Fill">False</property>
+ </packing>
+ </child>
+ </widget>
+ <packing>
+ <property name="Position">1</property>
+ <property name="AutoSize">True</property>
+ <property name="Expand">False</property>
+ <property name="Fill">False</property>
+ </packing>
+ </child>
+ </widget>
+ <packing>
+ <property name="LeftAttach">1</property>
+ <property name="RightAttach">2</property>
+ <property name="AutoSize">True</property>
+ <property name="XOptions">Fill</property>
+ <property name="YOptions">Fill</property>
+ <property name="XExpand">False</property>
+ <property name="XFill">True</property>
+ <property name="XShrink">False</property>
+ <property name="YExpand">False</property>
+ <property name="YFill">True</property>
+ <property name="YShrink">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.Label" id="paddingLabel">
+ <property name="MemberName" />
+ <property name="WidthRequest">132</property>
+ <property name="Justify">Right</property>
+ </widget>
+ <packing>
+ <property name="TopAttach">5</property>
+ <property name="BottomAttach">6</property>
+ <property name="AutoSize">True</property>
+ <property name="XOptions">Fill</property>
+ <property name="YOptions">Fill</property>
+ <property name="XExpand">False</property>
+ <property name="XFill">True</property>
+ <property name="XShrink">False</property>
+ <property name="YExpand">False</property>
+ <property name="YFill">True</property>
+ <property name="YShrink">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.VBox" id="testingLabelVBox">
+ <property name="MemberName" />
+ <child>
+ <widget class="Gtk.Label" id="testingLabelPadding">
+ <property name="MemberName" />
+ <property name="WidthRequest">0</property>
+ <property name="HeightRequest">3</property>
+ </widget>
+ <packing>
+ <property name="Position">0</property>
+ <property name="AutoSize">False</property>
+ <property name="Expand">False</property>
+ <property name="Fill">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.Label" id="testingLabel">
+ <property name="MemberName" />
+ <property name="Xpad">5</property>
+ <property name="Xalign">1</property>
+ <property name="Yalign">0</property>
+ <property name="LabelProp" translatable="yes">Testing:</property>
+ <property name="Justify">Right</property>
+ </widget>
+ <packing>
+ <property name="Position">1</property>
+ <property name="AutoSize">True</property>
+ <property name="Expand">False</property>
+ <property name="Fill">False</property>
+ </packing>
+ </child>
+ </widget>
+ <packing>
+ <property name="TopAttach">4</property>
+ <property name="BottomAttach">5</property>
+ <property name="AutoSize">True</property>
+ <property name="XOptions">Fill</property>
+ <property name="YOptions">Fill</property>
+ <property name="XExpand">False</property>
+ <property name="XFill">True</property>
+ <property name="XShrink">False</property>
+ <property name="YExpand">False</property>
+ <property name="YFill">True</property>
+ <property name="YShrink">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.DrawingArea" id="testingSeparator">
+ <property name="MemberName" />
+ <property name="WidthRequest">440</property>
+ <property name="HeightRequest">1</property>
+ </widget>
+ <packing>
+ <property name="TopAttach">3</property>
+ <property name="BottomAttach">4</property>
+ <property name="RightAttach">3</property>
+ <property name="YPadding">10</property>
+ <property name="AutoSize">False</property>
+ <property name="XOptions">Fill</property>
+ <property name="YOptions">0</property>
+ <property name="XExpand">False</property>
+ <property name="XFill">True</property>
+ <property name="XShrink">False</property>
+ <property name="YExpand">False</property>
+ <property name="YFill">False</property>
+ <property name="YShrink">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.VBox" id="webApiVBox">
+ <property name="MemberName" />
+ <child>
+ <widget class="Gtk.CheckButton" id="includeWebApiCheck">
+ <property name="MemberName" />
+ <property name="CanFocus">True</property>
+ <property name="Label" translatable="yes">Web API</property>
+ <property name="Active">True</property>
+ <property name="DrawIndicator">True</property>
+ <property name="HasLabel">True</property>
+ <property name="UseUnderline">True</property>
+ </widget>
+ <packing>
+ <property name="Position">0</property>
+ <property name="AutoSize">True</property>
+ <property name="Expand">False</property>
+ <property name="Fill">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.HBox" id="webApiDescriptionHBox">
+ <property name="MemberName" />
+ <child>
+ <widget class="Gtk.Label" id="webApiDescriptionLeftHandPadding">
+ <property name="MemberName" />
+ <property name="WidthRequest">21</property>
+ </widget>
+ <packing>
+ <property name="Position">0</property>
+ <property name="AutoSize">True</property>
+ <property name="Expand">False</property>
+ <property name="Fill">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.Label" id="webApiDescriptionLabel">
+ <property name="MemberName" />
+ <property name="WidthRequest">255</property>
+ <property name="Xalign">0</property>
+ <property name="LabelProp" translatable="yes">&lt;span size='smaller' color='grey'&gt;Framework for creating HTTP web services&lt;/span&gt;</property>
+ <property name="UseMarkup">True</property>
+ <property name="Wrap">True</property>
+ </widget>
+ <packing>
+ <property name="Position">1</property>
+ <property name="AutoSize">True</property>
+ <property name="Expand">False</property>
+ <property name="Fill">False</property>
+ </packing>
+ </child>
+ </widget>
+ <packing>
+ <property name="Position">1</property>
+ <property name="AutoSize">True</property>
+ <property name="Expand">False</property>
+ <property name="Fill">False</property>
+ </packing>
+ </child>
+ </widget>
+ <packing>
+ <property name="TopAttach">2</property>
+ <property name="BottomAttach">3</property>
+ <property name="LeftAttach">1</property>
+ <property name="RightAttach">2</property>
+ <property name="AutoSize">True</property>
+ <property name="XOptions">Fill</property>
+ <property name="YOptions">Fill</property>
+ <property name="XExpand">False</property>
+ <property name="XFill">True</property>
+ <property name="XShrink">False</property>
+ <property name="YExpand">False</property>
+ <property name="YFill">True</property>
+ <property name="YShrink">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.VBox" id="webFormsVBox">
+ <property name="MemberName" />
+ <child>
+ <widget class="Gtk.CheckButton" id="includeWebFormsCheck">
+ <property name="MemberName" />
+ <property name="CanFocus">True</property>
+ <property name="Label" translatable="yes">Web Forms</property>
+ <property name="Active">True</property>
+ <property name="DrawIndicator">True</property>
+ <property name="HasLabel">True</property>
+ <property name="UseUnderline">True</property>
+ </widget>
+ <packing>
+ <property name="Position">0</property>
+ <property name="AutoSize">True</property>
+ <property name="Expand">False</property>
+ <property name="Fill">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.HBox" id="webFormsDescriptionHBox">
+ <property name="MemberName" />
+ <child>
+ <widget class="Gtk.Label" id="webFormsDescriptionLeftHandPadding">
+ <property name="MemberName" />
+ <property name="WidthRequest">21</property>
+ </widget>
+ <packing>
+ <property name="Position">0</property>
+ <property name="AutoSize">True</property>
+ <property name="Expand">False</property>
+ <property name="Fill">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.Label" id="webFormsDescriptionLabel">
+ <property name="MemberName" />
+ <property name="WidthRequest">255</property>
+ <property name="Xalign">0</property>
+ <property name="LabelProp" translatable="yes">&lt;span size='smaller' color='grey'&gt;Stateful programming model similar to desktop applications&lt;/span&gt;</property>
+ <property name="UseMarkup">True</property>
+ <property name="Wrap">True</property>
+ </widget>
+ <packing>
+ <property name="Position">1</property>
+ <property name="AutoSize">True</property>
+ <property name="Expand">False</property>
+ <property name="Fill">False</property>
+ </packing>
+ </child>
+ </widget>
+ <packing>
+ <property name="Position">1</property>
+ <property name="AutoSize">True</property>
+ <property name="Expand">False</property>
+ <property name="Fill">False</property>
+ </packing>
+ </child>
+ </widget>
+ <packing>
+ <property name="TopAttach">1</property>
+ <property name="BottomAttach">2</property>
+ <property name="LeftAttach">1</property>
+ <property name="RightAttach">2</property>
+ <property name="AutoSize">True</property>
+ <property name="XOptions">Fill</property>
+ <property name="YOptions">Fill</property>
+ <property name="XExpand">False</property>
+ <property name="XFill">True</property>
+ <property name="XShrink">False</property>
+ <property name="YExpand">False</property>
+ <property name="YFill">True</property>
+ <property name="YShrink">False</property>
+ </packing>
+ </child>
+ </widget>
+ </child>
+ </widget>
+ <packing>
+ <property name="Position">1</property>
+ <property name="AutoSize">True</property>
+ <property name="Expand">False</property>
+ <property name="Fill">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.EventBox" id="configurationBottomEventBox">
+ <property name="MemberName" />
+ <child>
+ <placeholder />
+ </child>
+ </widget>
+ <packing>
+ <property name="Position">2</property>
+ <property name="AutoSize">True</property>
+ </packing>
+ </child>
+ </widget>
+ <packing>
+ <property name="Position">1</property>
+ <property name="AutoSize">True</property>
+ <property name="Expand">False</property>
+ <property name="Fill">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.EventBox" id="backgroundLargeImageEventBox">
+ <property name="MemberName" />
+ <child>
+ <widget class="Gtk.VBox" id="backgroundLargeImageVBox">
+ <property name="MemberName" />
+ <child>
+ <placeholder />
+ </child>
+ </widget>
+ </child>
+ </widget>
+ <packing>
+ <property name="Position">2</property>
+ <property name="AutoSize">False</property>
+ </packing>
+ </child>
+ </widget>
+ </child>
+ </widget>
+</stetic-interface> \ No newline at end of file