project-wizard: bgo #707943 - Auto completion code when you click in the widget tree...
[anjuta.git] / plugins / project-wizard / templates / gtkapplication.wiz.in
blob29eb9015a08b6c47b18be510eab1afa7751d7891
1 <project-template>
2         <project-wizard>
3                 <_name>GTK+ (Application)</_name>
4                 <_description>Full features Gtk+ Application with file handling</_description>
5                 <icon>gtk-logo.png</icon>
6                 <category>C</category>
7                 <order>2</order>
8                 <required-program>automake</required-program>
9                 <required-program>autoconf</required-program>
10                 <required-program>make</required-program>
11                 <required-package>gtk+-3.0 >= 2.90.3</required-package>
12         </project-wizard>
13         
14         <page name="basic" _label="Basic information" _description="General Project Information">
15                 <property type="string" name="Name" _label="Project Name:" _description="project name" default="gtk-foobar" summary="yes" restriction="filename" mandatory="yes"/>
16                 <property type="string" name="Author" _label="Author:" _description="" default="[+UserName+]" mandatory="yes"/>
17                 <property type="string" name="Email" _label="Email address:" _description="" default="[+EmailAddress+]" mandatory="no"/>
18                 <property type="string" name="Version" _label="Version:" default="0.1" mandatory="yes"/>
19         </page>
20         
21         <page name="options" _label="Project options" _description="Options for project build system">
22                 <property type="directory" name="Destination" _label="Destination:" _description="" default='[+AnjutaProjectDirectory+]/[+(string-downcase (get "Name"))+]' mandatory="yes" exist="no" summary="yes"/>
23                 [+INCLUDE "licenses.tpl"+]
24                 <property type="hidden" name="NameUpper" default='[+(string-upcase (get "Name"))+]'/>
25                 <property type="hidden" name="NameLower" default='[+(string-downcase (get "Name"))+]'/>
26                 <property type="hidden" name="NameCUpper" default='[+(string-append (if (~~* (get "Name") "[0-9]") "_" "") (string->c-name! (string-substitute (string-upcase (get "Name")) " " "_")))+]'/>
27                 <property type="hidden" name="NameCLower" default='[+(string->c-name! (string-substitute (string-downcase (get "Name")) " " "_"))+]'/>
28                 <property type="hidden" name="NameHLower" default='[+(string-substitute (string->c-name! (string-downcase (get "Name"))) " " "-")+]'/>
29                 <property type="hidden" name="NameCClass" default='[+(string-capitalize! (string-substitute (get "Name") "-" ""))+]'/>
30                 <property type="hidden" name="HavePackage" default="1"/>
31                 <property type="hidden" name="PackageModule1" default="gtk+-3.0 >= 2.90.3"/>
32                 <property type="boolean" name="HaveLangCPP" _label="Add C++ support:" _description="Adds C++ support to the project so that C++ source files can be built" default="0"/>
33                 <property type="boolean" name="HaveI18n" _label="Add internationalization:" _description="Adds support for internationalization so that your project can have translations in different languages" default="1"/>
34                 <property type="boolean" name="HaveSharedlib" _label="Add shared library support:" _description="Adds support for building shared libraries in your project" default="1"/>
35                 <property type="boolean" name="HaveGtkDoc" _label="Add gtk-doc system:" _description="gtk-doc is used to compile API documentations for GObject based classes" default="0"/>
36                 <property type="boolean" name="HavePackageExtra" _label="Configure external packages:" _description="Use pkg-config to add library support from other packages" default="0"/>
37                 <property type="boolean" name="HaveBuilderUI" _label="Use GtkBuilder for user interface:" _description="Use GtkBuilder to create the user-interface in a graphical way and load it from xml files at runtime" default="1"/>
38                 <property type="boolean" name="HaveWindowsSupport" _label="Add Windows support:" _description="Adds support for building on Windows platforms" default="0"/>
39         </page>
40         
41         [+IF (=(get "HavePackageExtra") "1")+]
42         <page name="packages" _label="Configure external packages" _description="Configure external packages">
43                 <property type="package" name="PackageModule2" _label="Require Package:" _description="Give a package name that your project require. You may also mention what is the required version of the package. For example, 'libgnomeui-2.0' or 'libgnomeui-2.0 &gt;= 2.2.0'" mandatory="yes"/>
44         </page>
45         [+ENDIF+]
46         
47         <content>
48                 <directory source="terminal" destination="[+Destination+]">
49                         <file source="AUTHORS"/>
50                         <file source="ChangeLog"/>
51                         <file source="Makefile.am.tpl" destination="Makefile.am"/>
52                         <file source="NEWS"/>
53                         <file source="README"/>
54                         <file source="autogen.sh" executable="yes"/>
55                         <file source="configure.ac.tpl" destination="configure.ac"/>
56                         <file destination="[+NameHLower+].anjuta" source="project.anjuta"/>
57                         [+IF (=(get "HaveI18n") "1") +]
58                         <directory source="po">
59                                 <file source="ChangeLog"/>
60                                 <file source="POTFILES.in"/>
61                                 <file source="LINGUAS" />
62                         </directory>
63                         [+ENDIF+]
64                 </directory>
65                 <directory source="gtkapplication" destination="[+Destination+]">
66                         <directory source="src">
67                                 <file source="main.c"/>
68                                 <file source="application.h" destination="[+NameLower+].h"/>
69                                 <file source="application.c" destination="[+NameLower+].c"/>
70                 [+IF (=(get "HaveBuilderUI") "1")+]                             
71                                 <file source="project.ui" destination="[+NameHLower+].ui"/>
72                 [+ENDIF+]
73                                 <file source="Makefile.am.tpl" destination="Makefile.am"/>
74                         </directory>
75                 </directory>
76                 <directory source="licenses" destination="[+Destination+]">
77                         <file source="[+License+].txt" destination="COPYING"/>  
78                 </directory>
79                 <directory source="minimal" destination="[+Destination+]">
80                         <directory source="." destination=".anjuta">
81                                 <directory source="." destination="session">
82                                         <file source="anjuta.session"/>
83                                 </directory>
84                         </directory>
85                 </directory>
86         </content>
88         <action>
89                 <open file="[+Destination+]/[+NameHLower+].anjuta"/>
90         </action>
91 </project-template>