OSDN Git Service

7062cf9cda2d566961c7c6c9adc48ee41393e471
[qt-creator-jp/qt-creator-jp.git] / share / qtcreator / templates / wizards / helloworld / wizard_sample.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 /**************************************************************************
4 **
5 ** This file is part of Qt Creator
6 **
7 ** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
8 **
9 ** Contact: Nokia Corporation (qt-info@nokia.com)
10 **
11 ** No Commercial Usage
12 **
13 ** This file contains pre-release code and may not be distributed.
14 ** You may use this file in accordance with the terms and conditions
15 ** contained in the Technology Preview License Agreement accompanying
16 ** this package.
17 **
18 ** GNU Lesser General Public License Usage
19 **
20 ** Alternatively, this file may be used under the terms of the GNU Lesser
21 ** General Public License version 2.1 as published by the Free Software
22 ** Foundation and appearing in the file LICENSE.LGPL included in the
23 ** packaging of this file.  Please review the following information to
24 ** ensure the GNU Lesser General Public License version 2.1 requirements
25 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
26 **
27 ** In addition, as a special exception, Nokia gives you certain additional
28 ** rights.  These rights are described in the Nokia Qt LGPL Exception
29 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
30 **
31 ** If you have questions regarding the use of this file, please contact
32 ** Nokia at qt-info@nokia.com.
33 **
34 **************************************************************************/
35
36 Custom project wizard configuration example file. Note that by convention,
37 the project file goes last.
38 The "class" and "firstpage" attributes specify that it is a Qt 4 wizard and
39 leave room for the Qt 4 target page.
40 -->
41 <wizard version="1" kind="project"
42         class="qt4project" firstpage="10"
43         id="A.HelloWorld" category="B.CustomProjects">
44     <icon>console.png</icon>
45     <description>Creates a hello-world-project with custom message.</description>
46     <displayname>Hello World</displayname>;
47     <displaycategory>Custom Projects</displaycategory>
48     <files>
49         <file source="main.cpp" openeditor="true"/>
50         <file source="project.pro" target="%ProjectName%.pro" openproject="true"/>
51     </files>
52     <!-- Create a 2nd wizard page with parameters -->
53     <fieldpagetitle>Hello World Parameters</fieldpagetitle>
54     <fieldpagetitle xml:lang="de">Hallo Welt Parameter</fieldpagetitle>
55     <fields>
56         <field mandatory="true" name="MESSAGE">
57             <fieldcontrol class="QLineEdit" validator='^[^"]+$'
58                           defaulttext="Hello world from project  '%ProjectName:c%'!" />
59             <fielddescription>Hello world message:</fielddescription>
60             <fielddescription xml:lang="de">Hallo-Welt-Nachricht:</fielddescription>
61         </field>
62         <!-- Checkbox technique 1: Comment out network in profile according to user's wishes -->
63         <field name="NETWORK">
64             <fieldcontrol class="QCheckBox" truevalue="" falsevalue="# "/>
65             <fielddescription>Include network module</fielddescription>
66             <fielddescription xml:lang="de">Netzwerk-Modul verwenden</fielddescription>
67         </field>
68         <!-- Checkbox technique 2: Use preprocessor for profile according to user's wishes -->
69         <field name="SCRIPT">
70             <fieldcontrol class="QCheckBox"/>
71             <fielddescription>Include script module</fielddescription>
72             <fielddescription xml:lang="de">Script-Modul verwenden</fielddescription>
73         </field>
74     </fields>
75 </wizard>