[Bug 8556] C-escape multi line copyright in#defines
authordadubrow
Wed, 24 Jun 2009 08:59:46 -0500
changeset 294 652205e6022b
parent 293 66f0aa64d141
child 296 ad429850197e
[Bug 8556] C-escape multi line copyright in#defines
core/com.nokia.carbide.templatewizard/src/com/nokia/carbide/templatewizard/processes/CopyFiles.java
templates/com.nokia.carbide.cpp.templates/templates/projecttemplates/S60-PlatsecApp/data/baseName.rls
templates/com.nokia.carbide.cpp.templates/templates/projecttemplates/S60-TouchUIApplication/data/baseName.rls
--- a/core/com.nokia.carbide.templatewizard/src/com/nokia/carbide/templatewizard/processes/CopyFiles.java	Wed Jun 24 08:09:39 2009 -0500
+++ b/core/com.nokia.carbide.templatewizard/src/com/nokia/carbide/templatewizard/processes/CopyFiles.java	Wed Jun 24 08:59:46 2009 -0500
@@ -49,6 +49,7 @@
 	protected static final String LOWER_SUFFIX = "$lower"; //$NON-NLS-1$
 	protected static final String TITLE_SUFFIX = "$title"; //$NON-NLS-1$
 	protected static final String TITLELOWER_SUFFIX = "$titlelower"; //$NON-NLS-1$
+	protected static final String C_ESCAPED_SUFFIX = "$c_escaped"; //$NON-NLS-1$
 	protected static final String SOURCE_PATH_ATTRIBUTE = "sourcePath"; //$NON-NLS-1$
 	protected static final String TARGET_PATH_ATTRIBUTE = "targetPath"; //$NON-NLS-1$
 	protected static final String SUBSTITUTE_ATTRIBUTE = "substitute"; //$NON-NLS-1$
@@ -110,6 +111,11 @@
 			public String convert(String value) {
 				return TextUtils.titleCase(value.toLowerCase());
 			}
+		}),
+		new SuffixOperator(C_ESCAPED_SUFFIX, new IConvert() {
+			public String convert(String value) {
+				return TextUtils.escape(value, '\"');
+			}
 		})
 	};
 	
--- a/templates/com.nokia.carbide.cpp.templates/templates/projecttemplates/S60-PlatsecApp/data/baseName.rls	Wed Jun 24 08:09:39 2009 -0500
+++ b/templates/com.nokia.carbide.cpp.templates/templates/projecttemplates/S60-PlatsecApp/data/baseName.rls	Wed Jun 24 08:59:46 2009 -0500
@@ -34,6 +34,6 @@
 
 #define qtn_about_dialog_title "About"
 
-#define qtn_about_dialog_text "$(baseName) Version 1.0.0\n\nAuthor: $(author)\n\nSupport: $(supportEmail)\n\n(c) $(copyright)"
+#define qtn_about_dialog_text "$(baseName) Version 1.0.0\n\nAuthor: $(author)\n\nSupport: $(supportEmail)\n\n(c) $(copyright$c_escaped)"
 
 // End of File
--- a/templates/com.nokia.carbide.cpp.templates/templates/projecttemplates/S60-TouchUIApplication/data/baseName.rls	Wed Jun 24 08:09:39 2009 -0500
+++ b/templates/com.nokia.carbide.cpp.templates/templates/projecttemplates/S60-TouchUIApplication/data/baseName.rls	Wed Jun 24 08:59:46 2009 -0500
@@ -34,6 +34,6 @@
 
 #define qtn_about_dialog_title "About"
 
-#define qtn_about_dialog_text "$(baseName) Version 1.0.0\n\nAuthor: $(author)\n\nSupport: $(supportEmail)\n\n(c) $(copyright)"
+#define qtn_about_dialog_text "$(baseName) Version 1.0.0\n\nAuthor: $(author)\n\nSupport: $(supportEmail)\n\n(c) $(copyright$c_escaped)"
 
 // End of File