<?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>
		<uidField id="uid3"
				label="%basics.uid3.label"
				min="0xfffffffffffffffffffff"
				max="0x01ffffff"
				mandatory="true"
				persist="true">
				<description>%basics.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>

	<wizardPage id="directories" label="%directories.label">
		<description>%directories.desc</description>
		<filenameField id="incDir"
				label="%directories.incDir.label"
	         	default="inc"
				mandatory="true"
				persist="true">
				<description>%directories.incDir.desc</description>
		</filenameField>
		<filenameField id="sourceDir"
				label="%directories.sourceDir.label"
				default="src"
				mandatory="true"
				persist="true">
				<description>%directories.sourceDir.desc</description>
		</filenameField>
		<filenameField id="groupDir"
				label="%directories.groupDir.label"
				default="group"
				mandatory="true"
				persist="true">
				<description>%directories.groupDir.desc</description>
		</filenameField>
		<filenameField id="dataDir"
				label="%directories.dataDir.label"
				default="data"
				mandatory="true"
				persist="true">
				<description>%directories.dataDir.desc</description>
		</filenameField>
		<filenameField id="aifDir"
				label="%directories.aifDir.label"
				default="aif"
				mandatory="true"
				persist="true">
				<description>%directories.aifDir.desc</description>
		</filenameField>
		<filenameField id="sisDir"
				label="%directories.sisDir.label"
				default="sis"
				mandatory="true"
				persist="true">
				<description>%directories.sisDir.desc</description>
		</filenameField>
	</wizardPage>
	
	<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.cpp.project.core.processes.CreateRezId"
	 	bundle="com.nokia.carbide.cpp.project.core">
		<parameter name="project" projectName="$(projectName)" /> 
	</process>

	<process class="com.nokia.carbide.templatewizard.processes.CreateFolders"
		bundle="com.nokia.carbide.templatewizard">
		<parameter name="project" projectName="$(projectName)" />
		
		<parameter name="folder" path="$(sourceDir)" /> 
		<parameter name="folder" path="$(incDir)" /> 
		<parameter name="folder" path="$(dataDir)" /> 
		<parameter name="folder" path="$(groupDir)" /> 
		<parameter name="folder" path="$(aifDir)" /> 
		<parameter name="folder" path="$(sisDir)" /> 
	</process>

	<process class="com.nokia.carbide.templatewizard.processes.CopyFiles" 
		bundle="com.nokia.carbide.templatewizard">
		<parameter name="project" projectName="$(projectName)" />
		
		<parameter name="file"
			sourcePath="aif/Basenameaif.rss" 
			targetPath="$(aifDir)/$(baseName)aif.rss" /> 
		<parameter name="file"
			sourcePath="aif/context_pane_icon.bmp" 
			targetPath="$(aifDir)/context_pane_icon.bmp" /> 
			substitute="false"
		<parameter name="file"
			sourcePath="aif/context_pane_icon_mask.bmp"
			targetPath="$(aifDir)/context_pane_icon_mask.bmp" /> 
			substitute="false"
		<parameter name="file"
			sourcePath="aif/list_icon.bmp" 
			targetPath="$(aifDir)/list_icon.bmp" /> 
			substitute="false"
		<parameter name="file"
			sourcePath="aif/list_icon_mask.bmp" 
			targetPath="$(aifDir)/list_icon_mask.bmp" /> 
			substitute="false"
		<parameter name="file"
			sourcePath="data/Basename.rss" 
			targetPath="$(dataDir)/$(baseName).rss" /> 
		<parameter name="file"
			sourcePath="data/Basename_caption.rss" 
			targetPath="$(dataDir)/$(baseName)_caption.rss" /> 
		<parameter name="file"
			sourcePath="group/bld.inf" 
			targetPath="$(groupDir)/bld.inf" /> 
		<parameter name="file"
			sourcePath="group/Basename.mmp" 
			targetPath="$(groupDir)/$(baseName).mmp" /> 
		<parameter name="file"
			sourcePath="inc/Basename.loc" 
			targetPath="$(incDir)/$(baseName).loc" /> 
		<parameter name="file"
			sourcePath="inc/BasenameApp.h" 
			targetPath="$(incDir)/$(baseName)App.h" /> 
		<parameter name="file"
			sourcePath="inc/BasenameAppUi.h" 
			targetPath="$(incDir)/$(baseName)AppUi.h" /> 
		<parameter name="file"
			sourcePath="inc/BasenameContainer.h" 
			targetPath="$(incDir)/$(baseName)Container.h" /> 
		<parameter name="file"
			sourcePath="inc/BasenameDocument.h" 
			targetPath="$(incDir)/$(baseName)Document.h" /> 
		<parameter name="file"
			sourcePath="inc/Basename.hrh" 
			targetPath="$(incDir)/$(baseName).hrh" /> 
		<parameter name="file"
			sourcePath="sis/Basename.pkg" 
			targetPath="$(sisDir)/$(baseName).pkg" /> 
		<parameter name="file"
			sourcePath="src/BasenameApp.cpp" 
			targetPath="$(sourceDir)/$(baseName)App.cpp" /> 
		<parameter name="file"
			sourcePath="src/BasenameAppUi.cpp" 
			targetPath="$(sourceDir)/$(baseName)AppUi.cpp" /> 
		<parameter name="file"
			sourcePath="src/BasenameContainer.cpp" 
			targetPath="$(sourceDir)/$(baseName)Container.cpp" /> 
		<parameter name="file"
			sourcePath="src/BasenameDocument.cpp" 
			targetPath="$(sourceDir)/$(baseName)Document.cpp" /> 
	</process>

	<process class="com.nokia.carbide.cpp.project.ui.processes.ProjectCreatedTasks"
	 	bundle="com.nokia.carbide.cpp.project.ui">
		<parameter name="project" projectName="$(projectName)"
			bldInfPath="$(groupDir)/bld.inf"
			targetMMPFileName="$(baseName).mmp" 
			pkgFilePath="$(sisDir)/$(baseName).pkg" /> 
	</process>

</template>
