2010-03-19 13:52:16 +01:00
<?xml version="1.0" encoding="UTF-8"?>
<!--
2012-10-02 09:12:39 +02:00
/****************************************************************************
2010-03-19 13:52:16 +01:00
**
2012-10-02 09:12:39 +02:00
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
2010-03-19 13:52:16 +01:00
**
2012-10-02 09:12:39 +02:00
** This file is part of Qt Creator.
2010-03-19 13:52:16 +01:00
**
2012-10-02 09:12:39 +02:00
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Digia. For licensing terms and
** conditions see http://qt.digia.com/licensing. For further information
** use the contact form at http://qt.digia.com/contact-us.
2010-03-19 13:52:16 +01:00
**
** GNU Lesser General Public License Usage
2012-10-02 09:12:39 +02:00
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Digia gives you certain additional
** rights. These rights are described in the Digia Qt LGPL Exception
2010-12-17 16:01:08 +01:00
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
2012-10-02 09:12:39 +02:00
****************************************************************************/
2010-03-19 13:52:16 +01:00
Custom project wizard configuration example file. Note that by convention,
the project file goes last.
The "class" and "firstpage" attributes specify that it is a Qt 4 wizard and
leave room for the Qt 4 target page.
-->
<wizard version= "1" kind= "project"
class="qt4project" firstpage="10"
2012-02-08 17:25:35 +01:00
id="QmlExtensionPlugin" category="G.Libraries"
2012-02-08 16:10:09 +01:00
featuresRequired="QtSupport.Wizards.FeatureQtQuick,QtSupport.Wizards.FeatureQtQuick.1">
2010-05-14 11:03:30 +02:00
<icon > lib.png</icon>
2010-08-05 16:54:04 +02:00
<description > Creates a C++ plugin that makes it possible to offer extensions that can be loaded dynamically into applications using the QDeclarativeEngine class.</description>
<displayname > Custom QML Extension Plugin</displayname>
2012-02-08 17:25:35 +01:00
<displaycategory > Libraries</displaycategory>
2010-03-19 13:52:16 +01:00
<files >
2010-04-08 10:51:44 +02:00
<file source= "qmldir" target= "qmldir" />
2010-09-28 11:55:30 +02:00
<file source= "plugin.h" target= "%ProjectName:l%_plugin.%CppHeaderSuffix%" />
<file source= "plugin.cpp" target= "%ProjectName:l%_plugin.%CppSourceSuffix%" />
2010-09-17 16:53:33 +02:00
<file source= "object.h" target= "%ObjectName:l%.%CppHeaderSuffix%" />
<file source= "object.cpp" target= "%ObjectName:l%.%CppSourceSuffix%" openeditor= "true" />
<file source= "project.pro" target= "%ProjectName:l%.pro" openproject= "true" />
2010-03-19 13:52:16 +01:00
</files>
<!-- Create a 2nd wizard page with parameters -->
2010-08-05 16:54:04 +02:00
<fieldpagetitle > Custom QML Extension Plugin Parameters</fieldpagetitle>
2010-03-19 13:52:16 +01:00
<fields >
2011-03-02 11:35:00 +01:00
<field mandatory= "true" name= "ObjectName" >
2010-09-28 11:55:30 +02:00
<fieldcontrol class= "QLineEdit" validator= '^[A-Za-z0-9_]+$' defaulttext= "MyItem" />
2010-09-28 10:57:38 +02:00
<fielddescription > Object Class-name:</fielddescription>
2010-03-19 13:52:16 +01:00
</field>
2011-03-02 11:35:00 +01:00
<field mandatory= "true" name= "Uri" >
2011-02-10 15:16:55 +01:00
<fieldcontrol class= "QLineEdit" validator= '^[A-Za-z0-9]+([A-Za-z0-9-]*[A-Za-z0-9]+)?(\.[A-Za-z0-9]+([-A-Za-z0-9]*[A-Za-z0-9]+)?)*$' defaulttext= "com.mycompany.qmlcomponents" />
<fielddescription > URI:</fielddescription>
</field>
2010-03-19 13:52:16 +01:00
</fields>
2010-09-28 10:57:38 +02:00
<validationrules >
2010-09-28 11:55:30 +02:00
<validationrule condition= '"%ObjectName%" != "%ProjectName%_plugin"' >
2010-09-28 10:57:38 +02:00
<message > The project name and the object class-name cannot be the same.</message>
</validationrule>
</validationrules>
2010-03-19 13:52:16 +01:00
</wizard>