mail-archives/monodevelop-patches-list/2004-March/000753.html

249 строки
10 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Monodevelop-patches-list] r1147 - trunk/MonoDevelop/build/data/templates/project/CSharp
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:monodevelop-patches-list%40lists.ximian.com?Subject=%5BMonodevelop-patches-list%5D%20r1147%20-%20trunk/MonoDevelop/build/data/templates/project/CSharp&In-Reply-To=">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="000752.html">
<LINK REL="Next" HREF="000754.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Monodevelop-patches-list] r1147 - trunk/MonoDevelop/build/data/templates/project/CSharp</H1>
<B>commit-watcher at mono-cvs.ximian.com</B>
<A HREF="mailto:monodevelop-patches-list%40lists.ximian.com?Subject=%5BMonodevelop-patches-list%5D%20r1147%20-%20trunk/MonoDevelop/build/data/templates/project/CSharp&In-Reply-To="
TITLE="[Monodevelop-patches-list] r1147 - trunk/MonoDevelop/build/data/templates/project/CSharp">commit-watcher at mono-cvs.ximian.com
</A><BR>
<I>Thu Mar 11 16:19:19 EST 2004</I>
<P><UL>
<LI>Previous message: <A HREF="000752.html">[Monodevelop-patches-list] r1146 - trunk/MonoDevelop/build/data/templates/project/CSharp
</A></li>
<LI>Next message: <A HREF="000754.html">[Monodevelop-patches-list] r1148 - in trunk/MonoDevelop: build/data/templates/project/CSharp src/Main/Base/Gui/Pads/HelpBrowser src/Main/Base/Internal/Templates/ProjectTemplates
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#753">[ date ]</a>
<a href="thread.html#753">[ thread ]</a>
<a href="subject.html#753">[ subject ]</a>
<a href="author.html#753">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Author: edasque
Date: 2004-03-11 16:19:19 -0500 (Thu, 11 Mar 2004)
New Revision: 1147
Added:
trunk/MonoDevelop/build/data/templates/project/CSharp/GladeSharpProject.xpt
Modified:
trunk/MonoDevelop/build/data/templates/project/CSharp/Makefile.am
Log:
Commited the new GladeSharp project template
Added: trunk/MonoDevelop/build/data/templates/project/CSharp/GladeSharpProject.xpt
===================================================================
--- trunk/MonoDevelop/build/data/templates/project/CSharp/GladeSharpProject.xpt 2004-03-11 21:02:30 UTC (rev 1146)
+++ trunk/MonoDevelop/build/data/templates/project/CSharp/GladeSharpProject.xpt 2004-03-11 21:19:19 UTC (rev 1147)
@@ -0,0 +1,160 @@
+&lt;?xml version=&quot;1.0&quot;?&gt;
+&lt;Template originator = &quot;Erik Dasque&quot;
+ created = &quot;03/10/2004&quot;
+ lastModified = &quot;03/11/2004&quot;&gt;
+
+ &lt;!-- Template Header --&gt;
+ &lt;TemplateConfiguration&gt;
+ &lt;Name&gt;GladeSharp Project&lt;/Name&gt;
+ &lt;Category&gt;C#&lt;/Category&gt;
+ &lt;Icon&gt;C#.Project.Form&lt;/Icon&gt;
+ &lt;LanguageName&gt;C#&lt;/LanguageName&gt;
+ &lt;Description&gt;a Glade# project with one window and button&lt;/Description&gt;
+ &lt;/TemplateConfiguration&gt;
+
+ &lt;!-- Actions --&gt;
+ &lt;Actions&gt;
+ &lt;Open filename = &quot;Main.cs&quot;/&gt;
+ &lt;/Actions&gt;
+
+ &lt;!-- Template Content --&gt;
+ &lt;Combine name = &quot;${ProjectName}&quot; directory = &quot;.&quot;&gt;
+ &lt;Options&gt;
+ &lt;StartupProject&gt;${ProjectName}&lt;/StartupProject&gt;
+ &lt;/Options&gt;
+
+ &lt;Project name = &quot;${ProjectName}&quot; directory = &quot;.&quot;&gt;
+ &lt;Options/&gt;
+
+ &lt;References&gt;
+ &lt;Reference type=&quot;Gac&quot; refto=&quot;gtk-sharp.dll&quot; /&gt;
+ &lt;Reference type=&quot;Gac&quot; refto=&quot;gdk-sharp.dll&quot; /&gt;
+ &lt;Reference type=&quot;Gac&quot; refto=&quot;glib-sharp.dll&quot; /&gt;
+ &lt;Reference type=&quot;Gac&quot; refto=&quot;glade-sharp.dll&quot; /&gt;
+ &lt;Reference type=&quot;Gac&quot; refto=&quot;pango-sharp.dll&quot; /&gt;
+ &lt;Reference type=&quot;Gac&quot; refto=&quot;System.Drawing.dll&quot; /&gt;
+ &lt;Reference type=&quot;Gac&quot; refto=&quot;glade-sharp.dll&quot; /&gt;
+ &lt;/References&gt;
+
+ &lt;Files&gt;
+ &lt;File name=&quot;Main.cs&quot;&gt;
+&lt;![CDATA[// project created on ${Date} at ${Time}
+ using System;
+ using Gtk;
+ using Glade;
+ using GtkSharp;
+
+ public class GladeTest
+ {
+ public static void Main (string[] args)
+ {
+ new GladeTest(args);
+ }
+
+ /* If you want to access the glade objects you have to &quot;import&quot; them.
+ * This is not required, but else you can only work with the
+ * pre-defined signal handlers */
+ [Glade.Widget]
+ Button button1;
+
+ public GladeTest (string[] args)
+ {
+ Application.Init();
+
+ /* This loads the glade file glade.glade,
+ * selects window1 and connects it to the current object,
+ * which is the class GladeTest here. */
+ Glade.XML gxml = new Glade.XML (null,&quot;file.glade&quot;, &quot;window1&quot;, null);
+ gxml.Autoconnect (this);
+
+ button1.BorderWidth=10;
+
+ Application.Run();
+ }
+
+ /* Connect the Signals defined in Glade */
+ public void OnWindowDeleteEvent (object o, DeleteEventArgs args)
+ {
+ Application.Quit ();
+ args.RetVal = true;
+ }
+
+ public void OnButtonClickedEvent (System.Object obj, EventArgs e)
+ {
+ Console.WriteLine (&quot;Word !&quot;);
+ }
+ }
+
+]]&gt;
+&lt;/File&gt;
+&lt;File name=&quot;file.glade&quot;&gt;&lt;![CDATA[&lt;?xml version=&quot;1.0&quot; standalone=&quot;no&quot;?&gt; &lt;!--*- mode: xml -*--&gt;
+&lt;!DOCTYPE glade-interface SYSTEM &quot;<A HREF="http://glade.gnome.org/glade-2.0.dtd&quot;">http://glade.gnome.org/glade-2.0.dtd&quot;</A>&gt;
+
+&lt;glade-interface&gt;
+&lt;requires lib=&quot;gnome&quot;/&gt;
+
+&lt;widget class=&quot;GtkWindow&quot; id=&quot;window1&quot;&gt;
+ &lt;property name=&quot;visible&quot;&gt;True&lt;/property&gt;
+ &lt;property name=&quot;title&quot; translatable=&quot;yes&quot;&gt;Glade Window&lt;/property&gt;
+ &lt;property name=&quot;window_position&quot;&gt;GTK_WIN_POS_CENTER&lt;/property&gt;
+ &lt;property name=&quot;modal&quot;&gt;False&lt;/property&gt;
+ &lt;property name=&quot;default_width&quot;&gt;256&lt;/property&gt;
+ &lt;property name=&quot;default_height&quot;&gt;256&lt;/property&gt;
+ &lt;property name=&quot;type&quot;&gt;GTK_WINDOW_TOPLEVEL&lt;/property&gt;
+ &lt;property name=&quot;resizable&quot;&gt;True&lt;/property&gt;
+ &lt;property name=&quot;destroy_with_parent&quot;&gt;False&lt;/property&gt;
+ &lt;signal name=&quot;delete_event&quot; handler=&quot;OnWindowDeleteEvent&quot; last_modification_time=&quot;${Date} ${Time}&quot;/&gt;
+
+ &lt;child&gt;
+ &lt;widget class=&quot;GtkButton&quot; id=&quot;button1&quot;&gt;
+ &lt;property name=&quot;visible&quot;&gt;True&lt;/property&gt;
+ &lt;property name=&quot;can_focus&quot;&gt;True&lt;/property&gt;
+ &lt;property name=&quot;label&quot; translatable=&quot;yes&quot;&gt;Hello !&lt;/property&gt;
+ &lt;property name=&quot;use_underline&quot;&gt;True&lt;/property&gt;
+ &lt;property name=&quot;relief&quot;&gt;GTK_RELIEF_NORMAL&lt;/property&gt;
+ &lt;signal name=&quot;clicked&quot; handler=&quot;OnButtonClickedEvent&quot; last_modification_time=&quot;${Date} ${Time}&quot;/&gt;
+ &lt;/widget&gt;
+ &lt;/child&gt;
+&lt;/widget&gt;
+
+&lt;/glade-interface&gt;
+
+]]&gt;&lt;/File&gt;
+
+ &lt;File name=&quot;AssemblyInfo.cs&quot;&gt;&lt;![CDATA[using System.Reflection;
+using System.Runtime.CompilerServices;
+
+// Information about this assembly is defined by the following
+// attributes.
+//
+// change them to the information which is associated with the assembly
+// you compile.
+
+[assembly: AssemblyTitle(&quot;&quot;)]
+[assembly: AssemblyDescription(&quot;&quot;)]
+[assembly: AssemblyConfiguration(&quot;&quot;)]
+[assembly: AssemblyCompany(&quot;&quot;)]
+[assembly: AssemblyProduct(&quot;&quot;)]
+[assembly: AssemblyCopyright(&quot;&quot;)]
+[assembly: AssemblyTrademark(&quot;&quot;)]
+[assembly: AssemblyCulture(&quot;&quot;)]
+
+// The assembly version has following format :
+//
+// Major.Minor.Build.Revision
+//
+// You can specify all values by your own or you can build default build and revision
+// numbers with the '*' character (the default):
+
+[assembly: AssemblyVersion(&quot;1.0.*&quot;)]
+
+// The following attributes specify the key for the sign of your assembly. See the
+// .NET Framework documentation for more information about signing.
+// This is not required, if you don't want signing let these attributes like they're.
+[assembly: AssemblyDelaySign(false)]
+[assembly: AssemblyKeyFile(&quot;&quot;)]
+]]&gt;&lt;/File&gt;
+ &lt;/Files&gt;
+ &lt;/Project&gt;
+ &lt;/Combine&gt;
+&lt;/Template&gt;
Modified: trunk/MonoDevelop/build/data/templates/project/CSharp/Makefile.am
===================================================================
--- trunk/MonoDevelop/build/data/templates/project/CSharp/Makefile.am 2004-03-11 21:02:30 UTC (rev 1146)
+++ trunk/MonoDevelop/build/data/templates/project/CSharp/Makefile.am 2004-03-11 21:19:19 UTC (rev 1147)
@@ -7,6 +7,7 @@
Library.xpt \
EmptyProject.xpt \
GtkSharpProject.xpt \
+ GladeSharpProject.xpt \
Service.xpt
all:
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="000752.html">[Monodevelop-patches-list] r1146 - trunk/MonoDevelop/build/data/templates/project/CSharp
</A></li>
<LI>Next message: <A HREF="000754.html">[Monodevelop-patches-list] r1148 - in trunk/MonoDevelop: build/data/templates/project/CSharp src/Main/Base/Gui/Pads/HelpBrowser src/Main/Base/Internal/Templates/ProjectTemplates
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#753">[ date ]</a>
<a href="thread.html#753">[ thread ]</a>
<a href="subject.html#753">[ subject ]</a>
<a href="author.html#753">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/monodevelop-patches-list">More information about the Monodevelop-patches-list
mailing list</a><br>
</body></html>