OSDN Git Service

It's 2011 now.
[qt-creator-jp/qt-creator-jp.git] / share / qtcreator / templates / wizards / qtcreatorplugin / wizard.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="R.QtCreatorPlugin" category="I.Projects">
44     <icon>qtcreator_logo_24.png</icon>
45     <description>Creates a custom Qt Creator plugin.</description>
46     <displayname>Qt Creator plugin</displayname>;
47     <displaycategory>Other Project</displaycategory>
48     <files>
49         <file source="myplugin.pro" target="%PluginName:l%.pro" openproject="true"/>
50         <file source="MyPlugin.pluginspec.in" target="%PluginName%.pluginspec.in" openeditor="true"/>
51         <file source="myplugin_global.h" target="%PluginName:l%_global.%CppHeaderSuffix%" openeditor="true"/>
52         <file source="mypluginconstants.h" target="%PluginName:l%constants.%CppHeaderSuffix%" openeditor="true"/>
53         <file source="myplugin.h" target="%PluginName:l%plugin.%CppHeaderSuffix%" openeditor="true"/>
54         <file source="myplugin.cpp" target="%PluginName:l%plugin.%CppSourceSuffix%" openeditor="true"/>
55     </files>
56     <!-- Create a 2nd wizard page with parameters -->
57     <fieldpagetitle>Plugin Information</fieldpagetitle>
58     <fields>
59         <field mandatory="true" name="PluginName">
60             <fieldcontrol class="QLineEdit" validator="^[a-zA-Z0-9_]+$"
61                           defaulttext="MyPlugin" />
62             <fielddescription>Plugin name:</fielddescription>
63         </field>
64         <field mandatory="true" name="VendorName">
65             <fieldcontrol class="QLineEdit" validator="^[a-zA-Z0-9_]+$"
66                           defaulttext="MyCompany" />
67             <fielddescription>Vendor name:</fielddescription>
68         </field>
69         <field name="Copyright">
70             <fieldcontrol class="QLineEdit"
71                           defaulttext="(C) MyCompany" />
72             <fielddescription>Copyright:</fielddescription>
73         </field>
74         <field name="License">
75             <fieldcontrol class="QTextEdit"
76                           defaulttext="Put your license text here" />
77             <fielddescription>License:</fielddescription>
78         </field>
79         <field name="Description">
80             <fieldcontrol class="QTextEdit"
81                           defaulttext="Put a short description of your plugin here"/>
82             <fielddescription>Description:</fielddescription>
83         </field>
84         <field name="URL">
85             <fieldcontrol class="QLineEdit"
86                           defaulttext="http://www.mycompany.com" />
87             <fielddescription>Url:</fielddescription>
88         </field>
89         <field mandatory="true" name="QtCreatorSources">
90             <fieldcontrol class="Utils::PathChooser"
91                           defaulttext="" />
92             <fielddescription>Qt Creator sources:</fielddescription>
93         </field>
94         <field mandatory="true" name="QtCreatorBuild">
95             <fieldcontrol class="Utils::PathChooser"
96                           defaulttext="" />
97             <fielddescription>Qt Creator build:</fielddescription>
98         </field>
99     </fields>
100 </wizard>