1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
<?xml version="1.0"?>
<Template originator = "Michael Hutchinson"
created = "2010/02/18"
lastModified = "2010/02/18">
<!-- Template Header -->
<TemplateConfiguration>
<_Name>MeeGo Gtk# Project</_Name>
<_Category>C#/MeeGo</_Category>
<Icon>md-project-gui</Icon>
<LanguageName>C#</LanguageName>
<_Description>A GTK# based project for MeeGo.</_Description>
</TemplateConfiguration>
<!-- Actions -->
<Actions>
<Open filename = "Main.cs"/>
</Actions>
<!-- Template Content -->
<Combine name = "${ProjectName}" directory = ".">
<Options>
<StartupProject>${ProjectName}</StartupProject>
</Options>
<Project name = "${ProjectName}" directory = "." type = "MeeGo">
<Options Target = "WinExe"/>
<References>
<Reference type="Gac" refto="System" />
<Reference type="Gac" refto="System.Xml" />
<Reference type="Gac" refto="System.Core" />
<Reference type="Gac" SpecificVersion="false" refto="gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
<Reference type="Gac" SpecificVersion="false" refto="gdk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
<Reference type="Gac" SpecificVersion="false" refto="glib-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
<Reference type="Gac" SpecificVersion="false" refto="pango-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
<Reference type="Gac" SpecificVersion="false" refto="atk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
</References>
<Files>
<!-- A window template -->
<Widget>
<SteticTemplate>
<widget class="Gtk.Window" id="${Namespace}.MainWindow" design-size="1024 600">
<property name="Title" translatable="yes">${Name}</property>
<property name="WindowPosition">CenterOnParent</property>
<signal name="DeleteEvent" handler="OnDeleteEvent" />
<child>
<placeholder />
</child>
</widget>
</SteticTemplate>
<!-- Class bound to the window -->
<File name="MainWindow.cs" AddStandardHeader="True">
<![CDATA[using System;
using Gtk;
namespace ${Namespace}
{
public partial class MainWindow: Gtk.Window
{
public MainWindow (): base (Gtk.WindowType.Toplevel)
{
Build ();
//your custom initialization code goes here
}
protected void OnDeleteEvent (object sender, DeleteEventArgs a)
{
Application.Quit ();
a.RetVal = true;
}
}
}]]>
</File>
</Widget>
<!-- The main class -->
<File name="Main.cs" AddStandardHeader="True">
<![CDATA[using System;
using Gtk;
namespace ${Namespace}
{
class MainClass
{
public static void Main (string[] args)
{
Application.Init ();
MainWindow win = new MainWindow ();
win.Show ();
Application.Run ();
}
}
}]]>
</File>
<FileTemplateReference TemplateID="CSharpAssemblyInfo" name="AssemblyInfo.cs" />
</Files>
</Project>
</Combine>
</Template>
|