# HG changeset patch # User dadubrow # Date 1245851986 18000 # Node ID 652205e6022bdc4c577fb5f1e5cb8062ba85423f # Parent 66f0aa64d141b954ab35c20406dd3a96841c2289 [Bug 8556] C-escape multi line copyright in#defines diff -r 66f0aa64d141 -r 652205e6022b core/com.nokia.carbide.templatewizard/src/com/nokia/carbide/templatewizard/processes/CopyFiles.java --- 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, '\"'); + } }) }; diff -r 66f0aa64d141 -r 652205e6022b templates/com.nokia.carbide.cpp.templates/templates/projecttemplates/S60-PlatsecApp/data/baseName.rls --- 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 diff -r 66f0aa64d141 -r 652205e6022b templates/com.nokia.carbide.cpp.templates/templates/projecttemplates/S60-TouchUIApplication/data/baseName.rls --- 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