1 <?xml version="1.0" encoding="UTF-8"?>
3 /**************************************************************************
5 ** This file is part of Qt Creator
7 ** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
9 ** Contact: Nokia Corporation (qt-info@nokia.com)
11 ** No Commercial Usage
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
18 ** GNU Lesser General Public License Usage
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.
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.
31 ** If you have questions regarding the use of this file, please contact
32 ** Nokia at qt-info@nokia.com.
34 **************************************************************************/
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.
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>
49 <file source="main.cpp" openeditor="true"/>
50 <file source="project.pro" target="%ProjectName%.pro" openproject="true"/>
52 <!-- Create a 2nd wizard page with parameters -->
53 <fieldpagetitle>Hello World Parameters</fieldpagetitle>
54 <fieldpagetitle xml:lang="de">Hallo Welt Parameter</fieldpagetitle>
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>
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>
68 <!-- Checkbox technique 2: Use preprocessor for profile according to user's wishes -->
70 <fieldcontrol class="QCheckBox"/>
71 <fielddescription>Include script module</fielddescription>
72 <fielddescription xml:lang="de">Script-Modul verwenden</fielddescription>