templates/com.nokia.carbide.cpp.qt.templates/templates/Qt-GUI-MainWindow/template.xml
author Chad Peckham <chad.peckham@nokia.com>
Thu, 15 Apr 2010 17:59:16 -0500
changeset 1223 10a0a5ba7be1
parent 440 5ed5c63152e8
child 1461 77206107f66a
permissions -rw-r--r--
Fix for bug 10878

<?xml version="1.0" encoding="ISO-8859-1"?>
<template 
	version="1.0" 
	label="%template.label">
	<description>%template.desc</description>

	<wizardPage 
		id="basics" 
		label="%basics.label">
		<description>%basics.desc</description>
		<filenameField 
				id="className"
				label="%className.label"
				mandatory="true"
				default="$(baseName)">
				<description>%className.desc</description>
		</filenameField>
		<uidField 
				id="uid3"
				label="%uid3.label"
				min="0xe0000000"
				max="0xefffffff"
				mandatory="true"
				persist="true">
				<description>%uid3.desc</description>
		</uidField>
		<textField 
				id="author"
				label="%basics.author.label"
				persist="true">
				<description>%basics.author.desc</description>
		</textField>
		<textField 
				id="copyright"
				label="%basics.copyright.label"
				multiline="true"
				default="Your copyright notice"
				persist="true">
				<description>%basics.copyright.desc</description>
		</textField>
	</wizardPage>

	<process class="com.nokia.carbide.templatewizard.processes.CreateTemplateVariable"
	 		bundle="com.nokia.carbide.templatewizard">
		<parameter name="variable" variableName="parentClass" value="QMainWindow" /> 
	</process>

	<process class="com.nokia.carbide.cpp.project.core.processes.NewProject"
	 		bundle="com.nokia.carbide.cpp.project.core">
		<parameter name="project" projectName="$(projectName)" /> 
	</process>

	<process class="com.nokia.carbide.templatewizard.processes.CopyFiles"
	 	bundle="com.nokia.carbide.templatewizard">
		<parameter name="project" projectName="$(projectName)" />

		<parameter name="file"
			sourcePath="../Qt-GUI-Common/main.cpp"
			targetPath="main.cpp"
			/>
		<parameter name="file"
			sourcePath="../Qt-GUI-Common/Basename.cpp"
			targetPath="$(className).cpp"
			/>
		<parameter name="file"
			sourcePath="../Qt-GUI-Common/Basename.h"
			targetPath="$(className).h"
			/>
		<parameter name="file"
			sourcePath="../Qt-GUI-Common/Basename.pro"
			targetPath="$(baseName).pro"
			/>
		<parameter name="file"
			sourcePath="../Qt-GUI-Common/Basename_reg.rss"
			targetPath="$(baseName)_reg.rss"
			/>
		<parameter name="file"
			sourcePath="QMainWindow.ui"
			targetPath="$(baseName).ui"
			/>
	</process>

	<process class="com.nokia.carbide.cpp.internal.qt.ui.processes.ProjectCreatedTasksQt"
	 	bundle="com.nokia.carbide.cpp.qt.ui">
		<parameter name="project" projectName="$(projectName)"
			proFilePath="$(baseName).pro"
			bldInfPath="bld.inf"
			targetMMPFileName="" /> 
	</process>

</template>